File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments