Skip to content

Fix issue analyzer workflow: add projects: write permission#2843

Merged
einari merged 2 commits intomainfrom
copilot/fix-issue-analyzer-workflow
Mar 15, 2026
Merged

Fix issue analyzer workflow: add projects: write permission#2843
einari merged 2 commits intomainfrom
copilot/fix-issue-analyzer-workflow

Conversation

Copy link
Contributor

Copilot AI commented Mar 14, 2026

The issue analyzer workflow was failing because GITHUB_TOKEN lacked the projects: write scope required to access GitHub Projects V2 at the org level via GraphQL. GitHub's API returns "Could not resolve to a ProjectV2" (rather than a 403) when the token lacks project scope — making it look like the project doesn't exist.

Fixed

  • Added projects: write to both the top-level and job-level permissions in issue-analysis.yml so GITHUB_TOKEN can query and update https://github.com/orgs/Cratis/projects/7

💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

…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>
Copilot AI changed the title [WIP] Fix issue analyzer workflow functionality Fix issue analyzer workflow: add projects: write permission Mar 14, 2026
Copilot AI requested a review from einari March 14, 2026 18:43
@einari einari marked this pull request as ready for review March 15, 2026 05:01
@einari einari merged commit d827518 into main Mar 15, 2026
10 checks passed
@einari einari deleted the copilot/fix-issue-analyzer-workflow branch March 15, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants