Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
Suppress packages with no type
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Jan 16, 2023
1 parent 6513861 commit d042c75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sbom/syft.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ func toPackage(p pkg2.Package, rels []artifact.Relationship, qualifiers map[stri
Locations: make([]types.Location, 0),
}

if p.Type == "" {
return []types.Package{}
}

var sourceNameAndVersion sourcePackage
var virtualPath string

Expand Down

0 comments on commit d042c75

Please sign in to comment.