Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
chore: fix feature support to append user agent suffix (#4520)
dmdhrumilmistryfa512d508471
diff --git a/pkg/detectors/browserstack/browserstack.go b/pkg/detectors/browserstack/browserstack.goindex b54e17b2a..b2ca5beb9 100644--- a/pkg/detectors/browserstack/browserstack.go+++ b/pkg/detectors/browserstack/browserstack.go@@ -11,6 +11,7 @@ import (regexp "github.com/wasilibs/go-re2""golang.org/x/net/publicsuffix"+ "github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb")@@ -93,6 +94,8 @@ func verifyBrowserStackCredentials(ctx context.Context, client *http.Client, usereturn false, err}req.Header.Add("Content-Type", "application/json")+ req.Header.Add("User-Agent", common.UserAgent())+req.SetBasicAuth(username, accessKey)res, err := client.Do(req)