Skip to content

Commit f007a19

Browse files
authored
Merge pull request watson-developer-cloud#826 from watson-developer-cloud/add-detect-secrets
Add detect secrets
2 parents 028bfb7 + d1a9bdc commit f007a19

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- repo: [email protected]:Whitewater/whitewater-detect-secrets
2+
rev: master
3+
hooks:
4+
- id: detect-secrets # pragma: whitelist secret
5+
args: [--baseline, .secrets.baseline, --no-keyword-scan ]

.secrets.baseline

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"exclude_regex": null,
3+
"generated_at": "2019-01-17T19:54:14Z",
4+
"plugins_used": [
5+
{
6+
"base64_limit": 4.5,
7+
"name": "Base64HighEntropyString"
8+
},
9+
{
10+
"name": "BasicAuthDetector"
11+
},
12+
{
13+
"hex_limit": 3,
14+
"name": "HexHighEntropyString"
15+
},
16+
{
17+
"name": "PrivateKeyDetector"
18+
},
19+
{
20+
"name": "SlackDetector"
21+
}
22+
],
23+
"results": {},
24+
"version": "0.10.3"
25+
}

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,11 @@
126126
"**/*.ts": [
127127
"tsc",
128128
"tslint --fix -p . -c tslint.json",
129-
"npm run test-unit",
130129
"git add"
131130
],
132131
"test/**/*.js": [
133132
"eslint --fix",
134133
"prettier --write",
135-
"npm run test-unit",
136134
"git add"
137135
],
138136
"examples/*.js": [

test/integration/speech_to_text.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ describe('speech_to_text_integration', function() {
283283
}
284284
expect(result.customization_id).toBeDefined();
285285
customization_id = result.customization_id;
286-
console.log(customization_id);
287286
done();
288287
}
289288
);

0 commit comments

Comments
 (0)