소스 검색

Merge pull request #295 from petegallagher/sendgrid

Adding regex for SendGrid API keys
Zachary Rice 6 년 전
부모
커밋
23568cc0ba
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      config/default.go

+ 5 - 0
config/default.go

@@ -102,6 +102,11 @@ title = "gitleaks config"
 	regex = '''sk_live_[0-9a-z]{32}'''
 	regex = '''sk_live_[0-9a-z]{32}'''
 	tags = ["key", "Picatic"]
 	tags = ["key", "Picatic"]
 
 
+[[rules]]
+	description = "SendGrid API Key"
+	regex = '''SG\.[\w_]{16,32}\.[\w_]{16,64}'''
+	tags = ["key", "SendGrid"]
+
 [[rules]]
 [[rules]]
 	description = "Slack Webhook"
 	description = "Slack Webhook"
 	regex = '''https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}'''
 	regex = '''https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}'''