fix(ci): configure git credentials for semantic-release tag upload#298
Merged
fix(ci): configure git credentials for semantic-release tag upload#298
Conversation
- Add explicit http.extraheader config before semantic-release step - GitHub App tokens from actions/checkout configure credentials for the origin remote, but semantic-release uses direct URL for tags - This ensures the token is available for all git operations Closes #297
There was a problem hiding this comment.
Pull request overview
This PR fixes a CI/CD pipeline failure where semantic-release was unable to upload tags using a GitHub App token. The root cause was that while actions/checkout configures credentials for the origin remote, semantic-release pushes tags directly using the repository URL, which bypasses the credential helper.
Changes:
- Add explicit git credential configuration step before semantic-release execution
- Configure HTTP extraheader with Base64-encoded App token for GitHub operations
- Ensure tag push operations have proper authentication
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
2 tasks
sw-release-bot bot
pushed a commit
that referenced
this pull request
Feb 5, 2026
## [6.58.0](v6.57.0...v6.58.0) (2026-02-05) ### Features * **logging:** add LOG_FILTER for access log noise reduction ([#295](#295)) ([d0c3d0d](d0c3d0d)), closes [#290](#290) ### Bug Fixes * **ci:** configure git credentials for semantic-release tag upload ([#298](#298)) ([6563291](6563291)), closes [#297](#297) * **ci:** remove duplicate Authorization header, add token scope ([#300](#300)) ([4032584](4032584)), closes [#299](#299)
|
🎉 This PR is included in version 6.58.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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
http.extraheaderconfig before semantic-release stepactions/checkoutconfigure credentials for theoriginremote, but semantic-release uses direct URL for tagsTest plan
Closes #297