Skip to content

Commit 1e33496

Browse files
author
qinhui
committed
gitleaks uses the local environment
1 parent ca137e7 commit 1e33496

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ repos:
55
name: Detect hardcoded secrets
66
description: Ensures no secrets are committed
77
entry: gitleaks protect
8-
args: ["--config=.gitleaks.toml", "--source", "."]
8+
args: ["--config=.gitleaks.toml", "--staged", "--verbose"]
99
language: system
1010
pass_filenames: false
11+
stages: [pre-commit]
1112

1213
- id: check-commit-message
1314
name: Check commit message for Chinese characters

0 commit comments

Comments
 (0)