Skip to content
This repository was archived by the owner on May 27, 2026. It is now read-only.

Commit bda9932

Browse files
authored
fix: allow basic auth header overwrites (#21)
GitHub Actions automatically set basic auth header overwriting access tokens supplied in HTTPS clone urls. Fix #18
1 parent af6f9f7 commit bda9932

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github-sync.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fi
2323
echo "UPSTREAM_REPO=$UPSTREAM_REPO"
2424
echo "BRANCHES=$BRANCH_MAPPING"
2525

26-
# GitHub actions v2 no longer auto set GITHUB_TOKEN
26+
git config --unset-all http."https://github.com/".extraheader
2727
git remote set-url origin "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY"
2828
git remote add tmp_upstream "$UPSTREAM_REPO"
2929
git fetch tmp_upstream

0 commit comments

Comments
 (0)