Skip to content

Commit d794f9b

Browse files
fixed shopify detector line number (#4149)
1 parent fa703ea commit d794f9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/detectors/shopify/shopify.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
5353
Raw: []byte(key + domainRes),
5454
}
5555

56+
// set key as the primary secret for engine to find the line number
57+
s1.SetPrimarySecretValue(key)
58+
5659
if verify {
5760
req, err := http.NewRequestWithContext(ctx, "GET", "https://"+domainRes+"/admin/oauth/access_scopes.json", nil)
5861
if err != nil {

0 commit comments

Comments
 (0)