The open-gsd org blocks the Actions GITHUB_TOKEN from creating PRs, so auto-backmerge and the release finalize merge-back PR steps can't open their PRs (must be done manually). Point those two steps at a scoped secret (pull-requests:write + contents:write), falling back to GITHUB_TOKEN so behavior is unchanged until the secret is added. Refs #660 Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
4
.github/workflows/auto-backmerge.yml
vendored
4
.github/workflows/auto-backmerge.yml
vendored
@@ -56,7 +56,7 @@ jobs:
|
|||||||
if: steps.check.outputs.next_exists == 'true'
|
if: steps.check.outputs.next_exists == 'true'
|
||||||
id: branch
|
id: branch
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ secrets.GSD_BOT_PR_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
SHORT_SHA=$(git rev-parse --short HEAD)
|
SHORT_SHA=$(git rev-parse --short HEAD)
|
||||||
@@ -108,7 +108,7 @@ jobs:
|
|||||||
- name: Open or update PR
|
- name: Open or update PR
|
||||||
if: steps.check.outputs.next_exists == 'true' && steps.branch.outputs.reused != 'true'
|
if: steps.check.outputs.next_exists == 'true' && steps.branch.outputs.reused != 'true'
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ secrets.GSD_BOT_PR_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
BR: ${{ steps.branch.outputs.branch }}
|
BR: ${{ steps.branch.outputs.branch }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -326,7 +326,7 @@ jobs:
|
|||||||
if: ${{ !inputs.dry_run }}
|
if: ${{ !inputs.dry_run }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ secrets.GSD_BOT_PR_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
BRANCH: ${{ needs.validate-version.outputs.branch }}
|
BRANCH: ${{ needs.validate-version.outputs.branch }}
|
||||||
VERSION: ${{ inputs.version }}
|
VERSION: ${{ inputs.version }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user