Skip to content

Commit edfcda3

Browse files
authored
fix: add scoped PAT to fix sync-workflow permission issue (#6)
1 parent 4d8d623 commit edfcda3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/sync.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
with:
2121
fetch-depth: 0
2222
ref: ${{ env.DEFAULT_BRANCH }}
23+
token: ${{ secrets.SYNC_DOCS_TOKEN }}
2324

2425
- name: Configure Git
2526
run: |
@@ -36,5 +37,3 @@ jobs:
3637
git checkout ${{ env.DEFAULT_BRANCH }}
3738
git merge upstream/${{ env.DEFAULT_BRANCH }} --no-edit
3839
git push origin ${{ env.DEFAULT_BRANCH }}
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)