-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
54 lines (49 loc) · 1.44 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
repos:
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.17
hooks:
- id: shellcheck
- repo: https://github.com/tcort/markdown-link-check
rev: v3.9.3
hooks:
- id: markdown-link-check
args:
- "--config=mlc_config.json"
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.77.0
hooks:
- id: terraform_fmt
- id: terraform_validate
args:
- --hook-config=--retry-once-with-cleanup=true
- id: terraform_tflint
args:
- --args=--module
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
- id: terraform_docs
args:
- --hook-config=--path-to-file=README.md
- --hook-config=--add-to-existing-file=true
- --hook-config=--recursive=true
- id: terraform_tfsec
args:
- --args=--exclude-downloaded-modules
- id: terraform_checkov
args:
- --args=--skip-check CKV_TF_1
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
# Git style
- id: check-added-large-files
- id: check-merge-conflict
- id: check-merge-conflict
- id: no-commit-to-branch
# Common errors
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
# Security
- id: detect-aws-credentials
args: ['--allow-missing-credentials']
- id: detect-private-key