-
Notifications
You must be signed in to change notification settings - Fork 507
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
Throwing Errors when parsing nested brackets in HCL #233
Comments
@Shubhammathur22 Thanks for opening this. It seems to be an issue with pyhcl which is used by terrascan to parse hcl files. I opened an issue on that repository virtuald/pyhcl#74.
|
@cesar-rodriguez - From the update to virtuald/pyhcl#74 this is not going to be supported. Your linter now seems to have been included in the GitHub/Superliter which is great but the lack of support for HCL2 is a real issue moving forward. Do you have a way forward? Quote from pyhcl repo readme :- pyhcl does not support HCL2 (which is what modern terraform uses). You might try https://pypi.org/project/python-hcl2/ instead (though I've never personally tried it). |
Yes. We're actively working on a new release that addresses this issue, among others. Should be out in a few weeks. I'll post and update here and will close this issue once it's out. |
|
This is fixed with v1.0.0. The version included in super-linter still needs to be updated. |
Description
I was trying to scan one of my terraform directory. It contains a line where nested brackets exists, its giving errors there.
What I Did
I ran the terrascan on below code
Error (Truncated)
The text was updated successfully, but these errors were encountered: