Skip to content

Commit 09f1d71

Browse files
Copiloteinari
andcommitted
Fix issue analyzer workflow: add projects:write permission to GITHUB_TOKEN
The workflow was failing with "Could not resolve to a ProjectV2 with the number 7" because GITHUB_TOKEN lacked the `projects: write` permission needed to access GitHub Projects V2 (org-level) via the GraphQL API. Added `projects: write` to both the top-level and job-level permissions so that the GITHUB_TOKEN has the necessary scope to query and update the org project. Co-authored-by: einari <134365+einari@users.noreply.github.com>
1 parent f981d64 commit 09f1d71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/issue-analysis.yml

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

88
permissions:
99
contents: read
10+
projects: write
1011

1112
jobs:
1213
analyze:
@@ -17,6 +18,7 @@ jobs:
1718
issues: read
1819
pull-requests: read
1920
contents: read
21+
projects: write
2022

2123
steps:
2224
- name: Checkout repository

0 commit comments

Comments
 (0)