Преглед изворни кода

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}'''
 	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}'''