Fix compatibility with actions/checkout@v6 by ericsciple · Pull Request #4230 · peter-evans/create-pull-request (original) (raw)
Temporarily hides checkout@v6 credential files to prevent duplicate Authorization headers.
Fixes peter-evans#4228
kdeldycke added a commit to kdeldycke/repomatic that referenced this pull request
MrSom3body added a commit to MrSom3body-contrib/update-flake-lock that referenced this pull request
This was referenced
Nov 24, 2025
mergify Bot added a commit to robfrank/linklift that referenced this pull request
yihui added a commit to yihui/mime that referenced this pull request
JeanBarriere pushed a commit to sede-open/create-pull-request-v7 that referenced this pull request
Temporarily hides checkout@v6 credential files to prevent duplicate Authorization headers.
Fixes peter-evans#4228
This was referenced
Jan 6, 2026
mhamza15 added a commit to mhamza15/opencode that referenced this pull request
actions/checkout@v6 stores git credentials in a separate file in RUNNER_TEMP and references it via includeIf directives in .git/config. This caused duplicate Authorization headers when we set our own credentials, resulting in HTTP 400 errors during git fetch.
The fix temporarily hides the checkout credential files by renaming them with a .opencode-bak suffix before configuring our auth, then restores them after for subsequent workflow steps.
Inspired by: peter-evans/create-pull-request#4230
mhamza15 added a commit to mhamza15/opencode that referenced this pull request
actions/checkout@v6 stores git credentials in a separate file in RUNNER_TEMP and references it via includeIf directives in .git/config. This caused duplicate Authorization headers when we set our own credentials, resulting in HTTP 400 errors during git fetch.
The fix temporarily hides the checkout credential files by renaming them with a .opencode-bak suffix before configuring our auth, then restores them after for subsequent workflow steps.
Inspired by: peter-evans/create-pull-request#4230
PatMyron added a commit to PatMyron/PatMyron that referenced this pull request
PatMyron added a commit to PatMyron/forecasting that referenced this pull request
PatMyron added a commit to PatMyron/terraformation that referenced this pull request
PatMyron added a commit to PatMyron/cloudformation-resource-providers that referenced this pull request
PatMyron added a commit to PatMyron/cloudformation-resource-providers that referenced this pull request
This was referenced
Jun 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})