Documentation ¶
Index ¶
Constants ¶
View Source
const ( AdvisoriesSetResolved = "resolved" AdvisoriesSetAll = "all" AdvisoriesSetConcluded = "concluded" )
View Source
const TriageSourceGovulncheck = "govulncheck"
Variables ¶
View Source
var ValidAdvisoriesSets = []string{AdvisoriesSetResolved, AdvisoriesSetAll, AdvisoriesSetConcluded}
Functions ¶
func NewGrypeVulnerabilityMatcher ¶ added in v0.15.1
func NewGrypeVulnerabilityMatcher(datastore store.Store, useCPEs bool) *grype.VulnerabilityMatcher
Types ¶
type Finding ¶
type Finding struct { Package Package Vulnerability Vulnerability TriageAssessments []TriageAssessment }
Finding represents a vulnerability finding for a single package.
func FilterWithAdvisories ¶ added in v0.1.0
func FilterWithAdvisories(result Result, advisoryDocIndices []*configs.Index[v2.Document], advisoryFilterSet string) ([]Finding, error)
FilterWithAdvisories filters the findings in the result based on the advisories for the target APK.
type GoVulnDBIndex ¶ added in v0.8.0
type GoVulnDBIndex struct {
// contains filtered or unexported fields
}
func BuildIndexForGoVulnDB ¶ added in v0.8.0
func BuildIndexForGoVulnDB(ctx context.Context) (*GoVulnDBIndex, error)
BuildIndexForGoVulnDB builds an index of GoVulnDB entries, keyed by aliases (like CVE IDs and GHSA IDs).
func (*GoVulnDBIndex) Get ¶ added in v0.8.0
func (i *GoVulnDBIndex) Get(id string) (GoVulnDBIndexEntry, bool)
Get returns the GoVulnDB index entry for the given ID, or false if it doesn't exist.
type GoVulnDBIndexEntry ¶ added in v0.8.0
type Scanner ¶ added in v0.11.0
type Scanner struct {
// contains filtered or unexported fields
}
func NewScanner ¶ added in v0.11.0
NewScanner initializes the grype DB for reuse across multiple scans.
type TriageAssessment ¶ added in v0.8.0
type TriageAssessment struct { // Source is the name of the source of the triage assessment, e.g. // "govulncheck". Source string // TruePositive indicates whether the vulnerability is a true positive. A value // of false indicates that the vulnerability has been assessed to be a false // positive. TruePositive bool // Reason is the explanation of the triage assessment. Reason string }
Click to show internal directories.
Click to hide internal directories.