diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..02a07b3 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,22 @@ +--- +repos: + - repo: git://github.com/antonbabenko/pre-commit-terraform + rev: v1.50.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases + hooks: + - id: terraform_fmt + - id: terraform_validate + files: vms + - id: terraform_tflint + - id: terraform_docs + - id: terraform_tfsec + name: "Terraform validate wih tfsec: libvirt.tf" + args: [libvirt.tf] + - id: terraform_tfsec + name: "Terraform validate wih tfsec: vms folder" + args: [./vms] + - id: checkov + name: Checkov libvirt.tf + args: [-f libvirt.tf] + - id: checkov + name: Checkov main.tf + args: [-f vms/main.tf]