fix: Improve CVE workflow #267
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 213 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.321
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #267"
general
weight: 0.35
szaher
<!-- Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, check our contributor guidelines: https://www.kubeflow.org/docs/about/contributing
2. To know more about Kubeflow SDK, check the developer guide:
https://github.com/kubeflow/sdk/blob/main/CONTRIBUTING.md
3. If you want faster PR reviews, check how: https://git.k8s.io/community/contributors/guide/pull-requests.md#best-practices-for-faster-reviews
-->
What this PR does / why we need it:
Following on from the trivy-cve-scan workflow that was added yesterday I have updated it with the following:
- It has come to my attention that purely updating the uv.lock is not sufficient as anyone updating the file in another PR can revert this change. In order to counter that I have added a verification step that checks if a "natural" lockfile upgrade is blocked by parent dependencies. If blocked, the bot now automatically injects a tool.uv.override-dependencies into pyproject.toml to ensure the fix cannot be accidentally reverted by manual uv lock commands.
Last nights run found the urllib CVE, which I had already fixed - but another PR had reverted the change.
- Implemented add-paths filtering in the PR creation step. This ensures only uv.lock and pyproject.toml are committed and nothing else. This was previously missing causing the workflow to fail.
Please review @andreyvelich @kramaranya
Which issue(s) this PR fixes _(optional, in
Fixes #<issue number>, #<issue number>, ...format, will close the issue(s) when PR gets merged)_:Fixes #
Checklist: