Skip to content

Commit 0f427b3

Browse files
dylanTruffledxa4481dustin-decker
authored
Adding Descriptions (#3258)
* adding AI generated descriptions of the key types and their capabilities * removing empty file * Update abbysale.go * update to interface * fixes * fix * small cleanup --------- Co-authored-by: Dylan Ayrey <[email protected]> Co-authored-by: Dustin Decker <[email protected]>
1 parent 50ff17b commit 0f427b3

File tree

842 files changed

+3530
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

842 files changed

+3530
-239
lines changed

go.sum

Lines changed: 4 additions & 98 deletions
Large diffs are not rendered by default.

pkg/custom_detectors/custom_detectors.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,3 +254,12 @@ func permutateMatches(regexMatches map[string][][]string) []map[string][]string
254254
func (c *CustomRegexWebhook) Type() detectorspb.DetectorType {
255255
return detectorspb.DetectorType_CustomRegex
256256
}
257+
258+
const defaultDescription = "This is a customer-defined detector with no description provided."
259+
260+
func (c *CustomRegexWebhook) Description() string {
261+
if c.GetDescription() == "" {
262+
return defaultDescription
263+
}
264+
return c.GetDescription()
265+
}

pkg/detectors/abbysale/abbysale.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,7 @@ func verifyAbbysale(ctx context.Context, client *http.Client, resMatch string) (
9898
func (s Scanner) Type() detectorspb.DetectorType {
9999
return detectorspb.DetectorType_Abbysale
100100
}
101+
102+
func (s Scanner) Description() string {
103+
return "Abbysale is a service offering various API functionalities for marketing automation and services such as images and ad campaigns. Abbysale API keys can be used to access and interact with this data."
104+
}

pkg/detectors/abstract/abstract.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,7 @@ func verifyAbstract(ctx context.Context, client *http.Client, resMatch string) (
9898
func (s Scanner) Type() detectorspb.DetectorType {
9999
return detectorspb.DetectorType_Abstract
100100
}
101+
102+
func (s Scanner) Description() string {
103+
return "Abstract API provides various services including exchange rates. The API keys can be used to access these services and retrieve data."
104+
}

pkg/detectors/abuseipdb/abuseipdb.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,7 @@ func verifyAbuseIPDB(ctx context.Context, client *http.Client, resMatch string)
109109
func (s Scanner) Type() detectorspb.DetectorType {
110110
return detectorspb.DetectorType_AbuseIPDB
111111
}
112+
113+
func (s Scanner) Description() string {
114+
return "AbuseIPDB is a project dedicated to helping combat the spread of hackers, spammers, and abusive activity on the internet. AbuseIPDB API keys can be used to report and check IP addresses for abusive activities."
115+
}

pkg/detectors/accuweather/accuweather.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,7 @@ func verifyAccuweather(ctx context.Context, client *http.Client, resMatch string
9898
func (s Scanner) Type() detectorspb.DetectorType {
9999
return detectorspb.DetectorType_Accuweather
100100
}
101+
102+
func (s Scanner) Description() string {
103+
return "Accuweather is a weather forecasting service. Accuweather API keys can be used to access weather data and forecasts."
104+
}

pkg/detectors/adafruitio/adafruitio.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,7 @@ func verifyAdafruitIO(ctx context.Context, client *http.Client, resMatch string)
9797
func (s Scanner) Type() detectorspb.DetectorType {
9898
return detectorspb.DetectorType_AdafruitIO
9999
}
100+
101+
func (s Scanner) Description() string {
102+
return "Adafruit IO is a cloud service used for IoT applications. Adafruit IO keys can be used to access and control data and devices connected to the platform."
103+
}

pkg/detectors/adobeio/adobeio.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
8383
func (s Scanner) Type() detectorspb.DetectorType {
8484
return detectorspb.DetectorType_AdobeIO
8585
}
86+
87+
func (s Scanner) Description() string {
88+
return "AdobeIO provides APIs for integrating with Adobe services. These credentials can be used to access Adobe services and data."
89+
}

pkg/detectors/adzuna/adzuna.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,7 @@ func verifyAdzuna(ctx context.Context, client *http.Client, resMatch, resIdMatch
108108
func (s Scanner) Type() detectorspb.DetectorType {
109109
return detectorspb.DetectorType_Adzuna
110110
}
111+
112+
func (s Scanner) Description() string {
113+
return "Adzuna is a job search engine used to find job listings. Adzuna API keys can be used to access job listing data."
114+
}

pkg/detectors/aeroworkflow/aeroworkflow.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,7 @@ func verifyAeroworkflow(ctx context.Context, client *http.Client, resMatch, resI
113113
func (s Scanner) Type() detectorspb.DetectorType {
114114
return detectorspb.DetectorType_Aeroworkflow
115115
}
116+
117+
func (s Scanner) Description() string {
118+
return "Aeroworkflow is a service for managing workflows. Aeroworkflow API keys and Account IDs can be used to access and manage workflows."
119+
}

0 commit comments

Comments
 (0)