mirror of
https://github.com/anchore/syft.git
synced 2026-11-05 00:46:38 +01:00
feat: add nodejs-binary package classifier (#1296)
This commit is contained in:
@@ -70,6 +70,11 @@ func candidateVendors(p pkg.Package) []string {
|
||||
vendors := newFieldCandidateSet(candidateProducts(p)...)
|
||||
|
||||
switch p.Language {
|
||||
case pkg.JavaScript:
|
||||
// for JavaScript if we find node.js as a package then the vendor is "nodejs"
|
||||
if p.Name == "node.js" {
|
||||
vendors.addValue("nodejs")
|
||||
}
|
||||
case pkg.Ruby:
|
||||
vendors.addValue("ruby-lang")
|
||||
case pkg.Go:
|
||||
|
||||
Reference in New Issue
Block a user