osvscanner

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 20 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

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

NoPackagesFoundErr for when no packages is found during a scan.

View Source
var OnlyUncalledVulnerabilitiesFoundErr = errors.New("only uncalled vulnerabilities found")
View Source
var VulnerabilitiesFoundErr = errors.New("vulnerabilities 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 ScannerActions

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

	ExperimentalCallAnalysis bool
}

Jump to

Keyboard shortcuts

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