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: package qualifier for platform CPE #1291

Merged
merged 1 commit into from
May 17, 2023
Merged

Conversation

westonsteimel
Copy link
Contributor

This allows filtering vulnerability matches that are only applicable when running on specific platforms. It currently supports filtering matches that are only applicable for windows, debian, and ubuntu when the underlying distro is known and does not match.

Additionally, wordpress platform matches are always filtered since wordpress plugins are not currently discoverable by syft and can be a significant source of false-positive matches. These are already filtered when the target software component of the CPE is used rather than a running on platform CPE configuration.

This allows filtering vulnerability matches that are only applicable
when running on specific platforms.  It currently supports filtering
matches that are only applicable for windows, debian, and ubuntu when
the underlying distro is known and does not match.

Additionally, wordpress platform matches are always filtered since
wordpress plugins are not currently discoverable by syft and can be
a significant source of false-positive matches.  These are already
filtered when the target software component of the CPE is used
rather than a running on platform CPE configuration.

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
@westonsteimel westonsteimel added the enhancement New feature or request label May 12, 2023
@@ -6,16 +6,17 @@ import (
"github.com/stretchr/testify/assert"

"github.com/anchore/grype/grype/db/internal/sqlite"
v4 "github.com/anchore/grype/grype/db/v5"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ha! at least the import was accurate even if the alias was a lie -- good find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants