File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1717 uses : actions/checkout@v5
1818 with :
1919 fetch-depth : 0
20+ token : ${{ secrets.ACCESS_TOKEN }}
2021 - name : Configure Git
2122 run : |
2223 git config --global user.name "github-actions[bot]"
4647 -H "Accept: application/vnd.github.v3+json" \
4748 https://api.github.com/repos/$MIRROR_REPO/collaborators/$USER_LOGIN/permission || echo "Permission check failed - might be fine-grained token"
4849
49- # Try using the token as username with empty password
50- git remote add mirror https://$ACCESS_TOKEN: @github.com/$MIRROR_REPO
50+ # Use the standard x-access- token format for GitHub Actions
51+ git remote add mirror https://x-access-token: $ACCESS_TOKEN@github.com/$MIRROR_REPO
5152
5253 # Verify remote was added
5354 git remote -v
You can’t perform that action at this time.
0 commit comments