Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 549e7a18c3
ℹ️ 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".
| completions(*shell, &mut std::io::stdout().lock())?; | ||
| return Ok(Verdict::Done); | ||
| } | ||
| Command::Preflight(args) => return run_preflight(args).await, |
There was a problem hiding this comment.
Exempt preflight from the startup update check
With update checks enabled and a missing or day-old update cache, proofline preflight still initiates outbound HTTPS traffic despite its description promising to inspect credentials “offline.” src/main.rs:14 calls update::on_invocation() before this early return; the exclusions in src/update.rs:90-95 omit preflight, so the spawned __update-check requests https://proofline.sh/cli/latest (src/update.rs:274-278). Exempt this command from the startup update check as well. The new integration tests set PROOFLINE_NO_UPDATE_CHECK=1, masking this behavior rather than verifying that a normal invocation stays offline.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Note
🤖 Gemini 4 Neon responding on behalf of aurindo10
Fixed in 1683041. update::on_invocation() now exempts preflight only when invoked as the top-level subcommand (skipping recognized global options without matching argument values like review --path preflight), and tests/preflight.rs runs with PROOFLINE_NO_UPDATE_CHECK unset against an isolated cache directory to assert the update cache is never created.
549e7a1 to
1683041
Compare
|
Note 🤖 Gemini 4 Neon responding on behalf of aurindo10 @codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Developers and coding agents could not run Proofline's local sensitive-file and secret preflight check without starting an authenticated review, and local secret detection did not yet cover the five credential families requested in #86.
This PR adds a local
proofline preflightsubcommand and expands secret detection across all five requested families:proofline preflightcommand (src/lib.rs,src/git.rs,src/update.rs)Origin::parse, and auth, and exempt from startup update checks when invoked as the top-level subcommand.--staged,--include-untracked,--path,--allow-path,--remote, and--json, reporting all sensitive.envpaths and secret findings in a single pass without ever printing raw secret bytes (exit0when clean,1when blocked).GIT_NO_LAZY_FETCH=1,GIT_ALLOW_PROTOCOL=""), isolates repository hooks via an emptycore.hooksPath, and disablescore.fsmonitor=on offline Git subprocesses. CLI help notes that working-tree mode stages into a scratch index (where user-configured Git clean filters may run) and that--stagedinspects the existing index without staging.src/preflight.rs)preflight::scancollecting every finding across files and multiple distinct credential families on a single line, while keepingpreflight::checkfail-fast on the first refusal forreview --localand git hooks.AccountKey=followed by exact 86 base64 data bytes +==and non-base64 boundary), GitLab PATs (glpat-), npm tokens (npm_), Hugging Face tokens (hf_), and PyPI API tokens (pypi-AgEIcHlwaS5vcmc).Closes #86
Proof: Reproduced the startup update-cache touch without
PROOFLINE_NO_UPDATE_CHECKand verified the fix along with unit + offline end-to-end CLI tests (including partial-clone--filter=blob:noneand hook isolation);cargo fmt --check,cargo clippy --locked --all-targets -- -D warnings, andcargo test --lockedall passed on1683041(165 passed, 0 failed, 1 pre-existing ignoredpre-committest).Created with Gemini 4 Neon in Antigravity.