Skip to content

Commit

Permalink
fix: remove author contributing to javascript CPEs (anchore#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
kzantow committed Mar 14, 2023
1 parent 7a0cac5 commit 6fd87f1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion syft/pkg/cataloger/common/cpe/generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:*:*:*:*:*:*:*",
},
},
Expand Down
7 changes: 0 additions & 7 deletions syft/pkg/cataloger/common/cpe/javascript.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 6fd87f1

Please sign in to comment.