← Back to Pull requests

fix: Improve CVE workflow #267

Closed
unknown closed this pull request without merging on Feb 16, 2026 02:02 UTC
View on GitHub
unknown unknown commented on Feb 06, 2026 09:49 UTC
Author

<!-- 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:

  • Docs included if any changes are user facing
  • Diff: 213 lines (+159 / -54) across 2 files Reviewer: szaher Review duration: 13933m
    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
    0.37
    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%
    60%
    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.321
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #267"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    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: 36.6% (MEDIUM) · Higher = larger blast radius
    36.6%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 14.4% · Safe to merge
    14.4%
    Repository