Skip to content

Commit

Permalink
chore(Detect secrets): Implement detect-secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
mediumTaj committed May 3, 2019
1 parent a71679f commit 3dd4ee8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This is an example configuration to enable whitewater-detect-secrets in the pre-commit hook.
# Add this file to the root folder of your repository.
#
# Read pre-commit hook framework https://pre-commit.com/ for more details about the structure of config yaml file and how git pre-commit would invoke each hook.
#
# This line indicates we will use the hook from Whitewater/whitewater-detect-secrets to run scan during commiting phase.
repos:
- repo: git@github.ibm.com:Whitewater/whitewater-detect-secrets
# If you desire to use a specific version of whitewater-detect-secrets, you can replace `master` with other git revisions such as branch, tag or commit sha.
rev: 0.12.0-ibm.3
hooks:
- id: detect-secrets # pragma: whitelist secret
# Add options for detect-secrets-hook binary. You can run `detect-secrets-hook --help` to list out all possible options.
# You may also run `pre-commit run detect-secrets` to preview the scan result.
#
# The `--no-keyword-scan` field can be removed if you are using 0.10.3-ibm.1. It was added prior to 0.10.3-ibm.1 to reduce false positives generated from old keyword scanner.
# After 0.10.3-ibm.1, keyword scanner is disabled by default.
args: [--baseline, .secrets.baseline, --no-keyword-scan ]
23 changes: 23 additions & 0 deletions .secrets.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"exclude": {
"files": null,
"lines": null
},
"generated_at": "2019-05-03T20:40:19Z",
"plugins_used": [
{
"name": "AWSKeyDetector"
},
{
"name": "BasicAuthDetector"
},
{
"name": "PrivateKeyDetector"
},
{
"name": "SlackDetector"
}
],
"results": {},
"version": "0.12.0-ibm.3"
}

0 comments on commit 3dd4ee8

Please sign in to comment.