add .pre-commit-config.yaml
This commit is contained in:
parent
cc398e2903
commit
1140fcfe60
22
.pre-commit-config.yaml
Normal file
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]
|
Loading…
Reference in New Issue
Block a user