Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .checkov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ skip-check:
# DEFERRED, not accepted: module needs a logging_target_bucket
# variable. Remove this skip when implemented.
- CKV_AWS_18
skip-path:
# Deliberately non-compliant Terraform used to test custom Rego
# rules. Excluded from the infra scan because it exists to fail.
- policy/fixtures
2 changes: 1 addition & 1 deletion .github/workflows/policy-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
sudo apt-get install -y trivy

- name: Run Trivy
run: trivy config . --exit-code 1 --severity HIGH,CRITICAL --ignorefile .trivyignore.yaml
run: trivy config . --exit-code 1 --severity HIGH,CRITICAL --ignorefile .trivyignore.yaml --skip-dirs policy/fixtures
17 changes: 17 additions & 0 deletions policy/fixtures/violates-org-policy.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}

provider "aws" {
region = "ap-southeast-2"
}

resource "aws_s3_bucket" "sneaky" {
bucket = "grc-lab-sneaky-example"
force_destroy = true
}
Loading