stricter regex for github token (#535)

This commit is contained in:
Zachary Rice authored and GitHub committed 2021-03-05 16:10:04 -05:00
1 parent b3bed5658d
commit 6e4e9df55f
1 file changed
+1 -1
+1 -1
View File
@@ -43,7 +43,7 @@ title = "gitleaks config"
[[rules]]
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"]
[[rules]]