mirror of
https://github.com/block/buzz.git
synced 2026-10-27 04:30:52 +00:00
Add gated security reviews (#6816)
Add a gated Codex security review for Buzz pull requests. Reviews run automatically for Block organization members. External PRs require a `@buzz-security-review` comment from a Block member, and every new external push invalidates the previous result. Codex reviews the PR SHA in a read-only, network-restricted job with no write GitHub token. A separate trusted job validates and sanitizes structured findings before posting them. The workflow uses the dedicated `CODEX_REVIEW_API_KEY` secret. --------- Signed-off-by: Jordan Mecom <jm@squareup.com>
This commit is contained in:
7
Justfile
7
Justfile
@@ -93,7 +93,12 @@ build-release:
|
||||
cargo build --workspace --release
|
||||
|
||||
# Run repo lint, formatting, and repository policy checks
|
||||
check: fmt-check clippy desktop-check desktop-tauri-fmt-check desktop-tauri-clippy web-check mobile-check file-size-check
|
||||
check: fmt-check clippy desktop-check desktop-tauri-fmt-check desktop-tauri-clippy web-check mobile-check security-review-check file-size-check
|
||||
|
||||
# Validate the trusted security-review workflow support and renderer contract.
|
||||
security-review-check:
|
||||
node --check .github/scripts/codex-security-review.js
|
||||
node --test .github/scripts/codex-security-review.test.js
|
||||
|
||||
# Run the repository-wide differential file-size ratchet and its policy tests.
|
||||
# The ratchet inspects only files changed from the merge base, so this stays
|
||||
|
||||
Reference in New Issue
Block a user