Skip to content

Commit 0a840b2

Browse files
committed
[audit functionality] Clarify what a valid secret is
1 parent a7681b4 commit 0a840b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

detect_secrets/core/audit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def _get_user_decision(prompt_secret_decision=True, can_step_back=False):
177177
print('Invalid input.')
178178

179179
if 'y' in allowable_user_input:
180-
user_input_string = 'Is this a valid secret? (y)es, (n)o, '
180+
user_input_string = 'Is this a valid secret? i.e. not a false-positive (y)es, (n)o, '
181181
else:
182182
user_input_string = 'What would you like to do? '
183183
if 'b' in allowable_user_input:

tests/core/audit_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def test_get_user_decision_invalid_input(self, mock_printer):
500500
[
501501
(
502502
True,
503-
'Is this a valid secret? (y)es, (n)o, (s)kip, (q)uit: ',
503+
'Is this a valid secret? i.e. not a false-positive (y)es, (n)o, (s)kip, (q)uit: ',
504504
),
505505
(
506506
False,

0 commit comments

Comments
 (0)