MCPcopy
hub / github.com/aquasecurity/trivy / NotAffected

Method NotAffected

pkg/vex/vex.go:139–146  ·  view source on GitHub ↗
(vuln types.DetectedVulnerability, product, subComponent *core.Component)

Source from the content-addressed store, hash-verified

137}
138
139func (c *Client) NotAffected(vuln types.DetectedVulnerability, product, subComponent *core.Component) (types.ModifiedFinding, bool) {
140 for _, v := range c.VEXes {
141 if m, notAffected := v.NotAffected(vuln, product, subComponent); notAffected {
142 return m, true
143 }
144 }
145 return types.ModifiedFinding{}, false
146}
147
148func filterVulnerabilities(result *types.Result, bom *core.BOM, fn NotAffected) {
149 components := lo.MapEntries(bom.Components(), func(_ uuid.UUID, component *core.Component) (string, *core.Component) {

Callers

nothing calls this directly

Calls 1

NotAffectedMethod · 0.65

Tested by

no test coverage detected