We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c2bd1bd + 1e33496 commit e872c45Copy full SHA for e872c45
.pre-commit-config.yaml
@@ -1,12 +1,15 @@
1
repos:
2
- - repo: https://github.com/gitleaks/gitleaks
3
- rev: v8.24.2
4
- hooks:
5
- - id: gitleaks
6
- args: ["--config=.gitleaks.toml"]
7
-
8
- repo: local
9
hooks:
+ - id: gitleaks
+ name: Detect hardcoded secrets
+ description: Ensures no secrets are committed
+ entry: gitleaks protect
+ args: ["--config=.gitleaks.toml", "--staged", "--verbose"]
+ language: system
10
+ pass_filenames: false
11
+ stages: [pre-commit]
12
+
13
- id: check-commit-message
14
name: Check commit message for Chinese characters
15
description: Ensures commit messages do not contain Chinese characters
0 commit comments