splitting out github rules and retabbing

This commit is contained in:
zricethezav committed 2021-04-09 14:07:23 -04:00
1 parent 190877a24b
commit 5d7b7718ec
1 file changed
+14 -2
+14 -2
View File
@@ -42,8 +42,20 @@ title = "gitleaks config"
tags = ["client", "Twitter"] tags = ["client", "Twitter"]
[[rules]] [[rules]]
description = "Github Auth Token" description = "Github Personal Access Token"
regex = '''(ghp|gho|ghu|ghs|ghr)_[0-9a-zA-Z]{32-40}''' regex = '''ghp_[0-9a-zA-Z]{36}'''
tags = ["key", "Github"]
[[rules]]
description = "Github OAuth Access Token"
regex = '''gho_[0-9a-zA-Z]{36}'''
tags = ["key", "Github"]
[[rules]]
description = "Github App Token"
regex = '''(ghu|ghs)_[0-9a-zA-Z]{36}'''
tags = ["key", "Github"]
[[rules]]
description = "Github Refresh Token"
regex = '''ghr_[0-9a-zA-Z]{76}'''
tags = ["key", "Github"] tags = ["key", "Github"]
[[rules]] [[rules]]