GH_TOKEN from job-level. Smoke-test still failed with the same error. Why? The conflict was with actions/checkout, not the env var.[command] git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic ***"
checkout leaves a persistent git AUTHORIZATION extraheader so subsequent git operations (push, fetch, etc.) work without re-auth. Then peter-evans adds its OWN extraheader. Result: git sends two AUTHORIZATION headers, GitHub returns 400.
- uses: actions/checkout@de0fac2e... # v6.0.2
with:
fetch-depth: 0
persist-credentials: false # ← was true
We don't need persisted git creds:
gh CLI, auth via per-step GH_TOKEN env.peter-evans/create-pull-request, manages its own auth.gh workflow run "Claude Release Watch".