forked from semgrep/semgrep-rules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
33 lines (33 loc) · 1.14 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: check-case-conflict
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
# Normal case - single document YAML only
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: check-yaml
exclude: |
(?x)^(
# These are multi-document
yaml/github-actions/semgrep-configuration/semgrep-github-action-push-without-branches\.test\.yml|
yaml/kubernetes/security/.*\.test\.yaml
)$
# Exception case - multi-document YAML OK - still check YAML
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: check-yaml
name: Check Yaml (Multi-documents)
args: [--allow-multiple-documents]
files: |
(?x)^(
# These are multi-document
yaml/github-actions/semgrep-configuration/semgrep-github-action-push-without-branches\.test\.yml|
yaml/kubernetes/security/.*\.test\.yaml
)$