-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(misconf): Ignore duplicate checks if found #6929
Comments
Oh, I missed that. Yes, the result will be duplicated. Am I correct that the results of Rego checks should be prioritised? |
@simar7 Since we have already added functionality to skip deprecated checks and during the check migration process we mark Go checks as deprecated, so users will not face the problem of duplicate checks that Trivy supplies. It turns out only those checks supplied by the user himself can be duplicated. Does it make sense to exclude them or can we just warn the user? |
But if the user doesn't update to a newer version of trivy but yet downloads a new version of the bundle, they will still get duplicated checks right? This issue should add support going forwards so that any duplication of checks doesn't result in duplication of findings. |
In this case, if the user does not update Trivy, they will not get the functionality to ignore duplicate checks. |
Yes but we can handle such a case going forwards from when this change is introduced. Regardless as you mentioned, older versions of Trivy will still face the same. |
Today we don't ignore duplicate checks if found (e.g. A check could exist as a Go and Rego implementation during the transition to move all checks to Rego). In such a case the check will be counted twice, leading to erroneous results.
The text was updated successfully, but these errors were encountered: