Documentation
¶
Overview ¶
Package cve checks project dependencies against known vulnerabilities via OSV.dev (PRD section 18, RF-09). codefit keeps NO vulnerability database of its own: on each scan it queries OSV.dev (free, no API key, aggregating the GitHub Advisory Database, Linux distro feeds and more), so the data is always fresh and maintained by infrastructure the whole world already runs.
Status: SKELETON. This declares the Dependency and Vulnerability types and the Client contract. The OSV.dev HTTP client is implemented in Fase 1.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Query(ctx context.Context, deps []Dependency) (map[string][]Vulnerability, error)
}
Client queries OSV.dev for the vulnerabilities affecting a set of dependencies.
Skeleton: no implementation yet (Fase 1).
type Dependency ¶
Dependency is one parsed project dependency (from go.mod, package.json, ...) at an exact version, in its ecosystem (OSV.dev uses the ecosystem to scope the query, e.g. "Go", "npm", "PyPI").