-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Unable to pass tfvars file #4006
Unable to pass tfvars file #4006
Comments
thanks for the report, I'm looking into it. |
Fixes: #4006 Signed-off-by: Simar <simar@linux.com>
Fixes: #4006 Signed-off-by: Simar <simar@linux.com>
this issue still exists, a tfvars outside of the module root is not found. |
@simar7 wdyt? |
Will take a look again |
@itaysk I confirm this is a problem if .tfvars is located below the scan directory or the path to .tfvars is an absolute. |
has this been released? |
Not yet. It will be available in the next release of Trivy. |
Why has the issue been closed if this is still an issue and has not been merged. Please feel free to educate me if this is how it's normally done as my new to the Open Source scene. |
It was released in the latest version of Trivy as mentioned above. Are you still facing this issue? |
@simar7 Yeah, I'm having some issues. Let me get back to you with some more technical information, I'l check the version numbers on my side too |
Let me know if I'm doing something daft! MacOS Ventura (Version 13.5.1 (22G90)) on Apple M1 kyle@Gracies-Macbook-Air terraform-aws-waf-private-edge % trivy --version
Version: 0.46.0
Policy Bundle:
Digest: sha256:1df8ade71efc830877ca3b1130f83e0c6368e3a45b0d4c0f0418955501644054
DownloadedAt: 2023-10-17 17:07:37.370512 +0000 UTC trivy config --tf-vars terraform.tfvars .
|
Can you share your terraform config and tfvars so we can take a look? |
Hi the problem is with the parsing, I'l open a separate issue. |
Description
I'm unable to pass in a
.tfvars
file during misconfiguration scanning using the--tf-vars
option because an error occurs when using that option.What did you expect to happen?
The file
foo.tfvars
should be loaded as described in the documentation https://aquasecurity.github.io/trivy/v0.39/docs/misconfiguration/options/values/#terraform-value-overridesWhat happened instead?
Output of run with
-debug
:Output of
trivy -v
:Additional details (base image name, container registry info...):
The text was updated successfully, but these errors were encountered: