From 4a78e406883d22e0adb848e7af74896e5490428b Mon Sep 17 00:00:00 2001 From: matt-heery Date: Mon, 16 Sep 2024 18:00:39 +0100 Subject: [PATCH] ignore trivy checks --- test/unit-test/main.tf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/unit-test/main.tf b/test/unit-test/main.tf index a5d946b..cbfba7f 100644 --- a/test/unit-test/main.tf +++ b/test/unit-test/main.tf @@ -66,6 +66,12 @@ resource "aws_s3_bucket" "non-modulised-bucket" { #checkov:skip=CKV2_AWS_62: "Ensure S3 buckets should have event notifications enabled - This is not needed in our tests" #checkov:skip=CKV_AWS_144: "Ensure that S3 bucket has cross-region replication enabled - This is not needed in our tests" #checkov:skip=CKV_AWS_145: "Ensure that S3 buckets are encrypted with KMS by default - This is not needed in our tests" + #trivy:ignore:AVD-AWS-0086 + #trivy:ignore:AVD-AWS-0087 + #trivy:ignore:AVD-AWS-0088 + #trivy:ignore:AVD-AWS-0091 + #trivy:ignore:AVD-AWS-0093 + #trivy:ignore:AVD-AWS-0132 bucket = "log-test-bucket-051683332738327" } @@ -77,6 +83,12 @@ resource "aws_s3_bucket" "non-modulised-bucket-2" { #checkov:skip=CKV2_AWS_62: "Ensure S3 buckets should have event notifications enabled - This is not needed in our tests" #checkov:skip=CKV_AWS_144: "Ensure that S3 bucket has cross-region replication enabled - This is not needed in our tests" #checkov:skip=CKV_AWS_145: "Ensure that S3 buckets are encrypted with KMS by default - This is not needed in our tests" + #trivy:ignore:AVD-AWS-0086 + #trivy:ignore:AVD-AWS-0087 + #trivy:ignore:AVD-AWS-0088 + #trivy:ignore:AVD-AWS-0091 + #trivy:ignore:AVD-AWS-0093 + #trivy:ignore:AVD-AWS-0132 bucket = "log-test-bucket-2-051683332738327" }