mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 04:04:25 +01:00
Pypi GitHub rules (#546)
* adding pypi and basic azure rules * Adding new github format
This commit is contained in:
1 parent
144362b972
commit
190877a24b
1 file changed
+7
-2
+7
-2
@@ -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$''',
|
||||
|
||||
Reference in new issue
Block a user