Repository navigation
fix(claude-security-review): mitigate absent required check (#227) - #440
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Claude finished @kyle-sexton's task in 3m 35s —— View job Code review — PR #440
This is a well-documented, carefully reasoned change (
Note on verification: I could not execute |
There was a problem hiding this comment.
💡 Codex Review
ci-workflows/.github/workflows/claude-security-review.yml
Lines 805 to 806 in 644281b
When mode=dispatch processes an absent check on a fork PR, the companion includes it in the unfiltered open-PR scan (security-review-absent-mitigate.cjs:392-411) and dispatches it (:545-552), but this condition applies the fork guard only to pull_request events. The dispatched run therefore checks out the resolved fork SHA and invokes Claude with CLAUDE_CODE_OAUTH_TOKEN, allowing fork-controlled files and instructions to run in a secret-bearing context—the exact exposure the normal pull_request guard prevents. Reject a resolved head-repo that differs from github.repository before checkout/action execution.
ℹ️ 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".
Intermittent pull_request event-delivery gaps can leave the required security-review / security-review context ABSENT (not failed), blocking merge on requires-security-review=true repos. - Add workflow_dispatch + pr-number re-entry on the security dogfood caller and reusable (resolve-pr / freshness / checkout / prompts), without moving the lane onto privileged pull_request_target or workflow_run. - Add security-review-absent-mitigate.cjs (extends check-run-reconcile) plus schedule/dispatch companion workflows that post a FAILED visibility check or re-dispatch the caller. - Document the mitigation for consumers. Fixes #227 Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
Clear MD004 on the companion docs note and keep the shebang script executable in the git index for the hygiene exec-bit gate. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
644281b to
afdefb8
Compare
Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Address review on #440 / #227: - workflow_dispatch with --ref=PR head so the check attaches to the head SHA - grace window anchors to sibling check activity / head commit time, not PR created_at (so synchronize pushes are not raced) - null-safe Checks/Actions payloads Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Summary
Mitigate intermittent absent
security-reviewrequired checks so bot-opened PRs are not permanently blocked when event delivery gaps leave the check missing.Related
Fixes #227
Fix
Verification
node --teston security-review dispatch / fail-closed / absent-mitigate tests.github/scripts