Skip to content

fix(ci): add permissions block to pr-checks.yml orchestrator #35

@sjnims

Description

@sjnims

Summary

The pr-checks.yml orchestrator workflow fails with startup_failure because it lacks a permissions: block required for calling reusable workflows.

Severity: Critical (blocks all PR validation)

Problem

When reusable workflows are called via uses: ./.github/workflows/xxx.yml, they can only access permissions explicitly granted by the calling workflow. Currently pr-checks.yml has no permissions: block, so all permissions default to none.

Error message:

"The nested job 'validate' is requesting 'actions: read, issues: write, pull-requests: write, id-token: write', but is only allowed 'actions: none, issues: none, pull-requests: none, id-token: none'."

Affected Workflows

The following reusable workflows require permissions:

Workflow Permissions Needed
component-validation.yml contents: read, pull-requests: write, issues: write, id-token: write, actions: read
version-check.yml contents: read, id-token: write
claude-pr-review.yml contents: read, pull-requests: write, issues: write, id-token: write, actions: read

Solution

Add a permissions: block to pr-checks.yml with the union of all required permissions:

permissions:
  contents: read
  pull-requests: write
  issues: write
  id-token: write
  actions: read

Location

  • File: .github/workflows/pr-checks.yml
  • Line: After concurrency: block (around line 12)

Acceptance Criteria

  • permissions: block added to pr-checks.yml
  • All reusable workflow calls succeed
  • All Checks Pass job runs and reports status

Related

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingeffort:small< 1 hourgithub-actionsPull requests that update GitHub Actions codepriority:criticalBlocking, security, or breakingpriority:highImportant but not blocking

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions