File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,11 +66,20 @@ jobs:
6666 id : validate
6767 run : terraform validate
6868
69- - name : tfsec
70- id : tfsec
71- uses : aquasecurity/tfsec -action@b466648d6e39e7c75324f25d83891162a721f2d6 # v1.0.3
69+ - name : Trivy Scan Config
70+ id : trivy-config
71+ uses : aquasecurity/trivy -action@0.33.1
7272 with :
73- github_token : ${{ github.token }}
73+ scan-type : ' config'
74+ scan-ref : ' .'
75+
76+ - name : Trivy Scan Filesystem
77+ id : trivy-fs
78+ uses : aquasecurity/trivy-action@0.33.1
79+ with :
80+ scan-type : ' fs'
81+ scan-ref : ' .'
82+ skip-setup-trivy : true
7483
7584 - name : Setup TFLint
7685 id : tflint-setup
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ data "aws_s3_bucket" "this" {
33 bucket = var. s3_bucket
44}
55
6- # tfsec :ignore:aws-s3-enable-bucket-logging We support bring your own bucket (BYOB) if access logging is needed.
6+ # trivy :ignore:AVD-AWS-0089 We support bring your own bucket (BYOB) if access logging is needed.
77resource "aws_s3_bucket" "this" {
88 count = local. create_bucket ? 1 : 0
99 bucket = " ${ data . aws_caller_identity . current . account_id } -${ data . aws_region . current . name } -${ local . function_name } "
You can’t perform that action at this time.
0 commit comments