-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
84 lines (72 loc) · 2.06 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.3.0"
hooks:
- id: check-added-large-files
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: end-of-file-fixer
- id: no-commit-to-branch
args:
- --branch=main
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.0"
hooks:
- id: prettier
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: "v1.74.1"
hooks:
- id: terraform_fmt
files: ""
args:
- --args=-no-color
- --args=-diff
- id: terraform_validate
- id: terraform_docs
args:
- path-to-file=README.md
- add-to-existing-file=true
- create-file-if-not-exist=true
- id: terraform_tflint
args:
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
- id: terrascan
args:
- --args=--config-path=.terrascan.toml
- --args=--iac-dir iac/terraform
- --args=--iac-type=terraform
- --args=--policy-type=aws
- id: terrascan
args:
- --args=--iac-dir helm
- --args=--iac-type=helm
- --args=--policy-type=k8s
- id: terraform_tfsec
files: ^iac/terraform/
args:
- >
--args=--format lovely
--no-color
- id: tfupdate
name: Autoupdate AWS provider versions
args:
- --args=provider aws # Will be pined to latest version
- id: infracost_breakdown
args:
- --args=--path=./iac/terraform
- --hook-config='.currency == "USD"'
verbose: true # Always show costs
- repo: https://github.com/bridgecrewio/checkov.git
rev: "2.1.159"
hooks:
- id: checkov
files: ""
args: [--config-file=.checkov.yaml]
- repo: https://github.com/zricethezav/gitleaks
rev: "v8.11.1"
hooks:
- id: gitleaks
args:
- hook-config=--config .gitleaks.toml