Skip to content

Commit 3a2f7bf

Browse files
authored
Add additional keyword based to detector based on how webhook is implemented
1 parent 0f7ec8c commit 3a2f7bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/detectors/rootlywebhook/rootlywebhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var (
2121
client = common.SaneHttpClient()
2222

2323
// Rootly webhook tokens are 64 character hex strings
24-
keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"rootly", "webhook"}) + `\b([a-f0-9]{64})\b`)
24+
keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"rootly", "webhook", "Authorization"}) + `\b([a-f0-9]{64})\b`)
2525
)
2626

2727
// Keywords are used for efficiently pre-filtering chunks.

0 commit comments

Comments
 (0)