Skip to content

Commit 79eddae

Browse files
committed
add additional pre-commit hooks
1 parent a301caf commit 79eddae

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
33
rev: v6.0.0
44
hooks:
5+
# Git
6+
- id: check-added-large-files
7+
- id: no-commit-to-branch
8+
name: "ensure no direct commit to master/maintenance branches"
9+
args: [--branch, "master", --pattern, "maintenance/.*"]
10+
- id: check-case-conflict
11+
- id: check-illegal-windows-names
12+
# Contents
513
- id: check-ast
614
- id: check-builtin-literals
715
- id: check-case-conflict
@@ -101,3 +109,13 @@ repos:
101109
rev: 3.0.0
102110
hooks:
103111
- id: shellcheck
112+
113+
- repo: https://github.com/gitleaks/gitleaks
114+
rev: v8.30.0
115+
hooks:
116+
- id: gitleaks
117+
118+
- repo: https://github.com/rhysd/actionlint
119+
rev: v1.7.11
120+
hooks:
121+
- id: actionlint

0 commit comments

Comments
 (0)