Skip to content

Commit e049d46

Browse files
ruromeroclaude
andauthored
ci: use GitHub App token for release bump PR (#438)
## Summary - Post-release version bump PRs created by `github-actions[bot]` using `GITHUB_TOKEN` don't trigger CI checks (GitHub's anti-recursion protection) - Use `actions/create-github-app-token@v2` with the installed GitHub App (`CI_APP_ID` / `CI_APP_PRIVATE_KEY` secrets) to generate a token - Pass this token to `peter-evans/create-pull-request@v8` so the resulting PR triggers the "Build and test Java 21" workflow ## Test plan - [ ] Trigger a release via `workflow_dispatch` and verify the bump PR triggers the Build check - [ ] Verify the PR is created by the GitHub App identity, not `github-actions[bot]` 🤖 Generated with [Claude Code](https://claude.com/claude-code) ## Summary by Sourcery CI: - Add a workflow step to generate a GitHub App token from CI_APP_ID and CI_APP_PRIVATE_KEY secrets and use it for the release bump pull request. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 601178a commit e049d46

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,18 @@ jobs:
137137
# Run the phase that triggers README.md update
138138
mvn -B validate
139139
140+
- name: Generate GitHub App token
141+
id: app-token
142+
uses: actions/create-github-app-token@v2
143+
with:
144+
app-id: ${{ secrets.CI_APP_ID }}
145+
private-key: ${{ secrets.CI_APP_PRIVATE_KEY }}
146+
140147
- name: Create Pull Request with next version
141148
id: cpr
142149
uses: peter-evans/create-pull-request@v8
143150
with:
151+
token: ${{ steps.app-token.outputs.token }}
144152
commit-message: "build(release): update to next development version"
145153
branch: chore/bump-version
146154
title: "chore: bump to next development version"

0 commit comments

Comments
 (0)