浏览代码

Use CRABBY_GITHUB_TOKEN for regen PRs

See https://github.com/peter-evans/create-pull-request/issues/48.
Tamir Duberstein 4 天之前
父节点
当前提交
eda29958f8
共有 2 个文件被更改,包括 12 次插入0 次删除
  1. 6 0
      .github/workflows/ci.yml
  2. 6 0
      .github/workflows/gen.yml

+ 6 - 0
.github/workflows/ci.yml

@@ -50,6 +50,12 @@ jobs:
       - uses: peter-evans/create-pull-request@v7
         if: github.event_name != 'pull_request' && github.repository_owner == 'aya-rs'
         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
           commit-message: 'public-api: regenerate'
           title: 'public-api: regenerate'

+ 6 - 0
.github/workflows/gen.yml

@@ -41,6 +41,12 @@ jobs:
 
       - uses: peter-evans/create-pull-request@v7
         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
           commit-message: |
             aya-obj, aya-ebpf-bindings: regenerate