Skip to content

Commit

Permalink
feat: remove wordpress from known targets due to wordpress catalo…
Browse files Browse the repository at this point in the history
…ger support syft/#1553

Signed-off-by: disc <[email protected]>
  • Loading branch information
disc authored Oct 3, 2024
1 parent eaa948e commit 100c124
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions grype/search/only_vulnerable_targets.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ func isUnknownTarget(targetSW string) bool {
// supported by syft but are signifcant sources of false positives and should be
// considered known for the purposes of filtering here
known := map[string]bool{
"wordpress": true,
"wordpress_": true,
"joomla": true,
"joomla\\!": true,
"drupal": true,
"joomla": true,
"joomla\\!": true,
"drupal": true,
}

if _, ok := known[targetSW]; ok {
Expand Down
2 changes: 1 addition & 1 deletion grype/search/only_vulnerable_targets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func Test_isUnknownTarget(t *testing.T) {
expected bool
}{
{name: "supported syft language", targetSW: "python", expected: false},
{name: "supported non-syft language CPE component", targetSW: "wordpress", expected: false},
{name: "supported non-syft language CPE component", targetSW: "joomla", expected: false},
{name: "unknown component", targetSW: "abc", expected: true},
}

Expand Down

0 comments on commit 100c124

Please sign in to comment.