mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
Enhance entropy (#333)
* Modified Entropy to be able to apply it on regex match or specific capture group * Config tests * Small fixes on entropy ranges * Fix toml configs Fix tests * Indents and code styles
This commit is contained in:
1 parent
e7fbcf5333
commit
ee2d73c740
20 files changed
+236
-208
No files matched your search
@@ -1,7 +1,8 @@
|
||||
[[rules]]
|
||||
description = "entropy"
|
||||
entropies = [
|
||||
"4.3-4.1",
|
||||
]
|
||||
regex = '''['|"]([0-9a-zA-Z-._{}$\/\+=]{20,120})['|"]'''
|
||||
tags = ["entropy"]
|
||||
[[rules.Entropies]]
|
||||
Min = "4.3"
|
||||
Max = "4.1"
|
||||
|
||||
Reference in new issue
Block a user