Skip to content

Commit 7062037

Browse files
pmaxhoganclaude
andcommitted
ci(release-please): author release PR via RELEASE_PLEASE_TOKEN to avoid the workflow-approval gate
GitHub forces a manual "approve workflows" gate on PRs created by the default GITHUB_TOKEN (release-please's release PR), so its CI never runs until approved by hand. Prefer a real-identity token (RELEASE_PLEASE_TOKEN secret) so the PR is authored by a user and its CI runs automatically; fall back to GITHUB_TOKEN when the secret is absent so the workflow never breaks. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012CyiRqk2DVwmJjEu5gcD1m
1 parent 4236724 commit 7062037

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,11 @@ jobs:
2424
steps:
2525
- uses: googleapis/release-please-action@v4
2626
with:
27+
# Prefer a PAT / App token (RELEASE_PLEASE_TOKEN) so the release PR is
28+
# authored by a real identity and its CI runs WITHOUT the manual
29+
# "approve workflows" gate GitHub forces on GITHUB_TOKEN-created PRs.
30+
# Falls back to GITHUB_TOKEN when the secret is absent (current
31+
# behaviour, approval still required) so the workflow never breaks.
32+
token: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }}
2733
config-file: release-please-config.json
2834
manifest-file: .release-please-manifest.json

0 commit comments

Comments
 (0)