Skip to content

systemic: CI workflows fail with 'Resource not accessible by integration' — GitHub token missing issues:write permission #3836

@marcusquinn

Description

@marcusquinn

Systemic CI Failure

Affected workflows: Issue Sync (Label PR from Conventional Commit), Code Review Monitoring & Auto-Fix
Affected PRs: All open PRs (batch1, batch2, batch3, batch4, and others)
Error: GraphQL: Resource not accessible by integration (addLabelsToLabelable) and HttpError: Resource not accessible by integration

Root Cause

The GitHub Actions token (GITHUB_TOKEN) used in these workflows lacks issues: write and/or pull-requests: write permissions. This prevents:

  1. Applying labels to PRs via GraphQL
  2. Posting comments on PRs/issues

Evidence

  • Run 22811519068 (batch4): Label step fails with addLabelsToLabelable: Resource not accessible by integration
  • Run 22811526019 (batch1): Comment step fails with HttpError: Resource not accessible by integration
  • Same error pattern on batch2, batch3 runs

Fix

Add explicit permissions to the affected workflow files:

permissions:
  issues: write
  pull-requests: write
  contents: read

Check .github/workflows/issue-sync.yml and .github/workflows/code-review-monitor.yml (or equivalent filenames).

Metadata

Metadata

Assignees

Labels

auto-dispatchAuto-created from TODO.md tagbugAuto-created from TODO.md tagpriority:highHigh severity — significant quality issuestatus:doneTask is complete

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions