Skip to content

fix(ci): configure git credentials for semantic-release tag upload#298

Merged
polaz merged 1 commit intomainfrom
fix/297-semantic-release-tag-credentials
Feb 5, 2026
Merged

fix(ci): configure git credentials for semantic-release tag upload#298
polaz merged 1 commit intomainfrom
fix/297-semantic-release-tag-credentials

Conversation

@polaz
Copy link
Copy Markdown
Member

@polaz polaz commented Feb 5, 2026

Summary

  • 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

Test plan

  • CI workflow completes successfully
  • semantic-release creates tag and GitHub release

Closes #297

- 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
Copilot AI review requested due to automatic review settings February 5, 2026 03:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@polaz polaz merged commit 6563291 into main Feb 5, 2026
19 checks passed
@polaz polaz deleted the fix/297-semantic-release-tag-credentials branch February 5, 2026 03:51
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

polaz added a commit that referenced this pull request Feb 5, 2026
- Add persist-credentials: false to checkout step
- Remove redundant "Configure git credentials" step from #298
- Let semantic-release manage auth via GITHUB_TOKEN env var
- Update @structured-world/vue-privacy to 1.10.0

Closes #299
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)
@sw-release-bot
Copy link
Copy Markdown

sw-release-bot bot commented Feb 5, 2026

🎉 This PR is included in version 6.58.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): semantic-release fails to upload tags with GitHub App token

2 participants