-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working well with pre-commit #595
Labels
bug
Something isn't working
Comments
@chanpl: i got exactly that :) |
@foolioo Could you share your configuration? Are you running This is my output.
|
Merged
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Two issues I got when using gitleaks with pre-commit:
pre-commit run -a
,gitleaks
was executed multiple times.To Reproduce
To reproduce:
Add the following example secret to any file in your repo
mongodb://myDBReader:D1fficultP%40ssw0rd@mongodb0.example.com:27017/?authSource=admin
Use this additional config
pre-commit run -a
Expected behavior
gitleaks
runs only once and just report 1 error. (Since there is only one line of secret)The text was updated successfully, but these errors were encountered: