Skip to content

Commit f65da2c

Browse files
author
qinhui
committed
gitleaks uses the local environment
1 parent 7f2f33d commit f65da2c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.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)