From 1140fcfe6074c7a6b6a78d9b9b05c3fa491ac5fa Mon Sep 17 00:00:00 2001 From: surtur Date: Thu, 8 Jul 2021 22:58:48 +0200 Subject: [PATCH] add .pre-commit-config.yaml --- .pre-commit-config.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .pre-commit-config.yaml 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]