Skip to content

Commit

Permalink
Merge pull request #46 from uc-cdis/chore/pre-commit
Browse files Browse the repository at this point in the history
PreCommit Hook and Baseline Secrets File
  • Loading branch information
Jiaqi Liu authored Aug 12, 2020
2 parents 8200859 + ef1877e commit 047d1b5
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
repos:
- repo: git@github.com:Yelp/detect-secrets
rev: v0.13.1
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: end-of-file-fixer
- id: no-commit-to-branch
args: [--branch, develop, --branch, master, --pattern, release/.*]
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
94 changes: 94 additions & 0 deletions .secrets.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"exclude": {
"files": null,
"lines": null
},
"generated_at": "2020-07-24T03:54:46Z",
"plugins_used": [
{
"name": "AWSKeyDetector"
},
{
"name": "ArtifactoryDetector"
},
{
"base64_limit": 4.5,
"name": "Base64HighEntropyString"
},
{
"name": "BasicAuthDetector"
},
{
"name": "CloudantDetector"
},
{
"hex_limit": 3,
"name": "HexHighEntropyString"
},
{
"name": "IbmCloudIamDetector"
},
{
"name": "IbmCosHmacDetector"
},
{
"name": "JwtTokenDetector"
},
{
"keyword_exclude": null,
"name": "KeywordDetector"
},
{
"name": "MailchimpDetector"
},
{
"name": "PrivateKeyDetector"
},
{
"name": "SlackDetector"
},
{
"name": "SoftlayerDetector"
},
{
"name": "StripeDetector"
},
{
"name": "TwilioKeyDetector"
}
],
"results": {
"poetry.lock": [
{
"hashed_secret": "45921a12ebe5a4e0146424b2310f54b5487551f3",
"is_secret": false,
"is_verified": false,
"line_number": 612,
"type": "Hex High Entropy String"
}
],
"src/authutils/oauth2/client/blueprint.py": [
{
"hashed_secret": "6eae3a5b062c6d0d79f070c26e6d62486b40cb46",
"is_secret": false,
"is_verified": false,
"line_number": 15,
"type": "Secret Keyword"
}
],
"src/authutils/testing/fixtures/keys.py": [
{
"hashed_secret": "be4fc4886bd949b369d5e092eb87494f12e57e5b",
"is_secret": false,
"is_verified": false,
"line_number": 83,
"type": "Private Key"
}
]
},
"version": "0.13.1",
"word_list": {
"file": null,
"hash": null
}
}

0 comments on commit 047d1b5

Please sign in to comment.