Skip to content

Commit 58108f0

Browse files
authored
Update mirror action to force use PAT (#8792)
1 parent 4991b67 commit 58108f0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/sync-to-mirror-repo.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ jobs:
1919
repository: aws/aws-sam-cli
2020
ref: develop
2121
fetch-depth: 0
22+
persist-credentials: false
2223

2324
- name: Push to mirror repo
2425
run: |
2526
git config user.name "aws-sam-cli-bot"
2627
git config user.email "aws-sam-cli-gh-bot@amazon.com"
27-
git remote set-url origin https://x-access-token:${{ secrets.SYNC_REPO_PAT }}@github.com/${{ github.repository }}.git
28-
git push origin develop:develop --force
28+
git config --unset-all http.https://github.com/.extraheader || true
29+
git push https://x-access-token:${{ secrets.SYNC_REPO_PAT }}@github.com/${{ github.repository }}.git develop:develop --force

0 commit comments

Comments
 (0)