[security] Add a summary job for PR security scans #8771
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
haribabug
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.
main) before marking as requiredSubmission Checklist