Skip to content

Commit b660617

Browse files
Merge branch 'main' into fix/github-src-enterprise-url
2 parents f013bcf + 75056d9 commit b660617

File tree

4 files changed

+556
-462
lines changed

4 files changed

+556
-462
lines changed

pkg/detectors/browserstack/browserstack.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
regexp "github.com/wasilibs/go-re2"
1212
"golang.org/x/net/publicsuffix"
1313

14+
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
1415
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
1516
"github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"
1617
)
@@ -93,6 +94,8 @@ func verifyBrowserStackCredentials(ctx context.Context, client *http.Client, use
9394
return false, err
9495
}
9596
req.Header.Add("Content-Type", "application/json")
97+
req.Header.Add("User-Agent", common.UserAgent())
98+
9699
req.SetBasicAuth(username, accessKey)
97100

98101
res, err := client.Do(req)

0 commit comments

Comments
 (0)