Allow passing multiple files to commands #4203
Replies: 4 comments 1 reply
-
I remember there was the same request. Let's see how much demand there is. |
Beta Was this translation helpful? Give feedback.
-
We also need this functionality. |
Beta Was this translation helpful? Give feedback.
-
i would also like to see this option to send a list of files (or a file that contains file paths) to scan. |
Beta Was this translation helpful? Give feedback.
-
Any news on this? |
Beta Was this translation helpful? Give feedback.
-
We currently allow two types of invocation to commands:
trivy <cmd> <single-dir> --files-patterns <pattern>
trivy <cmd> <single-file>
It would be incredibly useful to specify multiple files:
trivy <cmd> <single-file> <single-file>
This would be especially useful to hook up Trivy into the pre-commit framework as
pre-commit
passes multiple files to be checked to the tool and does not, and will not, support passing single files.With this implemented we can have
pre-commit
hooks fortrivy fs
/trivy config
, etc to prevent violations ever getting into a repository.Beta Was this translation helpful? Give feedback.
All reactions