We run Terraform pipelines in GitHub Actions to detect drift. Currently, you can either use the default return value or use the -extended-return option to return error code 2 when the plan detects a difference. Currently the code see code 2 and accepts that as a successful run. We want to see that as a failure (or warning if GHA ever supports a warning outcome).
We run Terraform pipelines in GitHub Actions to detect drift. Currently, you can either use the default return value or use the
-extended-return
option to return error code 2 when the plan detects a difference. Currently the code see code 2 and accepts that as a successful run. We want to see that as a failure (or warning if GHA ever supports a warning outcome).