Skip to content

Commit 20200ad

Browse files
Fix sync-versions SSH auth on older release branches (#4545)
The GIT_CLONE_URL_BASE variable only exists on master, so passing it on the command line has no effect on older release branches where the SSH URL is hardcoded. Use git's insteadOf config to rewrite SSH URLs to HTTPS at the git level, which works regardless of the Makefile version.
1 parent 7382e0c commit 20200ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/sync-versions.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
run: |
3232
git config --global credential.helper store
3333
echo "https://marvin-tigera:${GITHUB_TOKEN}@github.com" > ~/.git-credentials
34+
git config --global url."https://github.com/".insteadOf "git@github.com:"
3435
env:
3536
GITHUB_TOKEN: ${{ secrets.MARVIN_PAT }}
3637

0 commit comments

Comments
 (0)