Trivy get a parsing error when scanning a terraform plan json file for certain resources #10410
andrea-migliaccio
started this conversation in
Bugs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I'm trying to scan a terraform project that reference a certain type of data structure. Here an example
2026-03-18T16:20:30Z ERROR [terraform parser] Error parsing file module="root" file_path="main.tf" cause=" map[string]interface {}{"drain_timeout_in_minutes":0, "max_surge":"10%", "node_soak_duration_in_minutes":0}," err="main.tf:333,18-27: Missing item separator; Expected a comma to mark the beginning of the next item."
The original HCL being tf-planned is, where the "upgrade_settings" property is defined:
Target
None
Scanner
Misconfiguration
Output Format
Table
Mode
Standalone
Debug Output
Operating System
Ubuntu Linux 2024.04
Version
Checklist
trivy clean --allBeta Was this translation helpful? Give feedback.
All reactions