🐛 fix: P-32 pull request runs read-only, 0.5.3
Slice: #73
The workflow onboard writes gave every run issues: write, though only the weekly decisions run writes to issues, and upgrading replaced an adopter's own split with that one job.
- Template (
src/onboard.ts): two jobs callingchecks.yml@vX.Y.Zwithprocess-rules-ref: vX.Y.Z.process-rulesruns on pull requests and pushes with the workflow's read-only permissions;process-rules-weeklyruns on the schedule and by hand withcontents: read,issues: write,pull-requests: read. The header says the version appears twice per job. The PR checks keep their names,process-rules / …. checks.yml: splitting the caller alone fails to start. GitHub refuses a whole run, before any job'sif:, when a called job asks for more than its caller grants, and thedecisionsjob asked forissues: writeitself. Sochecks.ymlnow sets no workflow-wide permissions, its four read-only jobs set their own, anddecisionstakes what the calling job grants. A split workflow therefore needs v0.5.3 or later.- Upgrading:
onboardrecognises the older single-job template (any version) and replaces it; in a workflow already split intoprocess-rulesandprocess-rules-weeklyit moves only the four version pins and the header's version; any other workflow is offered a replacement, as before. - Tests for the template, each upgrade path and onboard's questions; README and
docs/decisions.md; version 0.5.3 inpackage.jsonand the README install line.
A temporary commit splits this repository's own workflow to call checks.yml at the fix commit, so this PR's run proves the read-only job starts; a manual run on the branch proves the weekly job. It is reverted before merge.
After merge, tag v0.5.3 on the merge commit.
🤖 Generated with Claude Code
Summary by cubic
Fixes the client workflow so pull request and push runs are read-only; only the weekly decisions run writes to issues.
onboard now writes two jobs calling checks.yml: process-rules on pull requests and pushes, and process-rules-weekly on the schedule and by hand, the only job with issues: write. PR checks keep their names, process-rules / ….
The split alone was not enough: GitHub refuses the whole run, before any job's if:, when a called job asks for more than its caller grants, and checks.yml's decisions job asked for issues: write itself. checks.yml now sets no workflow-wide permissions; its four read-only jobs set their own, and decisions takes what the calling job grants. A split workflow needs v0.5.3 or later.
onboard replaces the older single-job template; in a workflow already split it moves only the version pins and the push branch when the default branch changed, and offers a replacement for any other workflow, as before. Bumps the version to 0.5.3.