From 7c5a80ebf198f68fd4ce30c245a14bd1063e74ad Mon Sep 17 00:00:00 2001 From: Keith Zantow Date: Tue, 14 Mar 2023 09:54:53 -0400 Subject: [PATCH] fix: remove author contributing to javascript CPEs Signed-off-by: Keith Zantow --- syft/pkg/cataloger/common/cpe/generate_test.go | 1 - syft/pkg/cataloger/common/cpe/javascript.go | 7 ------- 2 files changed, 8 deletions(-) diff --git a/syft/pkg/cataloger/common/cpe/generate_test.go b/syft/pkg/cataloger/common/cpe/generate_test.go index 046e9596fb6..e12ac50b65b 100644 --- a/syft/pkg/cataloger/common/cpe/generate_test.go +++ b/syft/pkg/cataloger/common/cpe/generate_test.go @@ -129,7 +129,6 @@ func TestGeneratePackageCPEs(t *testing.T) { }, expected: []string{ "cpe:2.3:a:name:name:3.2:*:*:*:*:*:*:*", - "cpe:2.3:a:jon:name:3.2:*:*:*:*:*:*:*", "cpe:2.3:a:bob:name:3.2:*:*:*:*:*:*:*", }, }, diff --git a/syft/pkg/cataloger/common/cpe/javascript.go b/syft/pkg/cataloger/common/cpe/javascript.go index 4f89173c770..b95e741c9ce 100644 --- a/syft/pkg/cataloger/common/cpe/javascript.go +++ b/syft/pkg/cataloger/common/cpe/javascript.go @@ -13,13 +13,6 @@ func candidateVendorsForJavascript(p pkg.Package) fieldCandidateSet { return nil } - if metadata.Author != "" { - vendors.add(fieldCandidate{ - value: normalizePersonName(stripEmailSuffix(metadata.Author)), - disallowSubSelections: true, - }) - } - if metadata.URL != "" { vendors.union(candidateVendorsFromURL(metadata.URL)) }