Skip to content

Commit c8efebb

Browse files
bpamiriclaude
andauthored
ci(release): fix bump-develop-version.yml duplicate Authorization header (#2771)
`actions/checkout@v6` defaults to `persist-credentials: true`, which writes `http.https://github.com/.extraheader = AUTHORIZATION: basic <GITHUB_TOKEN>` to the local `.git/config`. `peter-evans/create-pull-request@v6` then sets its own `extraheader` for the dispatch token, and the next git operation sends both Authorization headers — GitHub returns HTTP 400 with `remote: Duplicate header: "Authorization"`. First observed on the v4.0.1 GA (2026-05-20, run 26173817714); manual workaround was #2770. Setting `persist-credentials: false` keeps peter-evans/create-pull-request as the sole Authorization authority. This is a documented peter-evans/create-pull-request gotcha when the caller uses a non-default token. Signed-off-by: Peter Amiri <peter@alurium.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6ae60e2 commit c8efebb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/bump-develop-version.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ jobs:
6161
with:
6262
ref: develop
6363
fetch-depth: 1
64+
# Don't persist GITHUB_TOKEN as a git extraheader — peter-evans/create-pull-request
65+
# below sets its own Authorization, and two simultaneous extraheaders make GitHub
66+
# reject git operations with "Duplicate header: Authorization" → HTTP 400.
67+
# First hit on the v4.0.1 GA (run 26173817714); manual workaround was #2770.
68+
persist-credentials: false
6469

6570
- name: Compute next snapshot target
6671
run: |

0 commit comments

Comments
 (0)