:seedling: Bump github.com/google/osv-scanner/v2 from 2.3.2 to 2.5.1 #5296
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
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.345
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5296"
general
weight: 0.35
justaugustus
What kind of change does this PR introduce?
Dependency update and bug fix.
What is the current behavior?
github.com/google/osv-scanner/v2v2.3.2. TheDependabot 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.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)?
targets Go 1.26. The
godirective moves from 1.26.0 to 1.26.5, theminimum osv-scanner v2.5.1 declares. The rest of the go.mod/go.sum churn
is transitive upgrades from
go get+go mod tidy.transitivedependency/requirements, so requirements files are read asdeclared. The cherry-picked commit from #5240 does this, and Maven
transitive scanning stays on for the online client.
ExperimentalLocalOSVClientdisables transitive scanning. In v2.5.1,CompareOfflineno longer forces plugins offline whenDownloadDatabasesis set. Without this change, the local client wouldstart querying deps.dev and package registries.
Which issue(s) this PR fixes
Fixes #5234
Refs #5264
Special notes for your reviewer
#5264 can be revisited when the project moves to Go 1.27.
clients/osv.gochange onto osv-scanner v2.5.1 and drops its v2.3.4 pin and
yaml/v4replace.
golangbase images move from 1.26.2 to 1.26.8. Docker builds runwith
GOTOOLCHAIN=local, so the old images can't satisfy the newgodirective.
Does this PR introduce a user-facing change?
``
release-noteclients.ExperimentalLocalOSVClientThe Vulnerabilities check no longer resolves transitive dependencies for Python requirements files, which could stall the check until it timed out.
For library users:
no longer makes network requests for transitive dependency resolution.
``