From 013cc728a0c81731a9bbcee5610a2b33fd56b76e Mon Sep 17 00:00:00 2001 From: disc Date: Wed, 11 Oct 2023 19:42:28 +0300 Subject: [PATCH] Removed `wordpress` from `known` targets due to wordpress cataloger support (https://github.com/anchore/syft/pull/2218) in `Syft` Signed-off-by: disc --- grype/search/only_vulnerable_targets.go | 8 +++----- grype/search/only_vulnerable_targets_test.go | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/grype/search/only_vulnerable_targets.go b/grype/search/only_vulnerable_targets.go index 8064e44e9e0..508aca58af5 100644 --- a/grype/search/only_vulnerable_targets.go +++ b/grype/search/only_vulnerable_targets.go @@ -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 { diff --git a/grype/search/only_vulnerable_targets_test.go b/grype/search/only_vulnerable_targets_test.go index 02e5ec301bf..c115db13310 100644 --- a/grype/search/only_vulnerable_targets_test.go +++ b/grype/search/only_vulnerable_targets_test.go @@ -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}, }