diff --git a/test/data/config-sarif-report/report.sarif b/test/data/config-sarif-report/report.sarif index 5d2c3eb..11f0cbf 100644 --- a/test/data/config-sarif-report/report.sarif +++ b/test/data/config-sarif-report/report.sarif @@ -91,7 +91,7 @@ } }, { - "id": "s3-bucket-logging", + "id": "AVD-AWS-0089", "name": "Misconfiguration", "shortDescription": { "text": "S3 Bucket Logging" @@ -102,10 +102,10 @@ "defaultConfiguration": { "level": "note" }, - "helpUri": "https://avd.aquasec.com/misconfig/s3-bucket-logging", + "helpUri": "https://avd.aquasec.com/misconfig/avd-aws-0089", "help": { - "text": "Misconfiguration s3-bucket-logging\nType: Terraform Security Check\nSeverity: LOW\nCheck: S3 Bucket Logging\nMessage: Bucket has logging disabled\nLink: [s3-bucket-logging](https://avd.aquasec.com/misconfig/s3-bucket-logging)\nEnsures S3 bucket logging is enabled for S3 buckets", - "markdown": "**Misconfiguration s3-bucket-logging**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|LOW|S3 Bucket Logging|Bucket has logging disabled|[s3-bucket-logging](https://avd.aquasec.com/misconfig/s3-bucket-logging)|\n\nEnsures S3 bucket logging is enabled for S3 buckets" + "text": "Misconfiguration AVD-AWS-0089\nType: Terraform Security Check\nSeverity: LOW\nCheck: S3 Bucket Logging\nMessage: Bucket has logging disabled\nLink: [AVD-AWS-0089](https://avd.aquasec.com/misconfig/avd-aws-0089)\nEnsures S3 bucket logging is enabled for S3 buckets", + "markdown": "**Misconfiguration AVD-AWS-0089**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|LOW|S3 Bucket Logging|Bucket has logging disabled|[AVD-AWS-0089](https://avd.aquasec.com/misconfig/avd-aws-0089)|\n\nEnsures S3 bucket logging is enabled for S3 buckets" }, "properties": { "precision": "very-high", @@ -338,11 +338,11 @@ ] }, { - "ruleId": "s3-bucket-logging", + "ruleId": "AVD-AWS-0089", "ruleIndex": 3, "level": "note", "message": { - "text": "Artifact: main.tf\nType: terraform\nVulnerability s3-bucket-logging\nSeverity: LOW\nMessage: Bucket has logging disabled\nLink: [s3-bucket-logging](https://avd.aquasec.com/misconfig/s3-bucket-logging)" + "text": "Artifact: main.tf\nType: terraform\nVulnerability AVD-AWS-0089\nSeverity: LOW\nMessage: Bucket has logging disabled\nLink: [AVD-AWS-0089](https://avd.aquasec.com/misconfig/avd-aws-0089)" }, "locations": [ { diff --git a/test/data/config-scan/report.json b/test/data/config-scan/report.json index f523f08..62aab6c 100644 --- a/test/data/config-scan/report.json +++ b/test/data/config-scan/report.json @@ -214,7 +214,7 @@ }, { "Type": "Terraform Security Check", - "ID": "s3-bucket-logging", + "ID": "AVD-AWS-0089", "AVDID": "AVD-AWS-0089", "Title": "S3 Bucket Logging", "Description": "Ensures S3 bucket logging is enabled for S3 buckets", @@ -223,10 +223,10 @@ "Query": "data.builtin.aws.s3.aws0089.deny", "Resolution": "Add a logging block to the resource to enable access logging", "Severity": "LOW", - "PrimaryURL": "https://avd.aquasec.com/misconfig/s3-bucket-logging", + "PrimaryURL": "https://avd.aquasec.com/misconfig/avd-aws-0089", "References": [ "https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerLogs.html", - "https://avd.aquasec.com/misconfig/s3-bucket-logging" + "https://avd.aquasec.com/misconfig/avd-aws-0089" ], "Status": "FAIL", "Layer": {}, diff --git a/test/test.bats b/test/test.bats index 1e0f3ce..7e1a036 100644 --- a/test/test.bats +++ b/test/test.bats @@ -4,7 +4,7 @@ setup_file() { local owner=$GITHUB_REPOSITORY_OWNER export TRIVY_DB_REPOSITORY=ghcr.io/${owner}/trivy-db-act:latest export TRIVY_JAVA_DB_REPOSITORY=ghcr.io/${owner}/trivy-java-db-act:latest - export TRIVY_POLICY_BUNDLE_REPOSITORY=ghcr.io/${owner}/trivy-checks-act:latest + export TRIVY_CHECKS_BUNDLE_REPOSITORY=ghcr.io/${owner}/trivy-checks-act:latest } setup() {