[CI] CI: use app token for release refs - #5198
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
PR title tags & labels: |
There was a problem hiding this comment.
🔵 Needs a closer look
It changes release automation authentication/authorization behavior in ways that depend on external App/secrets configuration that cannot be validated from the diff alone.
Pull request overview
This PR updates the release automation workflow to authenticate release-ref operations using a GitHub App installation token, reducing reliance on the default GITHUB_TOKEN and tightening its permissions in the release preparation job.
Changes:
- Generate a GitHub App token in the
preparejob usingactions/create-github-app-token@v1. - Use the App token for
actions/checkoutand for GitHub CLI calls in the “Resolve release target” step. - Reduce the
preparejob’scontentspermission fromwritetoread, shifting ref writes to the App token path.
File summaries
| File | Description |
|---|---|
| .github/workflows/release-automation.yaml | Adds GitHub App token generation and routes checkout/gh authentication through it while tightening prepare job permissions. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
🟢 Approval recommended
The workflow changes correctly scope down GITHUB_TOKEN permissions while switching the ref-writing operations to use the GitHub App token without introducing YAML or logic issues.
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0 new
- Review effort level: Lite
Summary
Test plan