Skip to content

Remove checkout credential helper before release push#17

Merged
arcivanov merged 1 commit intomasterfrom
fix-credential-helper
Mar 20, 2026
Merged

Remove checkout credential helper before release push#17
arcivanov merged 1 commit intomasterfrom
fix-credential-helper

Conversation

@arcivanov
Copy link
Member

actions/checkout's persist-credentials credential helper overrides the app token in the remote URL, causing pushes to use GITHUB_TOKEN instead. Unset the extraheader before setting the remote URL.

actions/checkout with persist-credentials: true (the default)
configures a git credential helper that serves GITHUB_TOKEN for all
github.com requests. This overrides the app token set via
git remote set-url, causing the push to use GITHUB_TOKEN instead of
the app token. The app token is needed to bypass branch protection
rulesets.

Fix by unsetting the extraheader config before setting the remote URL.
@arcivanov arcivanov merged commit bf6cbfb into master Mar 20, 2026
124 checks passed
@arcivanov arcivanov deleted the fix-credential-helper branch March 20, 2026 01:28
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.

1 participant