Skip to content

Commit b6d7042

Browse files
committed
use github app token instead of pat
1 parent da07f12 commit b6d7042

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/ci-visibility-performance.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,17 @@ jobs:
1818
ci-visibility-tests:
1919
name: CI Visibility performance and correctness tests
2020
runs-on: ubuntu-latest
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
permissions:
24-
actions: write
2521
steps:
22+
- uses: actions/create-github-app-token@db3cdf40984fe6fd25ae19ac2bf2f4886ae8d959 # v2.0.5
23+
id: app-token
24+
with:
25+
app-id: ${{ vars.APP_ID }}
26+
private-key: ${{ secrets.PRIVATE_KEY }}
2627
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28+
with:
29+
token: ${{ steps.app-token.outputs.token }}
2730
- uses: ./.github/actions/node/oldest-maintenance-lts
2831
- name: CI Visibility Performance Overhead Test
2932
run: yarn bench:e2e:ci-visibility
33+
env:
34+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)