We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28e07ef commit 589ec96Copy full SHA for 589ec96
.github/actions/trivy/action.yaml
@@ -8,8 +8,13 @@ runs:
8
components_exit_code=0
9
modules_exit_code=0
10
11
- ./scripts/terraform/trivy.sh ./infrastructure/terraform/components || components_exit_code=$?
12
- ./scripts/terraform/trivy.sh ./infrastructure/terraform/modules || modules_exit_code=$?
+ if [ -d ./infrastructure/terraform/components ]; then
+ ./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