Skip to content

Commit

Permalink
DOE-236 Fail pipeline on Terraform code check failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ntse committed Aug 6, 2024
1 parent 0c16007 commit 33aa0f7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/terraform-code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 33aa0f7

Please sign in to comment.