aquasecurity / trivy

Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
https://aquasecurity.github.io/trivy
Apache License 2.0
23.11k stars 2.28k forks source link

refactor(misconf): improve Terraform scanning logging #7133

Closed nikpivkin closed 1 month ago

nikpivkin commented 2 months ago

Description

Removed noisy messages. Some messages have been added and changed:

2024-07-09T21:58:18+07:00       DEBUG   [misconf] terraform.parser.<root>.evaluator Failed to expand block "aws_subnet.public_subnet". Invalid "for-each" argument: cty.NilVal. Must be known and iterable.

Also removed duplicate time from the message. Before:

2024-07-09T15:18:08Z    DEBUG   [misconf] 18:08.884431133 terraform.parser.<root>.evaluator Starting module evaluation...

After:

2024-07-09T21:58:18+07:00       DEBUG   [misconf] terraform.parser.<object>.evaluator Starting module "object" evaluation

Related Issues:

Checklist

nikpivkin commented 1 month ago

Closed in favour of https://github.com/aquasecurity/trivy/pull/7295