Skip to content

Commit a60b98d

Browse files
zackkatzclaude
andcommitted
fix: use correct PAT URL format for repo cloning
The x-access-token username is for GitHub App tokens. For Personal Access Tokens, use https://{token}@github.com format. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 06adccd commit a60b98d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/clone-repos.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function getCloneUrl(repo, authMethod) {
112112
if (authMethod === 'token') {
113113
// Use HTTPS with token authentication (for CI/CD)
114114
const token = process.env.GH_TOKEN;
115-
return `https://x-access-token:${token}@github.com/${repo}.git`;
115+
return `https://${token}@github.com/${repo}.git`;
116116
}
117117
if (authMethod === 'gh') {
118118
// Use HTTPS with gh CLI handling authentication

0 commit comments

Comments
 (0)