Skip to content

Commit 1db670d

Browse files
authored
Merge pull request #631 from watson-developer-cloud/detect-secrets
Detect secrets
2 parents e30edc8 + fb00227 commit 1db670d

File tree

3 files changed

+52
-4
lines changed

3 files changed

+52
-4
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: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"exclude_regex": null,
3+
"generated_at": "2019-01-18T18:10:52Z",
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+
"test/unit/test_compare_comply_v1.py": [
25+
{
26+
"hashed_secret": "8b9c6b492eeebdcadf7104b49fe0a4d8d794e571",
27+
"line_number": 140,
28+
"type": "Hex High Entropy String"
29+
},
30+
{
31+
"hashed_secret": "6fdc5cd6c838419315d7a2ba2904807eb7704f46",
32+
"line_number": 219,
33+
"type": "Hex High Entropy String"
34+
},
35+
{
36+
"hashed_secret": "72a78bbbc94f2d89ede742a52f62981edfaf7485",
37+
"line_number": 291,
38+
"type": "Base64 High Entropy String"
39+
}
40+
]
41+
},
42+
"version": "0.10.3"
43+
}

watson_developer_cloud/speech_to_text_v1_adapter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,7 @@ def recognize_using_websocket(self,
209209
'acoustic_customization_id': acoustic_customization_id,
210210
'customization_weight': customization_weight,
211211
'base_model_version': base_model_version,
212-
'language_customization_id': language_customization_id,
213-
'grammar_name': grammar_name,
214-
'redaction': redaction
212+
'language_customization_id': language_customization_id
215213
}
216214
params = _remove_null_values(params)
217215
url += '/v1/recognize?{0}'.format(urlencode(params))
@@ -228,7 +226,9 @@ def recognize_using_websocket(self,
228226
'timestamps': timestamps,
229227
'profanity_filter': profanity_filter,
230228
'smart_formatting': smart_formatting,
231-
'speaker_labels': speaker_labels
229+
'speaker_labels': speaker_labels,
230+
'grammar_name': grammar_name,
231+
'redaction': redaction
232232
}
233233
options = _remove_null_values(options)
234234

0 commit comments

Comments
 (0)