Skip to content

Commit 4b58357

Browse files
CCM-9336 Fixing whitespace detection
1 parent 769b37a commit 4b58357

2 files changed

Lines changed: 15 additions & 16 deletions

File tree

.github/actions/tfsec/action.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/actions/trivy/action.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Trivy Scan"
2+
runs:
3+
using: "composite"
4+
steps:
5+
- name: "Trivy Terraform IAC Scan"
6+
shell: bash
7+
run: |
8+
modules_exit_code=0
9+
10+
./scripts/terraform/trivy.sh ./infrastructure/modules || modules_exit_code=$?
11+
12+
if [ $components_exit_code -ne 0 ] || [ $modules_exit_code -ne 0 ]; then
13+
echo "Trivy misconfigurations detected."
14+
exit 1
15+
fi

0 commit comments

Comments
 (0)