Using --config-data with trivy image #3658
Replies: 3 comments 5 replies
-
|
thanks for reporting, since this is a potential bug report I've created an issue #3690 |
Beta Was this translation helpful? Give feedback.
-
|
Hi @JC-19891989 , would you tell us your use case? Does your container image have IaC files like Terraform? |
Beta Was this translation helpful? Give feedback.
-
|
When running |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, doing some work with Trivy.
I find --config-data to be a very useful feature when working with Trivy config as I can use it to load in variables to be used in OPA policies. This string does not seem to work in trivy image like it does with trivy config, even though it's in the rego flags part when you run trivy image --help
Is this right/expected or am I doing something wrong?
It seems to not even parse the command, i.e trivy image --config-data ./nofileatall alpine runs a successful command.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions