Make PR reviews strictly read-only#27
Conversation
dceoy
left a comment
There was a problem hiding this comment.
Two security-boundary issues remain. The reviewer subagents are substantially safer, but the orchestrator still has unrestricted general capabilities, and the new read permissions weaken OpenCode's default secret-file protection. CI is passing, but these should be corrected before merge.
dceoy
left a comment
There was a problem hiding this comment.
Two security/correctness gaps remain. CI is passing, but the review-only boundary can still be bypassed by project-local OpenCode extensions from the reviewed checkout, and the analyzed head is not pinned across context gathering and submission. Also, the action still installs security-critical toolkit files with cp -rn, so stale versions survive on persistent/self-hosted runners. Use an isolated fresh config directory for review mode and persist one immutable trusted PR context for the entire run before treating #24 as resolved.
PR Review: Make PR reviews strictly read-onlyOverall the boundary is well-defended: fail-closed Findings1.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b290da6342
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
dceoy
left a comment
There was a problem hiding this comment.
PR Review Summary
No actionable issues meeting the review’s reporting threshold were identified.
Checked
- Review-only mode detection and project-config/plugin isolation in
action.yml. - Fail-closed orchestrator and reviewer-agent permissions, including
.envprotections and exact helper allowlists. - Trusted PR context pinning, head-SHA revalidation, structured review submission, and failure handling in the review helper scripts.
- Pull-request and
issue_commentregression coverage, shell-composition rejection, malicious-plugin fixture coverage, and current-head CI status. - Existing review threads and prior findings; all are resolved or outdated for this head.
Notes
The current-head CI/CD workflow completed successfully.
Recommended Action
No automated blocking concerns were identified. Merge remains a maintainer decision after required checks pass.
|
Post-merge review found two residual issues that should be handled in a follow-up:
|
Summary
Fixes #24.
This PR establishes a review-only boundary while preserving
opencode github run:/review-pr;.envread protections;/review-pr simplifyproposal-only.Validation
issue_commentcontext, structured submission, head movement, shell composition, and a malicious project plugin.action.ymlstill invokesopencode github run.