Open dmsolutionsmn opened 2 months ago
Due to https://github.com/hashicorp/setup-terraform/pull/125 any terraform exit code of 2 will be considered passing even when it is a valid failure.
2
For example, terraform fmt can return 0, 2, or 3. (see https://github.com/hashicorp/terraform/blob/v1.9.3/internal/command/fmt.go#L96 )
terraform fmt
The proposed solution in this PR is to verify that -detailed-exitcode argument was passed in. Additional test scenarios were added to cover the original pull request and this change.
-detailed-exitcode
All committers have signed the CLA.
Due to https://github.com/hashicorp/setup-terraform/pull/125 any terraform exit code of
2
will be considered passing even when it is a valid failure.For example,
terraform fmt
can return 0, 2, or 3. (see https://github.com/hashicorp/terraform/blob/v1.9.3/internal/command/fmt.go#L96 )The proposed solution in this PR is to verify that
-detailed-exitcode
argument was passed in. Additional test scenarios were added to cover the original pull request and this change.