-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
terrafrom fmt in github actions doesn't fail the steps #32472
Comments
Thanks for this report! One question, are you saying that |
Hi @crw, Both don't work, but to add we were using 0.13.6 which was working before but now both versions don't work, wondering if it has anything to do with GitHub action versions. |
Thanks for the report! This doesn't appear to be caused by Terraform, but rather the hashicorp/setup-terraform GitHub action. I've confirmed that Terraform exits correctly with a non-zero exit code when While I'm not sure this is the issue, the use of If that doesn't work, I recommend filing an issue on the setup-terraform repository. I'm closing this out as it does not appear to be a bug in Terraform itself. |
@alisdair thank you for the response. I will check with thank you |
@alisdair yes that was the issue, seems something changed from the setup-terraform side but all is good now. Have a good day. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Version
Terraform Configuration Files
Debug Output
^^ status code return
Expected Behavior
previously it used to return error
Actual Behavior
It returns status code as '0' and doesn't fail the step.
Steps to Reproduce
create Github actions workflow and add tf files with broken format
Additional Context
the same changes when I run the cmd locally, the status code is 2
References
No response
The text was updated successfully, but these errors were encountered: