Skip to content

fix(go-ci): move checkout before PAT config, add persist-credentials: false#57

Merged
phanikumarps merged 1 commit into
mainfrom
fix/go-ci-private-module-auth
Jun 7, 2026
Merged

fix(go-ci): move checkout before PAT config, add persist-credentials: false#57
phanikumarps merged 1 commit into
mainfrom
fix/go-ci-private-module-auth

Conversation

@phanikumarps

Copy link
Copy Markdown
Contributor

Closes #56

Summary

actions/checkout@v4 was overriding the PAT-based git URL rewrite by setting its own http.extraHeader with GITHUB_TOKEN. Moving checkout first (with persist-credentials: false) ensures the PAT config step runs last and is not overridden.

Change applied to all three jobs: test, build, lint.

… false (#56)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@phanikumarps phanikumarps merged commit 85e8ac1 into main Jun 7, 2026
4 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.

fix(go-ci): PAT URL rewrite overridden by actions/checkout credentials

1 participant