forked from zereight/gitlab-mcp
-
Notifications
You must be signed in to change notification settings - Fork 1
fix(ci): duplicate Authorization header breaks semantic-release #299
Copy link
Copy link
Labels
Description
Problem
CI run fails with "Duplicate header: Authorization" (HTTP 400):
remote: Duplicate header: "Authorization"
fatal: unable to access 'https://github.com/structured-world/gitlab-mcp/': The requested URL returned error: 400
This was caused by #298 which added an extra Authorization header, but actions/checkout already sets one via http.extraheader.
Root Cause
Three authorization methods conflict:
actions/checkoutwith token setshttp.extraheader- Step from fix(ci): configure git credentials for semantic-release tag upload #298 adds ANOTHER
http.extraheader - semantic-release embeds token in URL (
x-access-token:[email protected])
Solution
- Remove the "Configure git credentials" step from fix(ci): configure git credentials for semantic-release tag upload #298
- Add
persist-credentials: falseto checkout - Let semantic-release manage auth via
GITHUB_TOKENenv var
References
Reactions are currently unavailable