-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
47 lines (47 loc) · 1.52 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
35
36
37
38
39
40
41
42
43
44
45
46
47
# .pre-commit-config.yaml
default_stages: [pre-commit]
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.92.1
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 Helm Provider
# args:
# - --args=provider helm
# - --args=--version "~> 2.0"
# - id: tfupdate
# name: Autoupdate Terraform Kubernetes
# - --args=provider kubernetes
# - --args=--version "~> 2.0"
# - id: tfupdate
# name: Autoupdate Terraform AWS Provider
# - --args=provider aws
# - --args=--version "~> 5.0"
# - id: tfupdate
# name: Autoupdate Terraform Google Provider
# - --args=provider google
# - --args=--version "~> 5.0"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.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