Skip to content
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

fix(misconf): Handle templating better in tfjson #6291

Closed
simar7 opened this issue Mar 9, 2024 · 0 comments · Fixed by #6292
Closed

fix(misconf): Handle templating better in tfjson #6291

simar7 opened this issue Mar 9, 2024 · 0 comments · Fixed by #6292
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. scan/misconfiguration Issues relating to misconfiguration scanning
Milestone

Comments

@simar7
Copy link
Member

simar7 commented Mar 9, 2024

Currently we don't handle templated values correctly in terraform plan json scanning. This leads to issues like the following:

2024-03-06T12:07:28.162-0700    DEBUG   [misconf] 07:28.162601000 terraform.parser.<root>          error parsing 'main.tf': main.tf:757,29-30: Extra characters after interpolation expression; Template interpolation doesn't expect a colon at this location. Did you intend this to be a literal sequence to be processed as part of another language? If so, you can escape it by starting with "$${" instead of just "${".

Reference: https://developer.hashicorp.com/terraform/language/expressions/strings#escape-sequences-1

@simar7 simar7 added kind/bug Categorizes issue or PR as related to a bug. scan/misconfiguration Issues relating to misconfiguration scanning labels Mar 9, 2024
@simar7 simar7 self-assigned this Mar 9, 2024
simar7 added a commit that referenced this issue Mar 9, 2024
@simar7 simar7 added this to the v0.50.0 milestone Mar 12, 2024
@simar7 simar7 modified the milestones: v0.50.0, v0.51.0 Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. scan/misconfiguration Issues relating to misconfiguration scanning
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant