Repository navigation
Report Base branch causes in Security pre-audit failures - #1168
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #1055
Evidence
Seams under test: the
thirdshift secureCLI's exit status, session startup, stderr and Run notification sent through fake Resend; the existing Launch directory tests protect CLI stderr wording.cargo test --test security_run missing_base_branch_reports_a_safe_pre_audit_causefailed withCause: pre-audit checks failed; the new other-Base-branch scenario failed with the same Cause for an unpushed local branch.After:
cargo test --test security_run pre_auditpasses all seven scenarios, covering missing/unpushed/detached/ahead Base branches, unchanged GitHub dependency/rate-limit Causes, no audit startup, exactly one notification, private diagnostic exclusion and the generic fallback.cargo test --bin thirdshift launch::tests: 20 passed, including unchanged stderr wording and safely quoted push advice.cargo fmt --checkandcargo clippy --all-targets -- -D warnings: passed after the follow-up test cleanup./usr/bin/time -p scripts/affected-tests main: passed, including docs regeneration verification, all 49 site tests and the full Rust suite: 2,378 passed, 55 skipped. Selector wall time: 1,467.53s, including site checks and 56.94s Rust compilation; nextest test execution: 1,339.187s. Timing includes compilation and reflects this host's load.Review
assert_base_branch_pre_audit_causeand confirmed by the reviewer. The seven pre-audit scenarios pass after the cleanup.site/docs/index.html. No unread changed files or generated-output exclusions.Merge Danger
Door: two-way
Blast Radius: notifications
Base branch validation keeps its CLI diagnostics; only Security runs' pre-audit notifications gain the fixed categories. No migration or configuration changes.
Unaddressed findings
Standards
None.
Spec
None.
Security
None. Guidance-mode review of the Base-branch Cause change found no introduced vulnerability: the notification Cause is a fixed
&'static strper error type (no branch name or raw diagnostics reach Resend; asserted absent from the email body by the seven passingpre_auditscenarios), git runs viaCommand::new("git").args(...)with no shell, and unclassified errors fall back to the generic Cause. Verified withcargo test --test security_run pre_audit(7 passed) andcargo test --bin thirdshift launch::tests(20 passed).Built with codex · gpt-6.1-sol · xhigh
Security review outcome
No unaddressed introduced findings.