Skip to content

Commit 2d2f6ce

Browse files
committed
Fix sync workflow credentials
1 parent f501c50 commit 2d2f6ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/sync-to-private.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)