Skip to content

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

@polaz

Description

@polaz

Problem

The CI/CD pipeline fails during semantic-release with:

remote: Permission to structured-world/gitlab-mcp.git denied to sw-release-bot[bot].
fatal: unable to access - The requested URL returned error: 403

Key observation: The release commit gets uploaded successfully, but the tag upload fails.

Root Cause

  • @semantic-release/git uses git with origin remote → works ✅
  • semantic-release core uses git with direct URL → fails ❌

The actions/checkout with GitHub App token configures credentials for the origin remote, but semantic-release uploads tags directly to the repository URL, bypassing the credential helper.

Solution

Explicitly configure http.https://github.com/.extraheader with the App token before running semantic-release.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions