-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When scanning directories, large files in the directory get split into n number of fragments, and each rule is applied per fragment. When a path only rule is ran against a fragment, the rule will match regardless of previous matches for the very same rule. This results in multiple path only rule matches for the same large file.
To Reproduce
Scan directory containing files with a large amount of bytes.
Rulefile with a path only rule.
Expected behavior
Only path rule matches once per file.
Basic Info (please complete the following information):
- OS: linux/macos
- Gitleaks Version: 8.21.2
cc @zricethezav
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working