Skip to content

Commit e9e5f31

Browse files
ryanrozichclaude
andcommitted
fix(workflows): update add-pr-to-project to use PROJECT_ACCESS_TOKEN
The default GITHUB_TOKEN doesn't have permissions to access organization-level GitHub Projects (Projects V2). This change updates the workflow to use a personal access token with the necessary project permissions. To fix the "Resource not accessible by integration" error, you need to: 1. Create a PAT with 'repo' and 'project' scopes 2. Add it as PROJECT_ACCESS_TOKEN in repository secrets 3. Re-run the failed workflow 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent caba54c commit e9e5f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/add-pr-to-project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Add PR to Project
1616
uses: actions/github-script@v7
1717
with:
18-
github-token: ${{ secrets.GITHUB_TOKEN }}
18+
github-token: ${{ secrets.PROJECT_ACCESS_TOKEN }}
1919
script: |
2020
const pr = context.payload.pull_request;
2121
console.log(`Adding PR #${pr.number} to project`);

0 commit comments

Comments
 (0)