Skip to content

Commit 4d1ff04

Browse files
chore(security): add gitleaks pre-commit hook to block secrets before commit (#413)
chore(security): add gitleaks pre-commit hook to block secrets before commit
1 parent eaf9e08 commit 4d1ff04

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
# See https://pre-commit.com for more information
33

44
repos:
5+
# Secret scanning (blocks commits containing API keys, tokens, URLs)
6+
- repo: https://github.com/gitleaks/gitleaks
7+
rev: v8.30.0
8+
hooks:
9+
- id: gitleaks
10+
511
# General hooks
612
- repo: https://github.com/pre-commit/pre-commit-hooks
713
rev: v4.5.0
@@ -73,6 +79,7 @@ default_language_version:
7379
# Skip these hooks during CI (they run in dedicated CI jobs)
7480
ci:
7581
skip:
82+
- gitleaks
7683
- android-sdk-lint
7784
- android-app-lint
7885
- ios-sdk-swiftlint-fix

0 commit comments

Comments
 (0)