← Back to Pull requests

ci: require git 2.41 for the secret scan #238

Closed
unknown closed this pull request without merging on Nov 16, 2026 23:48 UTC
View on GitHub
unknown unknown commented on Nov 14, 2026 04:24 UTC
Author

What and why

Follow-up to #230, from Will's note there. The scan sets GIT_ATTR_SOURCE so a committed .gitattributes can't hide files, and git before 2.41 silently ignores it. With gitleaks installed and older git (Ubuntu 22.04's 2.34, Debian 12's 2.39, older Xcode's Apple Git 2.39), check.sh failed with selftest: 'attributes' gave clean, not leak and no reason. The script now stops first with the git version it needs, and DEVELOPMENT.md lists it.

How it was tested

  • In Docker with the pinned gitleaks 8.30.1: git 2.34.1 and 2.40.4 stop with "git 2.41 or later is needed"; 2.43.7 passes all selftest cases.

  • The version parse accepts 2.41.0, 3.0.0 and 2.45.1.windows.1, and rejects 2.39.5 (Apple Git-154) and 2.4.0, under macOS's bash 3.2.

  • scripts/check.sh passes.
  • Checklist

  • scripts/check.sh passes locally

  • Every new refusal has a negative test: n/a

  • Every new security decision emits a SECURITY_AUDIT_EVENT covered by audit_coverage.rs: n/a

  • Fails closed on missing configuration, key material, or attestation

  • No new cryptographic primitives; suites stay behind their type aliases: n/a

  • Synthetic or public data only (docs/DATA_POLICY.md)

  • Docs and CHANGELOG.md updated for user-visible changes (DEVELOPMENT.md; no user-visible change)

  • Architectural decision recorded in docs/adr/ if one was made: n/a
  • Diff: 173 lines (+129 / -44) across 2 files Reviewer: gabrielzubovsky Review duration: 4043m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.58) × (1 − Review Confidence (0.54)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.58 · 173 lines diff across 2 files
    0.58
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    54%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.309
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.058
    Real PR Conversation Timeline
    1 comments
    "Review active on #238"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 54.2% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 58.5% (MEDIUM) · Higher = larger blast radius
    58.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 54.2% · Lower = rushed or shallow review
    54.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 26.8% · Safe to merge
    26.8%