Skip to content

Commit 1053dc8

Browse files
committed
Fixed: add detect-secrets to pre-commit hooks
- Add detect-secrets v1.5.0 hook with baseline - Create .secrets.baseline with empty results - Exclude .env and xseed.sh from secret scanning
1 parent 71ce45b commit 1053dc8

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ repos:
2020
- id: check-shebang-scripts-are-executable
2121
name: check shebang scripts are executable
2222

23+
- repo: https://github.com/Yelp/detect-secrets
24+
rev: v1.5.0
25+
hooks:
26+
- id: detect-secrets
27+
name: detect secrets
28+
args: ['--baseline', '.secrets.baseline']
29+
exclude: '^(\.env|xseed\.sh)$'
30+
2331
- repo: https://github.com/shellcheck-py/shellcheck-py
2432
rev: v0.10.0.1
2533
hooks:

‎.secrets.baseline‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)