--tf-exclude-downloaded-modules not working #5408
Replies: 2 comments 4 replies
-
I'm not able to reproduce this. You can see an example here https://gist.github.com/simar7/b02a16bb683adfa147c72159d727722c - In the non-excluded file you can see a variety of misconfiguration issues that are from downloaded modules. Can you share your terraform config file so we can run locally to try it out? |
Beta Was this translation helpful? Give feedback.
-
Hi @bkonicek-calm ! The |
Beta Was this translation helpful? Give feedback.
-
Description
I have a Terraform config that calls several of our custom modules. After running a
terraform plan
, they are downloaded to.terraform/modules
. Trivy correctly identifies misconfigurations in them. However, when I add the--tf-exclude-downloaded-modules
option, Trivy still checks those modules and reports misconfigurations.Desired Behavior
Trivy should not identify misconfigurations in downloaded modules when the
--tf-exclude-downloaded-modules
option is setActual Behavior
Trivy scans and reports on misconfigurations in downloaded modules
Reproduction Steps
Target
Filesystem
Scanner
Misconfiguration
Output Format
Table
Mode
Standalone
Debug Output
Operating System
macOS Ventura
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions