add description to salad (#3397)

This commit is contained in:
Zachary Rice 2024-10-11 11:55:38 -05:00 committed by GitHub
parent 58485f3395
commit 3ac63414a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,6 +31,10 @@ func (s Scanner) Keywords() []string {
return []string{"salad_cloud_"}
}
func (s Scanner) Description() string {
return "Salad-API-Key detector"
}
// FromData will find and optionally verify SaladCloud API Key secrets in a given set of bytes.
func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results []detectors.Result, err error) {
dataStr := string(data)