Commit 2d52c13
fix: preserve checked-out repo remote URL in configureGitAuth
configureGitAuth() was constructing the remote URL from
context.repository (GITHUB_REPOSITORY env var), which is always the
workflow's host repo. When actions/checkout checks out a different
repo, the action would overwrite the origin remote to point at the
wrong repository, breaking subsequent git push steps.
Now reads the current remote URL and injects the auth token into it,
preserving whatever repo actions/checkout set up. Falls back to the
previous context.repository behavior if reading the remote fails.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2e26adc commit 2d52c13
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
79 | 91 | | |
80 | 92 | | |
81 | 93 | | |
| |||
0 commit comments