fix(ci): use CI_GITHUB_TOKEN to bypass branch protection for releases#17
Merged
Conversation
The semantic-release workflow needs to push version bump commits directly to main, but branch protection rules require changes go through PRs. Using CI_GITHUB_TOKEN which has bypass permissions to allow automated releases to proceed. This unblocks the automated release process for publishing to PyPI and creating GitHub releases.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Critical fix to unblock automated release workflow.
Problem
semantic-release workflow is failing with:
The release workflow needs to push version bump commits directly to main, but branch protection rules prevent this.
Solution
Use
CI_GITHUB_TOKEN(which has bypass permissions) instead ofGITHUB_TOKENfor:Changes
CI_GITHUB_TOKENCI_GITHUB_TOKENCI_GITHUB_TOKENImpact
✅ Unblocks automated releases to PyPI and GitHub
✅ Enables 1.0 stable release process
✅ No breaking changes to workflow behavior
Testing
Will be validated when this PR merges and triggers the release workflow on main.
Note
Unblocks automated releases by granting the release job push/release permissions via
CI_GITHUB_TOKEN.ci.ymlrelease job:actions/checkout,semantic-release(GH_TOKEN), andsoftprops/action-gh-releasenow usesecrets.CI_GITHUB_TOKENmemory-bank/activeContext.mdwith current status and next steps for 1.0Written by Cursor Bugbot for commit 3dcb110. This will update automatically on new commits. Configure here.