File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,18 +13,18 @@ jobs:
1313 uses : actions/checkout@v4
1414 with :
1515 fetch-depth : 0
16+ persist-credentials : false
1617
1718 - name : Push to Private Repo
1819 env :
1920 SYNC_TOKEN : ${{ secrets.SYNC_TOKEN }}
20- SYNC_USER : ${{ github.actor }}
2121 run : |
2222 # Configure Git identities
2323 git config --global user.name "GitHub Action Bot"
2424 git config --global user.email "actions@github.com"
2525
2626 # Add the atomicmemory-internal repository as a secure remote
27- git remote add private-target "https://${SYNC_USER} :${SYNC_TOKEN}@github.com/atomicstrata/atomicmemory-internal.git"
27+ git remote add private-target "https://x-access-token :${SYNC_TOKEN}@github.com/atomicstrata/atomicmemory-internal.git"
2828
2929 # Force push the main branch to the private repo to ensure perfect alignment
3030 git push private-target HEAD:main --force
You can’t perform that action at this time.
0 commit comments