add .pre-commit-config.yaml

This commit is contained in:
surtur 2021-07-08 22:58:48 +02:00
parent cc398e2903
commit 1140fcfe60
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

22
.pre-commit-config.yaml Normal file

@ -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]