terraform-compliance / cli

a lightweight, security focused, BDD test framework against terraform.
https://terraform-compliance.com
MIT License
1.34k stars 151 forks source link

Return system exit code when running as module #729

Closed mungojam closed 5 months ago

mungojam commented 5 months ago

We've found that terraform compliance failures were not causing our builds to fail

We call terraform compliance using python -m terraform_compliance

I believe it works fine for the .exe mode since that calls cli directly and will handle the exit code from that automatically

eerkunt commented 5 months ago

Thanks for adding this.