-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpre-commit-gcp.yaml
77 lines (71 loc) · 1.99 KB
/
pre-commit-gcp.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
default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
stages: [pre-commit]
- id: end-of-file-fixer
exclude: /secrets
stages: [pre-commit]
- id: check-added-large-files
stages: [pre-commit]
- id: check-yaml
args:
- --allow-multiple-documents
exclude: /templates|/secrets|helmfile.yaml
stages: [pre-commit]
- id: check-json
stages: [pre-commit]
- id: check-toml
stages: [pre-commit]
- id: check-shebang-scripts-are-executable
stages: [pre-commit]
exclude: .+\.j2$
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.6.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
- repo: local
hooks:
- id: gitleaks
name: Detect hardcoded secrets
description: Detect hardcoded secrets using Gitleaks
entry: pre-commits/scripts/run-gitleaks.sh
language: script
pass_filenames: false
verbose: false
stages: [pre-commit]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.2
hooks:
- id: terraform_fmt
args:
- --args=-diff
- --args=-recursive
- --args=-write=true
exclude: /cookiecutters
stages: [pre-commit]
- id: terraform_docs
stages: [pre-commit]
- repo: https://github.com/norwoodj/helm-docs
rev: v1.14.2
hooks:
- id: helm-docs
args:
- --chart-search-root=manifests
- --skip-version-footer
stages: [pre-commit]
- repo: local
hooks:
- id: helm-template
name: helm-template
description: Run helm-template with makefiles
entry: pre-commits/scripts/helm-template.sh
language: script
pass_filenames: false
verbose: true
stages: [pre-commit]