terraform-google-modules / terraform-example-foundation

Shows how the CFT modules can be composed to build a secure cloud foundation
https://cloud.google.com/architecture/security-foundations
Apache License 2.0
1.21k stars 709 forks source link

fix: show output of vet failures in github actions #1122

Closed pb-dod closed 4 months ago

pb-dod commented 7 months ago

Similar to: https://github.com/terraform-google-modules/terraform-example-foundation/issues/1109 and https://github.com/terraform-google-modules/terraform-example-foundation/pull/1113

I was having trouble seeing the reason for failures of "gcloud beta terraform vet" and was just seeing exit code 33 in the github actions output.

This PR addresses the lack of detailed error outputs for Terraform plan_validate_all failures within our GitHub Actions, which previously necessitated running it locally to diagnose issues (which is tough).

This changes the github actions run of plan_validate_all to display detailed error information from plan_validate_all directly in the GitHub Actions logs, removing the need for local execution to identify errors.

This allows immediate visibility into "gcloud beta terraform vet" failures within the CI pipeline and reduces diagnostic time for issues detected.

github-actions[bot] commented 4 months ago

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days