Skip to content

Commit d2040f1

Browse files
committed
tfsec -> trivy
1 parent 7ab726e commit d2040f1

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/pr.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff 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

s3.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.
77
resource "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}"

0 commit comments

Comments
 (0)