Skip to content

Commit faa416c

Browse files
committed
fix: use github app for benchmark auth
1 parent 986aee2 commit faa416c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ jobs:
478478

479479
forc-run-benchmarks:
480480
runs-on: buildjet-4vcpu-ubuntu-2204
481+
environment: fuel-sway-bot
481482
permissions:
482483
contents: write
483484
steps:
@@ -499,13 +500,19 @@ jobs:
499500
with:
500501
repository: FuelLabs/sway-performance-data
501502
path: performance-data
503+
- name: Get GitHub app token
504+
uses: actions/create-github-app-token@v1
505+
id: app-token
506+
with:
507+
app-id: ${{ vars.APP_ID }}
508+
private-key: ${{ secrets.APP_KEY }}
502509
- name: Checkout benchmark data
503510
if: github.event_name == 'push'
504511
uses: actions/checkout@v3
505512
with:
506513
repository: FuelLabs/sway-performance-data
507514
path: performance-data
508-
token: ${{ secrets.CI_ACCOUNT_PAT }}
515+
token: ${{ steps.app-token.outputs.token }}
509516
- name: Prepare benchmarks data for commit
510517
if: github.event_name == 'push'
511518
run: ./benchmark.sh --prepare-for-commit

0 commit comments

Comments
 (0)