Commit 32e89d5
Restore pipefail in Tests workflow to fail on non-zero exit codes
The hashicorp/setup-terraform action with terraform_wrapper enabled
(default) overrides the bash shell from 'bash -eo pipefail' to
'bash -e', stripping pipefail. This caused pipe commands like
'ansible-playbook ... | tee ...' to swallow non-zero exit codes,
letting the CI job pass despite Ansible test failures.
Fix by disabling terraform_wrapper (not needed since we don't use
terraform outputs in GitHub Actions) and adding explicit set -o
pipefail to steps that use pipes as defense-in-depth.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 4b52a3d commit 32e89d5
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
0 commit comments