Open pbraband opened 1 year ago
I had the same issue. Importing the default_settings, and then wrapping the scan_line inside of a with line fixed it for me:
from detect_secrets.settings import default_settings
...
with default_settings():
secrets = list(scan_line(variable.value))
I'm submitting a ...
What is the current behavior? Invoking
scan_line
from within another python script isn't detecting secrets in the strings being passed inIf the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior? a potential secret obj returned from the generator
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
1.4.0
3.11.4
MacOS Ventura 13.4.1 (22F82)
N/A
Other information