Pypi GitHub rules (#546)

* adding pypi and basic azure rules

* Adding new github format
This commit is contained in:
Zachary Rice authored and GitHub committed 2021-04-08 16:34:08 -04:00
1 parent 144362b972
commit 190877a24b
1 file changed
+7 -2
+7 -2
View File
@@ -42,8 +42,8 @@ title = "gitleaks config"
tags = ["client", "Twitter"]
[[rules]]
description = "Github"
regex = '''(?i)github.{0,3}((?i)token|api|key).{0,10}?(?-i)([0-9a-zA-Z]{35,40})'''
description = "Github Auth Token"
regex = '''(ghp|gho|ghu|ghs|ghr)_[0-9a-zA-Z]{32-40}'''
tags = ["key", "Github"]
[[rules]]
@@ -156,6 +156,11 @@ title = "gitleaks config"
regex = '''shppa_[a-fA-F0-9]{32}'''
tags = ["key", "Shopify"]
[[rules]]
description = "PyPI upload token"
regex = '''pypi-AgEIcHlwaS5vcmc[A-Za-z0-9-_]{50,1000}'''
tags = ["key", "pypi"]
[allowlist]
description = "Allowlisted files"
files = ['''^\.?gitleaks.toml$''',