Skip to content

Commit

Permalink
increase digitalocean token sensitivity (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin-decker committed Oct 26, 2022
1 parent 4f83dd8 commit ca8a5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/detectors/digitaloceantoken/digitaloceantoken.go
Expand Up @@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)
var (
client = common.SaneHttpClient()

keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"digitalocean"}) + `\b([A-Za-z0-9_-]{64})\b`)
keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ocean", "do"}) + `\b([A-Za-z0-9_-]{64})\b`)
)

// Keywords are used for efficiently pre-filtering chunks.
Expand Down

0 comments on commit ca8a5ef

Please sign in to comment.