Skip to content

Reduce PR security review reporting work - #21528

Merged
zsol merged 3 commits into
mainfrom
zsol/reduce-pr-security-review-overhead
Sep 10, 2026
Merged

zsol merged 3 commits into
mainfrom
zsol/reduce-pr-security-review-overhead

Conversation

@zsol

@zsol zsol commented Sep 7, 2026 •

Copy link
Copy Markdown
Member

The PR security review can reach its 30-minute limit after validating findings but before returning the JSON consumed by CI. Codex Security v0.1.11 requires vulnerability writeups and a hardening pass that this job does not use. Update to v0.1.22, where those reports are request-only, and bump Codex CLI to 0.153.4. The updated plugin’s default inventory filters paths such as .github and PowerShell files, so collect the exact PR diff and complete path list and fail the review unless reviewed_paths matches every changed path.

Also pin codex-action to the revision with GitHub API permission-check retries, but before the v1.12 Linux drop-sudo change as that introduces a serious issue tracked in openai/codex-action#160.

The review often builds and runs custom test harnesses to validate findings. Move it to depot-ubuntu-24.04-16, the runner used by Linux tests, and enable user namespaces there for the Codex sandbox.

@zsol
zsol marked this pull request as ready for review September 7, 2026 15:40
Comment on lines -81 to +124
uses: openai/codex-action@52fe01ec70a42f454c9d2ebd47598f9fd6893d56 # v1.11
uses: openai/codex-action@c385816875cc2fc8e033ed9d1cba96f8c331210e # v1.11 + GitHub API retry

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uh weird?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, see the PR description. I'm not happy

@zsol
zsol force-pushed the zsol/reduce-pr-security-review-overhead branch 2 times, most recently from 3c4013c to caf0d65 Compare September 8, 2026 16:21
@zsol
zsol requested a review from zanieb September 8, 2026 18:21
@zsol zsol added the internal A refactor or improvement that is not user-facing label Sep 8, 2026

@zanieb zanieb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am sort of wary of how many things are happening here but 🤷‍♀️

@zsol

zsol commented Sep 10, 2026

Copy link
Copy Markdown
Member Author

If you want more PRs to review, just say the word! :)

@zsol
zsol force-pushed the zsol/reduce-pr-security-review-overhead branch from caf0d65 to 24b580d Compare September 10, 2026 14:41
@zanieb

zanieb commented Sep 10, 2026

Copy link
Copy Markdown
Member

I do prefer when I can pick and choose which pull requests to review, rather than having one that I must review because it is solving an important problem but includes a bunch of other things :)

@zsol
zsol merged commit a51624b into main Sep 10, 2026
57 checks passed
@zsol
zsol deleted the zsol/reduce-pr-security-review-overhead branch September 10, 2026 15:53
zsol added a commit that referenced this pull request Sep 10, 2026
Increase the PR security review's `codex-action` reasoning effort from
`high` to `xhigh`.

Stacked on #21528.
zsol added a commit that referenced this pull request Sep 10, 2026
## Summary

After #21528, older PR branches can run the new security-review workflow
with an old prompt and output schema. Codex returns only `findings`, and
the new `reviewed_paths` check fails, as it did on #21589.

Save the review configuration from the workflow revision into a
temporary place (`$REVIEW_CONFIG`) before checking out the PR head. Use
that copy for the prompt, schema, threat models, installer, Codex
settings, and session upload. This also means relocating `$CODEX_HOME`
into the temporary `$REVIEW_CONFIG`.

## Test plan (on top of CI)

- Replayed the workflow steps with #21589’s original 27 changed files.
Confirmed the original failure, successful complete coverage, and
rejection of missing coverage.
- Checked that missing and empty installer arguments fail before setup.

This branch was previously deployed

1 inactive deployment
automations — 24b580db Deployed Sep 10, 2026 by zsol via review / security review #46302
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants