Repository navigation
feat(review): hand the code-review lane the PR description and closing issues as a file - #765
Conversation
…sues The pr-review.yml claude-args default allowed only `gh pr diff`, so the lane could not read the PR body or the closing issue with its acceptance criteria. Add `gh pr view` and `gh issue view` to the default allowlist. The security lane keeps its diff-only default. Refs: melodic-software/claude-code-plugins#7815 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AfcE6qXwStK92XAx21MG43
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 finished @kyle-sexton's task in 2m 38s —— View job Code review
SummaryReviewed the three changed files against the diff from One finding posted inline on The new Not evaluated: the author's own Verification section ( |
|
Claude finished @kyle-sexton's task in 3m 34s —— View job Security review
Scope: only Finding (IMPORTANT)
The workflow has a standing, documented control for exactly this risk: Exploit path: a PR (or a comment on it from an excluded actor, e.g. a dependency-bump comment) carries an injected instruction. The model, now permitted to run
Posted inline on the changed line with the same detail and a suggested direction (narrow the grant so it can't surface comments, or extend the actor-exclusion filtering to cover content the model fetches itself via Bash). No other security issues found in this diff (the |
|
claude-review has reviewed this pull request through be0c5fe; a later push is reviewed from there. |
|
claude-security-review has reviewed this pull request through be0c5fe; a later push is reviewed from there. |
…g issues as a file Drop the gh pr view and gh issue view grants: gh pr view --comments bypasses exclude-comments-by-actor, and gh issue view needs issues: read, which would change the reusable workflow's permission contract. A new step writes the pull request description and the issues it closes (with comments from OWNER, MEMBER and COLLABORATOR authors only) to .claude-lane/pr-context.md, framed as data, and the prompt points the model at it. Pull request comments stay out. Refs: melodic-software/claude-code-plugins#7815 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AfcE6qXwStK92XAx21MG43
|
Claude finished @kyle-sexton's task in 2m 27s —— View job Security review (incremental)
Scope: incremental, per the lane's own instructions — only what changed since SummaryThis revision replaces the prior approach entirely. Instead of granting the model
Checked and found not to be new issues
Not independently re-verifiedThe author's No security findings on this incremental change. The diff resolves the prior round's CRITICAL (comment-filter bypass) and IMPORTANT (permission-gap) findings rather than introducing new risk. |
|
Claude finished @kyle-sexton's task in 4m 52s —— View job Code review (incremental)
SummaryReviewed commits since One finding posted inline on The new The test file change is internally consistent (no leftover Not evaluated: the author's own Verification section — not independently re-run here. |
The default no longer carries the gh pr view and gh issue view grants. Refs: melodic-software/claude-code-plugins#7815 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AfcE6qXwStK92XAx21MG43
Refs: melodic-software/claude-code-plugins#7815
Summary
The code-review skill in claude-code-plugins (PR 7825, for issue 7815) now reads the PR body and the PR's closing issue with its acceptance criteria. The
pr-review.ymllane never gives the model either: claude-code-action's agent mode puts only the workflowpromptin front of the model (src/modes/agent/index.tsat the pinned v1.0.250). That gap is one reason the lane passed 9 lane PRs that fresh reviews failed (evidence in claude-code-plugins#7815).Fix
A new step,
Write the pull request description and closing issues, uses the job's existinggithub.tokento read the PR title and body andclosingIssuesReferences(title, body, comments) through one GraphQL call, and writes.claude-lane/pr-context.md. Both Claude attempts get a prompt line pointing at it.Bash(gh pr view:*)would let the model run--commentsand bypassexclude-comments-by-actor;Bash(gh issue view:*)needsissues: read, which changes the reusable workflow's permissions and, through the standardsrunner-policycontract (allowedCallerPermissions), every caller.authorAssociationis OWNER, MEMBER or COLLABORATOR.continue-on-error).claude-argsdefaults,pr-review-security.ymland job permissions are unchanged.gh pr view/gh issue view, and both Claude attempts name the file.Known residual: on a private repository the job token may be unable to read issues through GraphQL. The file then holds the description alone, or is not written, and the lane behaves as it does today.
Verification
actionlint .github/workflows/pr-review.yml: exit 0.node --test .github/scripts/*.test.cjs: 427 tests before the two added, all pass; the compose-args file runs 23 of 23.biome ci --config-path=fixtures/typescript/good/biome.json --error-on-warnings fixtures/typescript/good .github/scripts: no errors (one schema-version info, present on main).Related
.claude-lane/pr-context.md)release-tag.ymlworkflow_dispatch, bumpminor. Standardsrunner-policyneeds an approved-contract entry for the new SHA; no input, secret or permission changes.🤖 Generated with Claude Code
https://claude.ai/code/session_01AfcE6qXwStK92XAx21MG43