mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
* Issue #980: Add support for Telegram Bot API Token * Replace test with random bot_id length by tests with fixed one. Add tests for the corner cases. Co-authored-by: Alex Goncharov <b4bay@users.noreply.github.com>
This commit is contained in:
1 parent
3f0293dab0
commit
fc98cbf159
3 files changed
+67
No files matched your search
@@ -2585,6 +2585,15 @@ keywords = [
|
||||
"sumo",
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
description = "Telegram Bot API Token"
|
||||
id = "telegram-bot-api-token"
|
||||
regex = '''(?i)(?:^|[^0-9])([0-9]{5,16}:A[a-zA-Z0-9_\-]{34})(?:$|[^a-zA-Z0-9_\-])'''
|
||||
secretGroup = 1
|
||||
keywords = [
|
||||
"telegram","api","bot","token","url",
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
description = "Travis CI Access Token"
|
||||
id = "travisci-access-token"
|
||||
|
||||
Reference in new issue
Block a user