Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: wordpress-plugin support #1553

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading