sca

package
v0.4.19 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package sca performs Software Composition Analysis: it inventories a repo's dependencies across every major ecosystem (from lockfiles/manifests) and matches them against known vulnerabilities via the intel layer (OSV.dev, which aggregates NVD, GitHub Advisories, RustSec, PyPA, the Go vuln DB …).

It degrades gracefully: no repo, no manifests, or an unreachable database all mean "report nothing" rather than failing the scan.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inventory added in v0.4.11

func Inventory(root string) []intel.Package

Inventory walks a repo for known dependency manifests/lockfiles across every supported ecosystem and returns the deduped packages. Exported so the SBOM generator can reuse the same inventory the vulnerable-deps check scans.

Types

type Deps

type Deps struct{}

Deps reports dependencies with known vulnerabilities.

func (Deps) ASVS

func (Deps) ASVS() []string

func (Deps) Category

func (Deps) Category() core.Category

func (Deps) Description

func (Deps) Description() string

func (Deps) ID

func (Deps) ID() string

func (Deps) Mode

func (Deps) Mode() core.Mode

func (Deps) OWASP

func (Deps) OWASP() []string

func (Deps) Run

func (Deps) Run(ctx context.Context, t core.Target) ([]core.Finding, error)

Jump to

Keyboard shortcuts

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