Commit a1bfa81
fix(ci): add permissions block to pr-checks.yml orchestrator (#36)
## Summary
- Added required `permissions:` block to `pr-checks.yml` orchestrator
workflow
- Enables reusable workflow calls to access necessary GitHub token
permissions
## Problem
Fixes #35
The PR Checks orchestrator workflow fails with `startup_failure` because
reusable workflows can only access permissions explicitly granted by the
calling workflow. Without a `permissions:` block, all permissions
default to `none`.
**Error:** "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'."
## Solution
Added a `permissions:` block with the union of all permissions required
by:
- `component-validation.yml`
- `version-check.yml`
- `claude-pr-review.yml`
```yaml
permissions:
contents: read
pull-requests: write
issues: write
id-token: write
actions: read
```
### Alternatives Considered
- Adding permissions to each job individually - rejected because
workflow-level permissions are cleaner and reusable workflows inherit
from the caller
## Changes
- `.github/workflows/pr-checks.yml`: Added `permissions:` block after
`concurrency:`
## Testing
- [x] actionlint validation passes
- [x] Workflow syntax is valid
- [ ] PR Checks workflow runs successfully (will verify when this PR
triggers)
---
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 95c87cf commit a1bfa81
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
14 | 23 | | |
15 | 24 | | |
16 | 25 | | |
| |||
0 commit comments