Skip to content

fix(ci): use GH_PROJECT_TOKEN for Projects V2 access in squad-mark-released#257

Merged
mpaulosky merged 3 commits into
devfrom
squad/256-fix-squad-mark-released-token
May 8, 2026
Merged

fix(ci): use GH_PROJECT_TOKEN for Projects V2 access in squad-mark-released#257
mpaulosky merged 3 commits into
devfrom
squad/256-fix-squad-mark-released-token

Conversation

@mpaulosky

Copy link
Copy Markdown
Owner

Summary

Fixes the squad-mark-released workflow which was failing with:

GraphqlResponseError: Resource not accessible by integration

Root Cause

GITHUB_TOKEN cannot access GitHub Projects V2 via GraphQL mutations. This is a known GitHub limitation — Projects V2 mutations require a PAT with project scope.

Fix

Swap secrets.GITHUB_TOKENsecrets.GH_PROJECT_TOKEN, which is the PAT already used by project-board-automation.yml and add-issues-to-project.yml for Projects V2 access.

Board Update

The v1.4.0 board update was performed manually — 22 items moved from Done → Released directly via GraphQL.

Related

  • Fixes the squad-mark-released auto-trigger failure for v1.4.0
  • Ensures future releases auto-update the board correctly

…-mark-released

GITHUB_TOKEN cannot access GitHub Projects V2 via GraphQL mutations.
Switch to GH_PROJECT_TOKEN (PAT with project scope) which is already
used by other project-board workflows in this repo.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 8, 2026 14:55
@github-actions

github-actions Bot commented May 8, 2026

Copy link
Copy Markdown
Contributor

🏗️ PR Added to Squad Triage Queue

This PR has been labeled with squad and added to the triage queue.

Next steps:

  • The squad Lead will review and assign to an appropriate team member
  • A squad:member label will be added after triage

If you know which squad member should handle this, you can add the appropriate squad:member label yourself.

@github-actions github-actions Bot added the squad Squad triage inbox — Lead will assign to a member label May 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the squad-mark-released GitHub Actions workflow to authenticate GraphQL Projects V2 mutations using a PAT (secrets.GH_PROJECT_TOKEN) instead of secrets.GITHUB_TOKEN, addressing “Resource not accessible by integration” failures when moving project items from Done → Released.

Changes:

  • Switch actions/github-script authentication from secrets.GITHUB_TOKEN to secrets.GH_PROJECT_TOKEN in the squad-mark-released workflow.

Comment on lines 25 to 28
uses: actions/github-script@v9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.GH_PROJECT_TOKEN }}
script: |
@github-actions

github-actions Bot commented May 8, 2026

Copy link
Copy Markdown
Contributor

Test Results Summary

314 tests  ±0   313 ✅ ±0   19s ⏱️ ±0s
  6 suites ±0     1 💤 ±0 
  6 files   ±0     0 ❌ ±0 

Results for commit 5408b11. ± Comparison against base commit 8571bf3.

♻️ This comment has been updated with latest results.

@codecov

codecov Bot commented May 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.48%. Comparing base (8571bf3) to head (5408b11).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #257   +/-   ##
=======================================
  Coverage   84.48%   84.48%           
=======================================
  Files          44       44           
  Lines         851      851           
  Branches      114      114           
=======================================
  Hits          719      719           
  Misses         88       88           
  Partials       44       44           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mpaulosky mpaulosky added squad:aragorn Assigned to Aragorn (Lead / Architect) type:bug Something broken labels May 8, 2026
@mpaulosky
mpaulosky merged commit 976ec57 into dev May 8, 2026
16 checks passed
@mpaulosky
mpaulosky deleted the squad/256-fix-squad-mark-released-token branch May 8, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

squad:aragorn Assigned to Aragorn (Lead / Architect) squad Squad triage inbox — Lead will assign to a member type:bug Something broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants