Skip to content

Commit 155b829

Browse files
committed
fix(tools/project-sync): pass in a custom token instead.
GH Actions does not support setting project permissions directly without a GH App. This is a workaround.
1 parent cab9f44 commit 155b829

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/issue-sync.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ jobs:
1010
sync-issue:
1111
name: Sync Issue with Project Board
1212
runs-on: ubuntu-latest
13-
permissions:
14-
issues: read
15-
repository-projects: write
1613
steps:
1714
- name: Checkout
1815
uses: actions/checkout@v4
@@ -62,7 +59,7 @@ jobs:
6259
6360
- name: Run issue-sync
6461
env:
65-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
GITHUB_TOKEN: ${{ secrets.PROJECT_SYNC_GITHUB_TOKEN }}
6663
ISSUE_NUMBER: ${{ github.event.issue.number }}
6764
REPOSITORY: ${{ github.repository }}
6865
PROJECT_NUMBER: ${{ vars.PROJECT_NUMBER || 302 }}

0 commit comments

Comments
 (0)