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

🐛 avoid crashing terraform on unsupported plan calls #1944

Merged
merged 1 commit into from
Sep 27, 2023
Merged

Conversation

arlimus
Copy link
Member

@arlimus arlimus commented Sep 27, 2023

Happens when we call plan resources without operating on a Terraform plan. This needs better handling for unsupported or invalid data. I strongly recommend we instead inform users that there are no plan files via an error in the future. For now, create compatibility with v8 to get it release-ready.

Fixes #1866

Happens when we call plan resources without operating on a Terraform
plan. This needs better handling for unsupported or invalid data. I
strongly recommend we instead inform users that there are no plan files
via an error in the future. For now, create compatibility with v8 to get
it release-ready.

Signed-off-by: Dominik Richter <[email protected]>
@arlimus arlimus requested a review from vjeffrey September 27, 2023 05:53
Copy link
Contributor

@vjeffrey vjeffrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

working better for sure! ⭐️

i am still seeing other errs

cnspec> terraform.settings
terraform.settings: terraform.settings id = terraform.settings
cnspec> terraform.settings { *}
1 error occurred:
	* cannot convert primitive with NO type information
terraform.settings: {
  requiredProviders: cannot convert primitive with NO type information
  block: cannot convert primitive with NO type information

but we can address those in followup

@arlimus arlimus merged commit 8973e83 into main Sep 27, 2023
10 checks passed
@arlimus arlimus deleted the dom/tf-plan branch September 27, 2023 06:18
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v9 terraform scans failing
2 participants