Skip to content

Conversation

@kzantow
Copy link
Contributor

@kzantow kzantow commented Nov 21, 2025

This PR fixes an issue where unaffected records for vulnerabilities found for language matches did not apply to the same package when an identical CPE match was also found.

Fixes #3056

Signed-off-by: Keith Zantow <kzantow@gmail.com>
}
}

func Test_indexFalsePositivesByLocation(t *testing.T) {
Copy link
Contributor Author

@kzantow kzantow Nov 21, 2025

Choose a reason for hiding this comment

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

This test was moved to the more appropriate APK matcher package, note the apk package import is no longer required.

}
}

func Test_filterMatchesUsingDistroFalsePositives(t *testing.T) {
Copy link
Contributor Author

@kzantow kzantow Nov 21, 2025

Choose a reason for hiding this comment

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

This test was refactored with additional cases to match the current functionality of IgnoreFilters ☝️ it's probably a lot easier to read the test cases directly rather than looking at a diff 👇

@kzantow kzantow merged commit 029bd47 into anchore:main Nov 21, 2025
12 checks passed
@kzantow kzantow deleted the fix/unaffected-across-matchers branch November 21, 2025 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unaffected match table does not filter results if CPE matching is enabled

2 participants