Use CRABBY_GITHUB_TOKEN for regen PRs

See https://github.com/peter-evans/create-pull-request/issues/48.
reviewable/pr1281/r1
Tamir Duberstein 1 week ago
parent 6d5826fe99
commit eda29958f8

@ -50,6 +50,12 @@ jobs:
- uses: peter-evans/create-pull-request@v7 - uses: peter-evans/create-pull-request@v7
if: github.event_name != 'pull_request' && github.repository_owner == 'aya-rs' if: github.event_name != 'pull_request' && github.repository_owner == 'aya-rs'
with: with:
# GitHub actions aren't allowed to trigger other actions to prevent
# abuse; the canonical workaround is to use a sufficiently authorized
# token.
#
# See https://github.com/peter-evans/create-pull-request/issues/48.
token: ${{ secrets.CRABBY_GITHUB_TOKEN }}
branch: create-pull-request/public-api branch: create-pull-request/public-api
commit-message: 'public-api: regenerate' commit-message: 'public-api: regenerate'
title: 'public-api: regenerate' title: 'public-api: regenerate'

@ -41,6 +41,12 @@ jobs:
- uses: peter-evans/create-pull-request@v7 - uses: peter-evans/create-pull-request@v7
with: with:
# GitHub actions aren't allowed to trigger other actions to prevent
# abuse; the canonical workaround is to use a sufficiently authorized
# token.
#
# See https://github.com/peter-evans/create-pull-request/issues/48.
token: ${{ secrets.CRABBY_GITHUB_TOKEN }}
branch: create-pull-request/codegen branch: create-pull-request/codegen
commit-message: | commit-message: |
aya-obj, aya-ebpf-bindings: regenerate aya-obj, aya-ebpf-bindings: regenerate

Loading…
Cancel
Save