Checkmarx / kics

Find security vulnerabilities, compliance issues, and infrastructure misconfigurations early in the development cycle of your infrastructure-as-code with KICS by Checkmarx.
https://kics.io
Apache License 2.0
2.04k stars 299 forks source link

bug(terraform): when parsing tfplan in the case of child modules only resources in the deepest module are parsed #7265

Open nirfirefly opened 2 hours ago

nirfirefly commented 2 hours ago

The map entry is initialized for each child module and overrides the resources from modules up the tree https://github.com/Checkmarx/kics/blob/c17d26eb1d582e6cf8c169f476b494421cef00a2/pkg/parser/json/tfplan.go#L67