-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When running the following gitleaks detect --no-git and supplying a source directory the program does not detect any leaks. When I remove source and change the current working directory to what I want to scan, leaks are detected.
You can see in the screenshot the 0 leaks (--source) and 8 leaks found (no --source supplied).
To confirm, does the --source argument allow you to specify a directory or file to scan? Or does it do something else?
To Reproduce
Run: gitleaks detect --source C:\path\to\files --no-git
Expected behavior
When supplying source it should scan the specified files and detect leaks.
Basic Info (please complete the following information):
- OS: Windows 11
- Gitleaks Version: 8.19.2
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working