Commit 21c53cf
fix: use --force flag for gh auth setup-git in Docker build
gh auth setup-git requires an authenticated session, which doesn't
exist during docker build. The --force flag with --hostname skips
the auth check and configures the credential helper anyway. At
runtime, GH_TOKEN env var provides the actual credentials.
Verified locally: docker build succeeds, git ls-remote against a
private repo works with GH_TOKEN.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5177902 commit 21c53cf
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments