Skip to content

Commit

Permalink
Removed wordpress from known targets due to wordpress cataloger s…
Browse files Browse the repository at this point in the history
…upport (anchore/syft#2218) in `Syft`

Signed-off-by: disc <a.hacicheant@gmail.com>
  • Loading branch information
disc authored and wagoodman committed Jun 10, 2024
1 parent b170744 commit 013cc72
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 013cc72

Please sign in to comment.