osv

package
v0.5.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package osv queries the OSV.dev vulnerability database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Annotate

func Annotate(diffs []diffx.FileDiff) error

Annotate fills IntroducedVulns / FixedVulns on every change, in place. It is best-effort: network errors return an error but leave diffs usable.

func UseLocal added in v0.5.9

func UseLocal(dir string, download bool)

UseLocal routes all OSV queries to zip databases under dir. When download is true, missing or stale ecosystems are fetched from OSV's export first (conditional GET, so an unchanged database costs one 304); when false (-offline) the databases must already be there.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL