-
Notifications
You must be signed in to change notification settings - Fork 245
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
Adding support for tfvars in terraform scanning #241
Comments
All trivy options are available via the trivy config file, even those that are today not available as dedicated options via the trivy action. You can read more on how to use the trivy config file here: https://aquasecurity.github.io/trivy/v0.42/docs/references/configuration/config-file/ |
@simar7 Thanks for the quick answer, but for tfvars config file is not a good option, because its dynamic for every pr. Please consider again and think that customers are having a lot of tf workspaces. |
sorry I didn't mean to close the issue, pressed the wrong button by accident. Could you clarify what you mean by "dynamic"? today the |
@simar7 when using ftvars there are more then one file, and we need to spesify for every env the ftvar, and if we want to use the trivy.conf we will need to create it dynmicly with the tfvar name or create many conf files. |
@simar7 any update? |
I'm not sure if I understand this. Could you explain how it will be easier? CLI options and config file are identical and have the same behaviour. |
@simar7 Think that I need to create config file for every tfvar file. The number of files will be same as workspaces ( from one to many) |
In that case, how would you be able to "dynamically" specify tf-vars when using them as a GitHub action parameter? Does GitHub allow that? |
if you will give the option to spesify it as varibale in trivy action, I can set it with env like others action that using the tfvars (terraform apply and more) |
@simar7 any update? or you need more information? |
We welcome a PR if you'd like to contribute. |
Sure, I will try to create a pr |
Hi. This would be great |
Hi I've been working on this, However, I believe that it's currently blocked by Unable to pass tfvars file. |
Hi I've opened a pull request for this: #285 - Might need a little support with testing |
This has been merged @yossigilad and @simar7 . Can this be closed? |
Hi, can you please add support to specify tfvars in Terraform scanning, similar to the CLI?
CLI example:
trivy config . --tf-vars ./envs/xxx.tfvars
The text was updated successfully, but these errors were encountered: