Skip to content

Fix git push auth: revert to URL rewriting, add token redaction - #27

Merged
theoephraim merged 1 commit into
mainfrom
fix/revert-extraheader
Apr 21, 2026
Merged

theoephraim merged 1 commit into
mainfrom
fix/revert-extraheader

Conversation

@theoephraim

Copy link
Copy Markdown
Member

Summary

  • The -c http.extraheader approach from Harden security across publishing, auth, and input validation #24 didn't work with execFileSync in CI, causing the push to fail and leaking the token in the error message
  • Revert to the proven URL rewriting approach (temporarily set remote URL, restore in finally)
  • Add token redaction: if the push fails, the token is scrubbed from the error before re-throwing

Test plan

  • Verify bumpy ci release successfully pushes the version PR branch
  • Verify token is not exposed in error messages on push failure

🤖 Generated with Claude Code

The ephemeral -c http.extraheader approach failed in CI. Revert to the
proven URL rewriting approach but add token redaction on errors so the
token is never exposed in CI logs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bumpy-bot

Copy link
Copy Markdown
Collaborator

bumpy-frog

The changes in this PR will be included in the next version bump.

patch Patch releases

  • @varlock/bumpy 0.0.2 → 0.0.3

Bump files in this PR

Click here if you want to add another bump file to this PR


This comment is maintained by bumpy.

@theoephraim
theoephraim merged commit 125b59f into main Apr 21, 2026
2 checks passed
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