Skip to content

Commit 6e55292

Browse files
committed
Use create-github-app-token to get token for gen-lints
1 parent 64ddb54 commit 6e55292

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/gen-lints.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
lints-gen:
1414
name: Generate lints
1515
runs-on: ubuntu-latest
16+
permissions:
17+
pull-requests: write
1618
steps:
1719
- name: Checkout repository
1820
uses: actions/checkout@v6
@@ -23,9 +25,16 @@ jobs:
2325
- name: Generate lints/feature flags
2426
run: cargo codegen lint-definitions
2527

28+
- uses: actions/create-github-app-token@v2
29+
id: app-token
30+
with:
31+
app-id: ${{ vars.APP_CLIENT_ID }}
32+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
33+
2634
- name: Submit PR
2735
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
2836
with:
37+
token: ${{ steps.app-token.outputs.token }}
2938
commit-message: "internal: update generated lints"
3039
branch: "ci/gen-lints"
3140
delete-branch: true

0 commit comments

Comments
 (0)