We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad0f561 commit 9b908acCopy full SHA for 9b908ac
1 file changed
.github/actions/trivy/action.yaml
@@ -8,7 +8,13 @@ runs:
8
components_exit_code=0
9
modules_exit_code=0
10
11
- ./scripts/terraform/trivy.sh ./infrastructure/terraform/modules || modules_exit_code=$?
+ 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
18
19
if [ $components_exit_code -ne 0 ] || [ $modules_exit_code -ne 0 ]; then
20
echo "Trivy misconfigurations detected."
0 commit comments