Repository navigation
feat(resolve-config): let lane-rules.json add actions read to one activity - #9409
Conversation
…ivity
Owner decision Q8: the lanes App token may carry actions read for
pr-merge's reads only. A lane-rules.json row may now name leaves of its
lane under activity-grants, each mapped to exactly {"actions": "read"};
resolve and resolveGrant add it to the effect row, and anything else is
rejected as lane-grant. resolve-config outputs actions, request-lane-token
compares it when set, and pr-merge.yml passes it. No row sets it yet, so
every grant stays as it was.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ane lacks
lane-rules.json serves every config that runs a lane, and the README
example's pr-merge lane holds `merge`, not `merge-pr`. A name the lane
does not hold now adds nothing instead of rejecting the config; the
value must still be exactly {"actions": "read"}.
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-review reviewed Code review of #9409 at da83cea: no findings. I read the whole diff (11 files) and the PR context. I did not run the tests; the PR's test counts are the author's claim and I did not check them. What I checked
Not verified
|
|
claude-security-review reviewed I found no security issues in PR #9409 at head da83cea. I read the full diff ( critical-findings: 0 What the change does. It adds an opt-in Why I found nothing.
Manifest check. The diff changes no Instruction surfaces. The diff deletes or softens no standing instruction ( Trust-gate paths. The diff does not touch Embedded text. The PR context contains no embedded directives aimed at the review lane. Not verified. The broker side (melodic-software/azure-iac#83) is outside this diff, so I did not review it. The PR's stated deploy order (this PR, then the broker pin, then the data PR) is an operational dependency, not a vulnerability. Merging the data PR first would fail pr-merge mints with |
No related issue: owner decision Q8 (owner, 2026-10-23): the lanes App
token may carry `actions: read` for pr-merge's reads only.
## Summary
This grants pr-merge's `merge-pr` lane token `actions: read`. The peer
session poteto builds pr-merge's read fallback off `GITHUB_TOKEN` on top
of it. The token stays read-only for Actions, and no other lane or
activity gets it.
## Fix
- `lane-rules.json`: the `pr-merge` row sets `"activity-grants": {
"merge-pr": { "actions": "read" } }`.
- `live-config.test.mjs`: pins that `merge-pr` resolves `actions: read`
and that every other live slot resolves none.
- The `pr-merge.yml` comments and
`docs/conventions/pr-pipeline/README.md` no longer say the lane token
holds no Actions permission.
Stacked on #9409 (merged) and azure-iac#83 (merged and deployed, run
39968516268).
## Verification
- The new live-config test failed before the data change and passes
after it.
- `npm test` in `.github/actions/resolve-config`: 662 pass, 0 fail. The
pr-merge script tests and request-lane-token tests pass.
- `actionlint` is clean.
## Related
- #9409: the `activity-grants` mechanism, the base of this PR.
- melodic-software/azure-iac#83: the broker check.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
No related issue: owner decision Q8 (owner, 2026-10-23): the lanes App token may carry
actions: readfor pr-merge's reads only.Summary
pr-merge reads verdict artifacts, run listings and run records with
GITHUB_TOKEN. When that token's limit runs out, those reads need a fallback. The owner allowed the lanes App token to carryactions: read, read-only, for pr-merge alone. This PR adds the mechanism and grants nothing yet: nolane-rules.jsonrow sets the new field.Fix
resolve.mjs: alane-rules.jsonrow may setactivity-grants, mapping activity names to exactly{ "actions": "read" }.resolveandresolveGrantadd that to the activity's effect row.lane-grant.merge).resolve-config: newactionsoutput (read, or empty).request-lane-token: new optionalactionsinput,reador empty. It joins the broker comparison only when it is set, so a broker that grantsactionsto a job that resolved none fails red aseffect-mismatch. Check mode refuses it.pr-merge.yml: passesactionsto the token request.Broker pin: melodic-software/azure-iac#83
Verification
resolve.test.mjs: three new tests.request-lane-token.test.mjs: four new tests.merge-job.test.mjs: one new wiring test.npm testin.github/actions/resolve-config: 661 pass, 0 fail.request-lane-token,check-trusted-triggerandpr-mergescript tests pass.actionlintis clean onpr-merge.yml.Related
merge-practions: read, stacked on this PR.Deploy order:
Merging the data before the broker deploys fails every pr-merge mint with
effect-mismatch.🤖 Generated with Claude Code