Skip to content

feat(runner-policy): allow pr-review-cli's workflow_run inputs - #953

Merged
kyle-sexton merged 1 commit into
mainfrom
feat/pr-review-cli-workflow-run-inputs
Nov 6, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
feat/pr-review-cli-workflow-run-inputs

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: melodic-software/claude-code-plugins#13717

Summary

This lets callers of the ci-workflows reusable pr-review-cli.yml pass its four new inputs: pr-number, head-sha, base-sha and event-action. The inputs come from melodic-software/ci-workflows#999. They let a workflow_run caller start the review once a Refine stage finishes (the owner's decision on claude-code-plugins #13717). The README's "Contract revision lockstep" rule 1 requires a new input to be in the contract, and synced, before any caller passes it.

Fix

components/runner-policy/policy.json: the four names are added to the pr-review-cli.yml entry's allowedInputs, in the list's append order. The schema documents no individual inputs, so no descriptions were added. distribution/sync-manifest.yml:382 delivers the file byte-for-byte to consumers' .github/standards/runner-policy/policy.json.

Verification

  • node --test components/runner-policy/runner-policy.test.mjs: 232 of 232 pass.
  • node components/runner-policy/runner-policy.mjs --root <worktree>: "Runner policy passed."
  • The commit is signed. gitleaks found no leaks.

Related

🤖 Generated with Claude Code

List pr-number, head-sha, base-sha and event-action in the pr-review-cli.yml
contract's allowedInputs, so a workflow_run caller can pass them
(melodic-software/ci-workflows#999). A caller that omits them is unchanged.

Refs: melodic-software/claude-code-plugins#13717

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-06T15:24:55.666526Z
We couldn’t complete this review. Comment @codex review to try again.
d69ebca PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

claude-review reviewed d69ebca7d7b32a7f7f7eda8ab6892f8863c3fdf9: 0 finding(s), 0 as inline comments.

No findings. The PR appends pr-number, head-sha, base-sha and event-action to the pr-review-cli.yml entry's allowedInputs in components/runner-policy/policy.json. The JSON is valid and the list's existing order is kept. I grepped the repo for an existing input name (generated-data) and found it only in policy.json, so no doc, schema or test fixture duplicates the list and needs updating. Nothing in the diff touches approvedShas, secrets or caller permissions.

I did not run the tests or the policy script. The PR body's results (232 of 232 tests pass, "Runner policy passed.") are the author's claims and I did not check them.

The PR body follows the contract: Refs: line, then Summary, Fix, Verification and Related. The closing-issue section of the PR context file is absent because the PR only references an issue, so there are no acceptance criteria to check. The PR context file holds no embedded directives. No hold applies.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

claude-security-review reviewed d69ebca7d7b32a7f7f7eda8ab6892f8863c3fdf9: 0 finding(s), 0 as inline comments.

No security findings. critical-findings: 0

Scope: the one-file change in components/runner-policy/policy.json (lines 162-169 at head d69ebca). It adds four input names, pr-number, head-sha, base-sha and event-action, to allowedInputs for the pr-review-cli.yml contract.

What I checked:

  • allowedInputs is a name allowlist for the with: keys a governed caller may pass. The change adds no secret to allowedSecrets and no caller permission to allowedCallerPermissions. It adds no SHA to approvedShas and does not change routing/fixedRunsOn (hosted-only, ubuntu-24.04). The token scope, the secret mounts and the pinned reusable-workflow refs are all unchanged.
  • The four names are identifiers (PR number, SHAs, event action), not paths, commands or URLs. This policy only admits them. A caller must still add them to its own with: mapping in a reviewed diff. The reusable workflow at an approved SHA must declare them, or GitHub rejects the undeclared input. I could not read ci-workflows from here, so how that workflow validates them is outside this review.
  • The trust-control lens (who is trusted, token scope, kill switch, merge holds, untrusted text reaching a credentialed lane) finds no widening in this diff. allowedInputs is not one of the listed trust controls, and it admits no new actor.
  • The CLAUDE_* secret mappings are unchanged, and hold-paths, lane-transcript-public-key and the other existing entries are untouched.

Note for follow-up, not a finding: the new inputs let a caller such as a workflow_run wrapper hand the lane a PR identity. Whether that is safe depends on the caller validating head-sha and pr-number against the trusted event payload. That check lives in the ci-workflows pr-review-cli.yml and in each caller, and neither is in this diff.

Skipped: PR CONTEXT:, SETTLED THREADS: and PRIOR FINDINGS: files were not supplied, so nothing was settled or prior. The instruction-exception register was not consulted, because the diff touches no instruction surface.

@kyle-sexton
kyle-sexton merged commit 18eee81 into main Nov 6, 2026
22 checks passed
@kyle-sexton
kyle-sexton deleted the feat/pr-review-cli-workflow-run-inputs branch November 6, 2026 15:53
kyle-sexton added a commit that referenced this pull request Nov 6, 2026
…#954)

<!-- session: lane-3 -->
Refs: melodic-software/claude-code-plugins#13717

## Summary

This lets callers of the ci-workflows reusable `pr-review-cli.yml` pass
the new optional input `dispatcher-actor-ids` that
melodic-software/ci-workflows#1001 adds. The input lets the actor of a
`workflow_dispatch` caller start the review model jobs, and grants
nothing else. Under the README's "Contract revision lockstep" rule 1,
the input enters the contract and the sync before any caller passes it.

## Fix

`components/runner-policy/policy.json`: `dispatcher-actor-ids` is
appended to the `pr-review-cli.yml` entry's `allowedInputs`, after the
four inputs that #953 added.

## Verification

- `node --test components/runner-policy/runner-policy.test.mjs`: 232 of
232 pass.
- `node components/runner-policy/runner-policy.mjs --root <worktree>`:
"Runner policy passed."
- The commit is signed, and gitleaks found no leaks.

## Related

- melodic-software/ci-workflows#1001 (adds the input)
- #953 (the four `workflow_run` inputs)
- melodic-software/claude-code-plugins#13717 (Refine before review)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant