ci(release-please): use sw-release-bot app token for PR creation#4
ci(release-please): use sw-release-bot app token for PR creation#4
Conversation
org-level policy blocks GITHUB_TOKEN from creating PRs; use RELEASER_APP_ID / RELEASER_APP_PRIVATE_KEY app token (same pattern as publish.yml in structured-world/repo)
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe release workflow now uses a GitHub App installation token for release-please operations instead of relying on default authentication. The token is created via Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
There was a problem hiding this comment.
Pull request overview
Updates the Release Please workflow to authenticate PR creation using a GitHub App token instead of GITHUB_TOKEN, addressing org-level restrictions that prevent workflow tokens from opening PRs.
Changes:
- Generate a GitHub App installation token via
actions/create-github-app-tokenusingRELEASER_APP_ID/RELEASER_APP_PRIVATE_KEY. - Pass the generated token into
googleapis/release-please-actionfor PR creation.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| steps: | ||
| - name: Generate release bot token | ||
| id: app-token | ||
| uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf |
There was a problem hiding this comment.
For consistency with other workflows in this repo (e.g., actions/checkout@… # v4 in ci.yml / release.yml), consider adding an inline version comment for the pinned actions/create-github-app-token@… SHA (e.g., # v1). This makes future dependency auditing/upgrades easier while keeping the security benefit of SHA pinning.
| uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf | |
| uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v1 |



Summary
actions/create-github-app-tokenstep usingRELEASER_APP_ID/RELEASER_APP_PRIVATE_KEYgoogleapis/release-please-actionProblem
Release Please fails with:
The
structured-worldorg blocksGITHUB_TOKENfrom creating PRs. Other workflows in the org (e.g.publish.ymlinstructured-world/repo) already use the sw-release-bot GitHub App token for this purpose — same pattern applied here.Closes #4