Ver Fonte

Merge pull request #133 from akerl/fix/slack-tokens

fix slack token format
Zachary Rice há 7 anos atrás
pai
commit
14d77f59d4
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      gitleaks.toml
  2. 1 1
      main.go

+ 1 - 1
gitleaks.toml

@@ -28,7 +28,7 @@ description = "PGP"
 regex = '''-----BEGIN PGP PRIVATE KEY BLOCK-----'''
 regex = '''-----BEGIN PGP PRIVATE KEY BLOCK-----'''
 [[regexes]]
 [[regexes]]
 description = "Slack token"
 description = "Slack token"
-regex = '''xoxo[bapr]-.*'''
+regex = '''xox[baprs]-.*'''
 
 
 [whitelist]
 [whitelist]
 regexes = [
 regexes = [

+ 1 - 1
main.go

@@ -173,7 +173,7 @@ description = "Github"
 regex = '''(?i)github.*['\"][0-9a-zA-Z]{35,40}['\"]'''
 regex = '''(?i)github.*['\"][0-9a-zA-Z]{35,40}['\"]'''
 [[regexes]]
 [[regexes]]
 description = "Slack"
 description = "Slack"
-regex = '''xoxo[bapr]-.*'''
+regex = '''xox[baprs]-.*'''
 [[regexes]]
 [[regexes]]
 description = "Telegram"
 description = "Telegram"
 regex = '''\d{5,}:A[a-zA-Z0-9_\-]{34,34}'''
 regex = '''\d{5,}:A[a-zA-Z0-9_\-]{34,34}'''