-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
34 lines (34 loc) · 1.05 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# .pre-commit-config.yaml
default_stages: [pre-commit]
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.2
hooks:
- id: terraform_fmt
- id: terraform_validate
args:
- --tf-init-args=-upgrade
- --hook-config=--retry-once-with-cleanup=true # requires jq - cleans up broken .terraform directories
- id: terraform_tflint
args:
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
- id: terraform_trivy
- id: terraform_checkov
args:
- --args=--quiet
- id: terraform_docs
args:
- --args=--config=.terraform-docs.yml
# - id: tfupdate
# name: Autoupdate Terraform Google Provider
# args:
# - --args=provider google -v "~> 5.0"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: detect-private-key
- id: check-merge-conflict