mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
stricter regex for github token (#535)
This commit is contained in:
1 parent
b3bed5658d
commit
6e4e9df55f
1 file changed
+1
-1
+1
-1
@@ -43,7 +43,7 @@ title = "gitleaks config"
|
|||||||
|
|
||||||
[[rules]]
|
[[rules]]
|
||||||
description = "Github"
|
description = "Github"
|
||||||
regex = '''(?i)github(.{0,20})?(?-i)[0-9a-zA-Z]{35,40}'''
|
regex = '''(?i)github.{0,3}((?i)token|api|key).{0,10}?(?-i)([0-9a-zA-Z]{35,40})'''
|
||||||
tags = ["key", "Github"]
|
tags = ["key", "Github"]
|
||||||
|
|
||||||
[[rules]]
|
[[rules]]
|
||||||
|
|||||||
Reference in new issue
Block a user