feat: add support for .trivyignore.yaml - #5070
Merged
Merged
Conversation
Signed-off-by: knqyf263 <knqyf263@gmail.com>
|
|
||
| func (findings IgnoreFindings) Match(path, id string) bool { | ||
| for _, finding := range findings { | ||
| if len(finding.Paths) != 0 && !slices.Contains(finding.Paths, path) { |
Contributor
There was a problem hiding this comment.
Perhaps we want to use wildcard for paths?
Contributor
There was a problem hiding this comment.
don't forget: we need to update docs if we don't add wildcards.
Signed-off-by: knqyf263 <knqyf263@gmail.com>
Signed-off-by: knqyf263 <knqyf263@gmail.com>
Signed-off-by: knqyf263 <knqyf263@gmail.com>
Signed-off-by: knqyf263 <knqyf263@gmail.com>
Signed-off-by: knqyf263 <knqyf263@gmail.com>
Signed-off-by: knqyf263 <knqyf263@gmail.com>
knqyf263
marked this pull request as ready for review
August 31, 2023 10:14
Signed-off-by: knqyf263 <knqyf263@gmail.com>
This was referenced Jul 12, 2026
chore: add CVE ignores for Go stdlib vulnerabilities
DeutscheModelUnitedNations/munify-delegator#427
Merged
4 tasks
This was referenced Jul 28, 2026
fix(security): trim unused packages from nla-web, refresh ignore list
pgEdge/pgedge-postgres-mcp#209
Merged
This was referenced Aug 5, 2026
Closed
This was referenced Aug 17, 2026
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Support the structured ignore file.
Example:
It is still experimental since we're aware of more requirements around ignoring and possibly adding breaking changes. Thus, the file path must be explicitly specified as below so that it will not break compatibility.
If the file extension is
.ymlor.yaml, Trivy tries to parse that in the YAML format. Otherwise, it is treated as the legacy.trivyignore.TODOs
Related issues
Checklist