Repository navigation
fix(runner-policy): admit actions: read on intake-triage.yml callers - #949
Conversation
melodic-software/ci-workflows#996 adds the check-key-credit gate to intake-triage.yml, as pr-review-cli.yml already runs it. The gate lists the repository's credit-stop markers with actions: read, and a called workflow holds only what its caller grants, so each caller job must grant it. This adds actions: read to the reviewed allowedCallerPermissions of the intake-triage.yml contract, so a caller that grants it clears runner-policy. Callers float @main, so approvedShas does not change. Refs: melodic-software/claude-code-plugins#13586 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #949 (HEAD d0f1ce4)Result: no findings. Scope. The PR is a single added line in Trust-control check. Admitting a new caller token scope counts as a possible widening of what a token may do, so I read how the field is enforced.
Not verified. Whether the Claude step in Instruction-surface deletions: none. Plugin manifests: none touched. Trusted paths: none matched. Embedded text: none in the diff. I did not read a PR context file because none was supplied. Owner threat-model note. This change removes or weakens no merge hold. |
|
claude-review reviewed Reviewed the one-line change to Finding (advisory, on line 46): Other checks:
|
The synced runner-policy contract (melodic-software/standards#949) requires the intake-triage.yml caller to grant actions: read, so the reusable's check-key-credit gate can list this repository's credit-stop markers. The grant lands in this sync PR so the contract and the caller merge together. Refs: #13586 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r a migration (#950) Refs: melodic-software/claude-code-plugins#13586 ## Summary The runner-policy contract matches a caller's permissions against `allowedCallerPermissions` exactly. standards#949 added `actions: read` to the intake-triage contract, so every caller must now grant it. The claude-code-plugins caller cannot add it before the sync, because the old synced contract rejects it, and the sync PR cannot be hand-edited (check-managed-files). Under a required `ci-status` that is a deadlock. This PR lets a contract list several exact maps, so a permission change lands expand/contract: 1. This PR: accept a list of exact maps, and list the old and new intake-triage maps. 2. The sync PR, plus the caller PR that grants `actions: read`. 3. A follow-up that drops the old intake-triage map. 4. melodic-software/ci-workflows#996. ## Fix - `runner-policy.mjs`: `allowedCallerPermissions` is one exact map or a non-empty list of exact maps. A caller passes when its effective permissions equal any one listed map exactly; each map is still matched exactly, so the ceiling stays exact. With more than one map, the failure names every allowed map (`must be exactly one of {...}, {...}`). The single-map form keeps its existing per-scope wording. The config checks (at least one write scope, satisfies `minimumCallerPermissions`) run per map and name the failing index. - `policy.schema.json`: `allowedCallerPermissions` is `oneOf` a permission map or a `minItems: 1`, `uniqueItems` array of permission maps. - `policy.json`: intake-triage lists `{contents: read, issues: write}` and `{actions: read, contents: read, issues: write}`. No other contract changes. - `README.md`: "Contract revision lockstep" item 3 describes the expand/contract order for a caller permission change; the contract description admits the list form. ## Verification - `npm run test:runner-policy`: 232 pass, 0 fail. New cases: a caller matching the first map passes; matching the second passes; matching neither fails with a message listing both; a superset, subset or access drift of either map fails; the single-map form passes on an exact match and keeps its old messages; the schema rejects an empty list; every listed map must carry a write scope. - A mutant that checks only the first listed map fails the "matching either map passes" case. - `npm run lint:runner-policy`: passed. - biome 2.6.3 `ci` on `components/runner-policy`: clean. markdownlint on the README: clean. ## Related - #949 - melodic-software/claude-code-plugins#13630 - melodic-software/ci-workflows#996 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
Refs: melodic-software/claude-code-plugins#13586
Summary
This adds
actions: readto the reviewedallowedCallerPermissionsof theintake-triage.ymlcontract incomponents/runner-policy/policy.json. After the change, a caller job that grantsactions: readpassesrunner-policy.Fix
check-key-creditgate tointake-triage.yml;pr-review-cli.ymlalready has it. The gate lists the repository's credit-stop markers withactions: read. A called workflow holds only the permissions its caller job grants, so every caller job must grantactions: read.runner-policyrejects the claude-code-plugins caller: "reusable workflow caller permissions has unapproved properties". That rejection is the lint-repo failure on melodic-software/claude-code-plugins#13608.actions: readadds no write access and no token beyond the job's ownGITHUB_TOKEN.@main, soapprovedShasstays as it is.Verification
node --test components/runner-policy/runner-policy.test.mjs: 226 tests, 226 pass.Related
Merge order:
actions: read. That change was taken out of #13608 until this PR syncs, and goes back in afterwards.do-not-mergeuntil step 2 lands.🤖 Generated with Claude Code