[security] Resolve Bandit findings in CI and analysis tooling #8876
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 232 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.326
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #8876"
general
weight: 0.35
geomin12
Motivation
This resolves 21 Bandit findings (18 low, 3 medium) in CI tooling.
Technical Details
| Plugin | Findings resolved | Change |
| --- | ---: | --- |
| B101: assert_used | 4 | Replace assertions with explicit checks for required inputs, GitHub CLI availability, and workflow-summary data. |
| B105: hardcoded_password_string | 4 | Retain
token_keyand document suppressions: these strings select entries in the tokens dictionary and are not literal credentials. || B110: try_except_pass | 8 | Narrow exception handling, report filesystem failures, and remove the unnecessary catch around
os.cpu_count(), retaining its Unknown fallback. || B113: request_without_timeout | 1 | Add an explicit timeout to the bump-automation HTTP request. |
| B310: urllib_urlopen | 2 | Validate GitHub API URLs before sending credentials and document the fixed HTTPS ccache download endpoint with targeted suppressions. |
| B311: random | 2 | Use
SystemRandomfor weighted GPU-family selection and UUIDs for resource-log filenames. |Test Plan
CI builds and tests should still work, unit tests should still pass.
Submission Checklist