Skip to content

fix: resolve duplicate Authorization header in release workflow#1154

Merged
gorkem merged 1 commit into
mainfrom
fix/release-duplicate-auth-header
Apr 2, 2026
Merged

fix: resolve duplicate Authorization header in release workflow#1154
gorkem merged 1 commit into
mainfrom
fix/release-duplicate-auth-header

Conversation

@gorkem
Copy link
Copy Markdown
Member

@gorkem gorkem commented Apr 2, 2026

Summary

The release workflow's "Generate CLI documentation" step was failing with HTTP 400: Duplicate header: "Authorization" during git fetch origin main.

actions/checkout persists git credentials (Authorization header) automatically. The workflow then manually added a second Authorization header via git config --local http.extraheader for the GitHub App token, resulting in two headers being sent.

Fix: Move the App token generation before checkout and pass it via token: so checkout persists the correct credentials from the start. Removes the manual git config --local http.extraheader call entirely.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 2, 2026

Deploying kitops-org with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8cbb544
Status: ✅  Deploy successful!
Preview URL: https://8fe0224b.kitops-org.pages.dev
Branch Preview URL: https://fix-release-duplicate-auth-h.kitops-org.pages.dev

View logs

@gorkem gorkem force-pushed the fix/release-duplicate-auth-header branch from dd61684 to f24e344 Compare April 2, 2026 19:09
Checkout with the GitHub App token directly instead of manually
setting http.extraheader after checkout. The previous approach
added a second Authorization header on top of the one persisted
by actions/checkout, causing GitHub to reject git fetches with
HTTP 400.

Signed-off-by: Gorkem Ercan <gorkem.ercan@gmail.com>
@gorkem gorkem force-pushed the fix/release-duplicate-auth-header branch from f24e344 to 8cbb544 Compare April 2, 2026 19:17
@gorkem gorkem merged commit d66cccc into main Apr 2, 2026
14 checks passed
@gorkem gorkem deleted the fix/release-duplicate-auth-header branch April 2, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants