← Back to Pull requests

:seedling: Bump github.com/google/osv-scanner/v2 from 2.3.2 to 2.5.1 #5296

Closed
unknown closed this pull request without merging on Oct 06, 2026 08:34 UTC
View on GitHub
unknown unknown commented on Oct 06, 2026 07:48 UTC
Author

What kind of change does this PR introduce?

Dependency update and bug fix.

  • PR title follows the guidelines defined in our pull request documentation
  • What is the current behavior?

  • Scorecard depends on github.com/google/osv-scanner/v2 v2.3.2. The

  • Dependabot bump to v2.6.0 (#5264) can't land without moving the project to
    Go 1.27, because osv-scanner v2.6.0 declares go 1.27.0.
  • The Vulnerabilities check still disables python/requirementsenhanceable,

  • a plugin name osv-scanner no longer uses. Python requirements files that
    aren't hash-locked go through PyPI transitive resolution, which can stall
    the check until the job times out (#5234).

    What is the new behavior (if this is a feature change)?

  • Scorecard depends on osv-scanner v2.5.1, the newest release that still

  • targets Go 1.26. The go directive moves from 1.26.0 to 1.26.5, the
    minimum osv-scanner v2.5.1 declares. The rest of the go.mod/go.sum churn
    is transitive upgrades from go get + go mod tidy.
  • The Python transitive enricher is disabled by its registered name,

  • transitivedependency/requirements, so requirements files are read as
    declared. The cherry-picked commit from #5240 does this, and Maven
    transitive scanning stays on for the online client.
  • ExperimentalLocalOSVClient disables transitive scanning. In v2.5.1,

  • CompareOffline no longer forces plugins offline when
    DownloadDatabases is set. Without this change, the local client would
    start querying deps.dev and package registries.

  • Tests for the changes have been added (for bug fixes/features)
  • Which issue(s) this PR fixes

    Fixes #5234
    Refs #5264

    Special notes for your reviewer

  • This is an alternative to #5264 for while Scorecard stays on Go 1.26.

  • #5264 can be revisited when the project moves to Go 1.27.
  • This PR supersedes #5240. It cherry-picks that PR's clients/osv.go

  • change onto osv-scanner v2.5.1 and drops its v2.3.4 pin and yaml/v4
    replace.
  • The golang base images move from 1.26.2 to 1.26.8. Docker builds run

  • with GOTOOLCHAIN=local, so the old images can't satisfy the new go
    directive.

    Does this PR introduce a user-facing change?

    ``release-note
    The Vulnerabilities check no longer resolves transitive dependencies for Python requirements files, which could stall the check until it timed out.
    For library users:
    clients.ExperimentalLocalOSVClient no longer makes network requests for transitive dependency resolution.
    ``

    Diff: 321 lines (+240 / -81) across 4 files Reviewer: justaugustus Review duration: 46m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 321 lines diff across 4 files
    0.42
    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.345
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5296"
    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: 41.9% (MEDIUM) · Higher = larger blast radius
    41.9%
    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: 16.6% · Safe to merge
    16.6%
    Repository