Skip to content

Commit

Permalink
fix(detector): change an argument for trivy-db getter (#1203)
Browse files Browse the repository at this point in the history
use a package name instead of SrcName for getting of advisories
about Oracle packages.

Fixes #1170
  • Loading branch information
afdesk authored Sep 1, 2021
1 parent 40ed227 commit 5160a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/detector/ospkg/oracle/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (s *Scanner) Detect(osVer string, pkgs []ftypes.Package) ([]types.DetectedV

var vulns []types.DetectedVulnerability
for _, pkg := range pkgs {
advisories, err := s.vs.Get(osVer, pkg.SrcName)
advisories, err := s.vs.Get(osVer, pkg.Name)
if err != nil {
return nil, xerrors.Errorf("failed to get Oracle Linux advisory: %w", err)
}
Expand Down

0 comments on commit 5160a2e

Please sign in to comment.