Skip to content

Commit

Permalink
Add detect-secrets hook & baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
piax93 committed Dec 11, 2018
1 parent b703198 commit 2af86f5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Expand Up @@ -33,3 +33,10 @@
args:
- --add-import
- from __future__ import absolute_import
- repo: https://github.com/Yelp/detect-secrets
sha: 0.9.1
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: .*tests/.*|\.pre-commit-config\.yaml
language_version: python2.7
27 changes: 27 additions & 0 deletions .secrets.baseline
@@ -0,0 +1,27 @@
{
"exclude_regex": ".*tests/.*|\\.pre-commit-config\\.yaml",
"generated_at": "2018-12-11T20:18:23Z",
"plugins_used": [
{
"base64_limit": 4.5,
"name": "Base64HighEntropyString"
},
{
"hex_limit": 3,
"name": "HexHighEntropyString"
},
{
"name": "PrivateKeyDetector"
}
],
"results": {
".travis.yml": [
{
"hashed_secret": "20bccf6b10adb3faf8ef4552f5ec21b2767501ac",
"line_number": 18,
"type": "Base64 High Entropy String"
}
]
},
"version": "0.9.1"
}

0 comments on commit 2af86f5

Please sign in to comment.