← Back to Pull requests

[security] Add a summary job for PR security scans #8771

Closed
unknown closed this pull request without merging on Oct 08, 2026 17:07 UTC
View on GitHub
unknown unknown commented on Oct 05, 2026 23:21 UTC
Author

Motivation

Progress on https://github.com/ROCm/TheRock/issues/8272

This gives us a single job that can unambiguously added to required checks via branch protection rulesets, with existing checks:
<img width="905" height="231" alt="image" src="https://github.com/user-attachments/assets/03bd227f-861a-492b-8a16-2a723596e94d" />

As we are almost at 0 preexisting security scanner findings I would like to make the checks required soon.

Technical Details

See https://github.com/ROCm/TheRock/blob/main/build_tools/github_actions/workflow_summary.py for details, and:
https://docs.github.com/en/pull-requests/reference/status-checks
https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#require-status-checks-before-merging

We could also add such a summary job to https://github.com/ROCm/rocm-security-gh/blob/main/.github/workflows/security-baseline.yml, possibly with options for which of the scanners should be "required" vs "advisory" to assist with incremental enforcement.

Test Plan

See https://github.com/ROCm/TheRock/actions/runs/37388075024/job/112027461227?pr=8771 on this PR which shows the new job running after other security checks.

  • We'll wait until https://github.com/ROCm/TheRock/actions/workflows/security_scan_weekly.yml is green (except for historical gitleaks findings that are not present on main) before marking as required
  • Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/CONTRIBUTING.md.
  • Diff: 202 lines (+151 / -51) across 2 files Reviewer: haribabug Review duration: 3945m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.59) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.59 · 202 lines diff across 2 files
    0.59
    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%
    56%
    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.318
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.059
    Real PR Conversation Timeline
    1 comments
    "Review active on #8771"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 59.4% (MEDIUM) · Higher = larger blast radius
    59.4%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 25.7% · Safe to merge
    25.7%
    Repository