Scoped inline filtering #4573
alex-broad
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
Thanks we will look into this. Could you clarify this:
Are you saying you only want to disable a particular check for a certain file rather than disable globally? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
In a similar manner to #4022, as of v0.41.0, while trivy supports inline filtering (#2961), I found the comment had to be on the same line as the error to ignore. This doesn't work well and is impossible to support in multiline RUN commands in Dockerfiles, for example:
Would need to become:
which isn't a valid multiline command.
Placing it before the RUN line as you might expect does not suppress the issue.
The current workaround is to disable it globally in the
.trivyignore
file but this is not ideal as we generally want to be prompted for these issues and disable them by exception.Target
Filesystem
Scanner
Misconfiguration
Beta Was this translation helpful? Give feedback.
All reactions