-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
No difference when using --threads option with docker image #609
Comments
@w0rmr1d3r if you are using Docker for mac you can throttle the number of CPUs dedicated to Docker. I'm curious if bumping the CPU value would fix your problem? |
Hello @zricethezav ! Are we missing something? |
@w0rmr1d3r I believe this is related to #619.
|
It is! Thank you! Closing the issue |
However, tested it in a Jenkins machine and got no significant changes. In my local it's showing progress, so I will say that it's limited to how Jenkins runs docker images |
Describe the bug
I'm scanning a repo which takes aprox, 1min to get scanned.
I'm using gitleaks as follows:
And wanted it to perform better, so I came accross the
--threads
option (from here).I used it many times with different values, but no different outcome in time it takes to scan the repo.
To Reproduce
Steps to reproduce the behavior:
docker run -v ${PWD}:/my-repo zricethezav/gitleaks:latest --path="/my-repo" --no-git --verbose
docker run -v ${PWD}:/my-repo zricethezav/gitleaks:latest --path="/my-repo" --no-git --verbose --threads=100
100
value by any value, I put 10, 20, 100 and 1000.Expected behavior
It should take less time to scan the repo, unless that option is only useful when using gitleaks outside Docker.
Screenshots
Forgot to take screenshots :(
Basic Info (please complete the following information):
Additional context
Shall I open a PR saying that the option is deprecated or only available outside docker? I searched for open/closed issues, found nothing related to this topic.
cc @zricethezav
The text was updated successfully, but these errors were encountered: