From 33aa0f7ac6f1bcecde2e16074df814ce1542fd40 Mon Sep 17 00:00:00 2001 From: Sam Ainsworth Date: Tue, 6 Aug 2024 11:46:04 +0100 Subject: [PATCH] DOE-236 Fail pipeline on Terraform code check failure --- .github/workflows/terraform-code-check.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/terraform-code-check.yml b/.github/workflows/terraform-code-check.yml index 32fa4f4..9ea5a0e 100644 --- a/.github/workflows/terraform-code-check.yml +++ b/.github/workflows/terraform-code-check.yml @@ -76,3 +76,12 @@ jobs: | Terraform Format | ${{ env.tf_fmt }} | | Terraform Linting | ${{ env.tf_lint }} | | Checkov Scan | ${{ env.tf_scan }} | + + - name: End of Workflow + if: always() + run: | + if [[ ${{ env.job_status }} == 'success' ]]; then + exit 0 + else + exit 1 + fi \ No newline at end of file