mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
Use rule id for config validation error (#1463)
* chore(config): use rule id for error * feat(config): ensure rule.id is not empty
This commit is contained in:
1 parent
d3c4b9078e
commit
c0fda4358e
4 files changed
+19
-3
No files matched your search
+7
@@ -0,0 +1,7 @@
|
||||
title = "gitleaks config"
|
||||
|
||||
[[rules]]
|
||||
description = "Discord API key"
|
||||
regex = '''(?i)(discord[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-h0-9]{64})['\"]'''
|
||||
secretGroup = 5
|
||||
entropy = 3.5
|
||||
Reference in new issue
Block a user