osvscanner

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 29 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAPIFailed = errors.New("API query failed")

ErrAPIFailed describes errors related to querying API endpoints.

View Source
var NoPackagesFoundErr = errors.New("no packages found in scan")

NoPackagesFoundErr for when no packages are found during a scan.

View Source
var OnlyUncalledVulnerabilitiesFoundErr = errors.New("only uncalled vulnerabilities found")

Deprecated: This error is no longer returned, check the results to determine if this is the case

View Source
var VulnerabilitiesFoundErr = errors.New("vulnerabilities found")

VulnerabilitiesFoundErr includes both vulnerabilities being found or license violations being found, however, will not be raised if only uncalled vulnerabilities are found.

Functions

func DoScan

Perform osv scanner action, with optional reporter to output information

func PURLToPackage deprecated

func PURLToPackage(purl string) (models.PackageInfo, error)

PURLToPackage converts a Package URL string to models.PackageInfo

Deprecated: Use the PURLToPackage in the models package instead.

Types

type ExperimentalScannerActions added in v1.4.0

type ExperimentalScannerActions struct {
	CompareLocally        bool
	CompareOffline        bool
	ShowAllPackages       bool
	ScanLicensesSummary   bool
	ScanLicensesAllowlist []string
	ScanOCIImage          string

	LocalDBPath string
}

type ScannerActions

type ScannerActions struct {
	LockfilePaths        []string
	SBOMPaths            []string
	DirectoryPaths       []string
	GitCommits           []string
	Recursive            bool
	SkipGit              bool
	NoIgnore             bool
	DockerContainerNames []string
	ConfigOverridePath   string
	CallAnalysisStates   map[string]bool

	ExperimentalScannerActions
}

Jump to

Keyboard shortcuts

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