4
0
Эх сурвалжийг харах

Merge pull request #295 from petegallagher/sendgrid

Adding regex for SendGrid API keys
Zachary Rice 6 жил өмнө
parent
commit
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}'''
 	tags = ["key", "Picatic"]
 
+[[rules]]
+	description = "SendGrid API Key"
+	regex = '''SG\.[\w_]{16,32}\.[\w_]{16,64}'''
+	tags = ["key", "SendGrid"]
+
 [[rules]]
 	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}'''