Skip to content

Commit bc11ee4

Browse files
intel352claude
andcommitted
fix: add packages:read permission, revert to GITHUB_TOKEN for npm
The 403 was caused by missing packages:read in the workflow permissions block, not the token type. REPO_DISPATCH_TOKEN lacks packages scope. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 516cfc4 commit bc11ee4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/sync-editor.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
permissions:
88
contents: write
9+
packages: read
910

1011
jobs:
1112
sync:
@@ -42,7 +43,7 @@ jobs:
4243
EDITOR_VERSION="${{ github.event.client_payload.version }}"
4344
npm install "@gocodealone/workflow-editor@${EDITOR_VERSION#v}"
4445
env:
45-
NODE_AUTH_TOKEN: ${{ secrets.REPO_DISPATCH_TOKEN }}
46+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4647

4748
- name: Compute plugin version
4849
id: version
@@ -80,7 +81,7 @@ jobs:
8081
npx tsc --noEmit
8182
npm run build
8283
env:
83-
NODE_AUTH_TOKEN: ${{ secrets.REPO_DISPATCH_TOKEN }}
84+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8485

8586
- name: Commit and tag
8687
run: |

0 commit comments

Comments
 (0)