Skip to content

Commit 1fbe1d7

Browse files
authored
pre-commit: add gitleaks to detect hardcoded secrets (#11064)
1 parent 165ab0a commit 1fbe1d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ repos:
2525
hooks:
2626
- id: identity
2727
- id: check-hooks-apply
28+
- repo: https://github.com/gitleaks/gitleaks
29+
rev: v8.27.2
30+
hooks:
31+
- id: gitleaks
32+
name: run gitleaks
33+
description: detect hardcoded secrets
2834
- repo: https://github.com/pre-commit/pre-commit-hooks
2935
rev: v4.6.0
3036
hooks:

0 commit comments

Comments
 (0)