Skip to content

Commit 6652b55

Browse files
committed
Add pre-commit configuration with git-leaks
This commit adds a pre-commit configuration that includes git-leaks to automatically scan for secrets and sensitive information before each commit. This helps prevent accidental commits of API keys, passwords, and other sensitive data. Features: - Automatic secret detection using git-leaks v8.28.0 - Verbose output for transparency - Redacted output to avoid exposing secrets in logs - Runs on every commit to ensure security compliance
1 parent 9a1f803 commit 6652b55

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
@@ -0,0 +1,6 @@
1+
repos:
2+
- repo: https://github.com/gitleaks/gitleaks
3+
rev: v8.28.0 # latest version
4+
hooks:
5+
- id: gitleaks
6+
args: ['--verbose', '--redact']

0 commit comments

Comments
 (0)