Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to '.github/workflows/gen-lints.yml')
| -rw-r--r-- | .github/workflows/gen-lints.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/gen-lints.yml b/.github/workflows/gen-lints.yml index 7319b2b326..c978e3571c 100644 --- a/.github/workflows/gen-lints.yml +++ b/.github/workflows/gen-lints.yml @@ -13,6 +13,8 @@ jobs: lints-gen: name: Generate lints runs-on: ubuntu-latest + permissions: + pull-requests: write steps: - name: Checkout repository uses: actions/checkout@v6 @@ -23,9 +25,16 @@ jobs: - name: Generate lints/feature flags run: cargo codegen lint-definitions + - uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0 + id: app-token + with: + app-id: ${{ vars.APP_CLIENT_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + - name: Submit PR uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0 with: + token: ${{ steps.app-token.outputs.token }} commit-message: "internal: update generated lints" branch: "ci/gen-lints" delete-branch: true |