Skip to content

Commit

Permalink
↪️ Merge pull request #215 from dgzlopes/add-back-functionality-when-…
Browse files Browse the repository at this point in the history
…secret-not-found

Add (b)ack audit functionality when secret not found
  • Loading branch information
KevinHock authored Aug 3, 2019
2 parents 220b37d + 0789afd commit 372e3b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion detect_secrets/core/audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ def audit_baseline(baseline_filename):
)
decision = _get_user_decision(can_step_back=secret_iterator.can_step_back())
except SecretNotFoundOnSpecifiedLineError:
decision = _get_user_decision(prompt_secret_decision=False)
decision = _get_user_decision(
prompt_secret_decision=False,
can_step_back=secret_iterator.can_step_back(),
)

if decision == 'q':
print('Quitting...')
Expand Down

0 comments on commit 372e3b9

Please sign in to comment.