Open
Description
Describe the bug
It seems that gitleaks dir
argument 'path' does not allow multiple values or use of globs.
When passing more than one argument, gitleaks dir
silently tries to run on .
, which makes this count more as a bug than a feature request.
To Reproduce
gitleaks dir foo bar
# more advanced usage with patterns
gitleaks dir 'foo/**/*.log' bar
Expected behavior
- Be able to allow multiple path arguments
- Be able to expand globs, or at least to fail if globs are passed
Additional context
The tool itself should be able to expand globs and this is because otherwise its usage cross platform would be highly impacted as not all shells are able to expand the same way. Many other similar tools do have their own glob processing implemented in order to make them more portable.
cc @zricethezav