Skip to content

Commit 7f47938

Browse files
authored
Merge pull request #25 from WalletConnect/feat/tfsec_to_trivy
fix: swapping TFSec to Trivy
2 parents bac2a5d + 81e3fed commit 7f47938

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

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

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ jobs:
7575
working-directory: ${{ inputs.tf-directory }}
7676
run: terraform validate
7777

78-
tfsec:
79-
name: TFSec
78+
trivy:
79+
name: Trivy
8080
runs-on: ${{ inputs.run-label }}
8181
steps:
8282
- name: Checkout
@@ -100,11 +100,16 @@ jobs:
100100
working-directory: ${{ inputs.tf-directory }}
101101
run: terraform init -no-color
102102

103-
- uses: aquasecurity/tfsec-action@v1.0.3
103+
- name: Run Trivy IaC scanner
104+
uses: aquasecurity/trivy-action@v0.35.0
105+
env:
106+
TRIVY_SKIP_CHECKS: AVD-AWS-0034
104107
with:
105-
working_directory: ${{ inputs.tf-directory }}
106-
github_token: ${{ secrets.GITHUB_TOKEN }}
107-
additional_args: '--exclude aws-ecs-enable-container-insight'
108+
scan-type: 'config'
109+
scan-ref: ${{ inputs.tf-directory }}
110+
exit-code: '1'
111+
severity: 'HIGH,CRITICAL'
112+
skip-dirs: '.terraform'
108113

109114
tflint:
110115
name: TFLint

0 commit comments

Comments
 (0)