fix(detect): test all allowlists (#1845)

This commit is contained in:
Richard Gomez authored and GitHub committed 2025-04-30 08:29:57 -05:00
1 parent 4451b455f3
commit d1c77598da
3 files changed
+20 -2

No files matched your search

@@ -0,0 +1,11 @@
# https://github.com/gitleaks/gitleaks/issues/1844
[extend]
useDefault = true
[[rules]]
id = "generic-api-key"
[[rules.allowlists]]
description = "Exclude a specific file from generic-api-key rule"
paths = [
'''^path/to/your/problematic/file\.js$'''
]