Michael Rabinovich Cursor commited on
Commit
818fd28
·
1 Parent(s): aa263ac

Dockerfile: use x-access-token:TOKEN URL form for classic PAT

Browse files

Previous URL form 'https://$TOKEN@github.com/...' relied on GitHub's
special-case where fine-grained PATs are accepted as a single-value
username. Classic PATs don't get that special-casing: git parses
'TOKEN@github.com' as username=TOKEN with no password and then prompts
for one, which fails in the non-interactive Docker build with
'No such device or address'.

Switching to 'https://x-access-token:$TOKEN@github.com/...' (GitHub
Actions convention) is the standard explicit-Basic-Auth form and works
uniformly for classic + fine-grained PATs, so the URL stays the same
when we eventually swap GH_PAT for a deploy key (the URL changes to
ssh+git anyway in that case).

Co-authored-by: Cursor <cursoragent@cursor.com>

1 file changed +7 -1
Dockerfile+7-1