From d794f9b60e56223fedab2ff325fe378338ae1eac Mon Sep 17 00:00:00 2001 From: Kashif Khan <70996046+kashifkhan0771@users.noreply.github.com> Date: Tue, 20 May 2025 10:34:09 +0500 Subject: [PATCH] fixed shopify detector line number (#4149) --- pkg/detectors/shopify/shopify.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/detectors/shopify/shopify.go b/pkg/detectors/shopify/shopify.go index 08a29d9bb..bf47dc6b8 100644 --- a/pkg/detectors/shopify/shopify.go +++ b/pkg/detectors/shopify/shopify.go @@ -53,6 +53,9 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result Raw: []byte(key + domainRes), } + // set key as the primary secret for engine to find the line number + s1.SetPrimarySecretValue(key) + if verify { req, err := http.NewRequestWithContext(ctx, "GET", "https://"+domainRes+"/admin/oauth/access_scopes.json", nil) if err != nil {