Skip to content

Commit

Permalink
fix: allow basic auth header overwrites (#21)
Browse files Browse the repository at this point in the history
GitHub Actions automatically set basic auth header overwriting access tokens supplied in HTTPS clone urls.

Fix #18
  • Loading branch information
wei authored May 5, 2020
1 parent af6f9f7 commit bda9932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fi
echo "UPSTREAM_REPO=$UPSTREAM_REPO"
echo "BRANCHES=$BRANCH_MAPPING"

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

0 comments on commit bda9932

Please sign in to comment.