فهرست منبع

Adding regex for SendGrid API keys

Peter Gallagher 6 سال پیش
والد
کامیت
dba1ef6104
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}'''