Skip to content

Commit

Permalink
detect-secrets should dog food its own pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Loo committed Feb 25, 2021
1 parent 44fafb3 commit 94f8d56
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ repos:
rev: v1.4.4
hooks:
- id: autopep8
- repo: https://github.com/Yelp/detect-secrets
rev: v1.0.1
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
1 change: 0 additions & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name: Detect secrets
description: Detects high entropy strings that are likely to be passwords.
entry: detect-secrets-hook
args: ['--base64-limit', '4.5', '--hex-limit', '3']
language: python
# for backward compatibility
files: .*
2 changes: 1 addition & 1 deletion .secrets.baseline
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.0",
"version": "1.0.1",
"plugins_used": [
{
"name": "ArtifactoryDetector"
Expand Down

0 comments on commit 94f8d56

Please sign in to comment.