Skip to content

Commit 81e3fed

Browse files
committed
fix: only high and critical
1 parent f0480cb commit 81e3fed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci-check-infra.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,14 @@ jobs:
102102

103103
- name: Run Trivy IaC scanner
104104
uses: aquasecurity/trivy-action@v0.35.0
105+
env:
106+
TRIVY_SKIP_CHECKS: AVD-AWS-0034
105107
with:
106108
scan-type: 'config'
107109
scan-ref: ${{ inputs.tf-directory }}
108-
exit-code: '0'
110+
exit-code: '1'
111+
severity: 'HIGH,CRITICAL'
109112
skip-dirs: '.terraform'
110-
skip-checks: 'AVD-AWS-0034'
111113

112114
tflint:
113115
name: TFLint

0 commit comments

Comments
 (0)