Skip to content

Commit 9b908ac

Browse files
CCM-11701: SSL Module
1 parent ad0f561 commit 9b908ac

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/actions/trivy/action.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ runs:
88
components_exit_code=0
99
modules_exit_code=0
1010
11-
./scripts/terraform/trivy.sh ./infrastructure/terraform/modules || modules_exit_code=$?
11+
if [ -d ./infrastructure/terraform/components ]; then
12+
./scripts/terraform/trivy.sh ./infrastructure/terraform/components || components_exit_code=$?
13+
fi
14+
15+
if [ -d ./infrastructure/terraform/modules ]; then
16+
./scripts/terraform/trivy.sh ./infrastructure/terraform/modules || modules_exit_code=$?
17+
fi
1218
1319
if [ $components_exit_code -ne 0 ] || [ $modules_exit_code -ne 0 ]; then
1420
echo "Trivy misconfigurations detected."

0 commit comments

Comments
 (0)