-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.pre-commit-config.yaml
48 lines (48 loc) · 1.63 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
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.97.0
hooks:
- id: terraform_fmt
exclude: test/integration/suite/vendor/.*
- id: terraform_trivy
args:
- "--args=--skip-dirs=test/integration/suite/vendor/.*"
- "--args=--severity HIGH,CRITICAL"
files: (\.tf|\.tfvars)$
- id: terraform_checkov
args:
- "--args=--quiet"
- "--args=--skip-path=test/integration/suite/vendor/.*"
- id: terraform_tflint
args:
- "--args=--call-module-type=all"
- "--args=--config=__GIT_WORKING_DIR__/.tflint.hcl"
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
exclude: test/integration/suite/vendor/.*
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: test/integration/suite/vendor/.*
- id: check-added-large-files
exclude: test/integration/suite/vendor/.*
- id: check-merge-conflict
- id: detect-aws-credentials
exclude: test/integration/suite/vendor/.*
args:
- "--allow-missing-credentials"
- id: detect-private-key
- id: check-executables-have-shebangs
exclude: test/integration/suite/vendor/.*
- id: check-shebang-scripts-are-executable
exclude: test/integration/suite/vendor/.*
- id: check-json
- id: end-of-file-fixer
exclude: test/integration/suite/vendor/.*
- id: mixed-line-ending
exclude: test/integration/suite/vendor/.*
args:
- "--fix=lf"