From 7bd1fb1dccbefff7e3c79f4eac229f36300362fd Mon Sep 17 00:00:00 2001 From: ahrav Date: Wed, 1 May 2024 09:41:43 -0700 Subject: [PATCH] update imports (#2772) --- .../azuredevopspersonalaccesstoken.go | 3 ++- pkg/detectors/azurefunctionkey/azurefunctionkey.go | 3 ++- pkg/detectors/googleoauth2/googleoauth2_access_token.go | 3 ++- pkg/detectors/maxmindlicense/v2/maxmindlicense_v2.go | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pkg/detectors/azuredevopspersonalaccesstoken/azuredevopspersonalaccesstoken.go b/pkg/detectors/azuredevopspersonalaccesstoken/azuredevopspersonalaccesstoken.go index 98e5bb98b779..bcad83c01757 100644 --- a/pkg/detectors/azuredevopspersonalaccesstoken/azuredevopspersonalaccesstoken.go +++ b/pkg/detectors/azuredevopspersonalaccesstoken/azuredevopspersonalaccesstoken.go @@ -4,9 +4,10 @@ import ( "context" "fmt" "net/http" - "regexp" "strings" + regexp "github.com/wasilibs/go-re2" + "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" diff --git a/pkg/detectors/azurefunctionkey/azurefunctionkey.go b/pkg/detectors/azurefunctionkey/azurefunctionkey.go index dad5015a1aae..fb994cd31756 100644 --- a/pkg/detectors/azurefunctionkey/azurefunctionkey.go +++ b/pkg/detectors/azurefunctionkey/azurefunctionkey.go @@ -4,9 +4,10 @@ import ( "context" "fmt" "net/http" - "regexp" "strings" + regexp "github.com/wasilibs/go-re2" + "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" diff --git a/pkg/detectors/googleoauth2/googleoauth2_access_token.go b/pkg/detectors/googleoauth2/googleoauth2_access_token.go index b84795b912a4..af36702d93cd 100644 --- a/pkg/detectors/googleoauth2/googleoauth2_access_token.go +++ b/pkg/detectors/googleoauth2/googleoauth2_access_token.go @@ -6,10 +6,11 @@ import ( "fmt" "io" "net/http" - "regexp" "strconv" "time" + regexp "github.com/wasilibs/go-re2" + "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" diff --git a/pkg/detectors/maxmindlicense/v2/maxmindlicense_v2.go b/pkg/detectors/maxmindlicense/v2/maxmindlicense_v2.go index e6209a0d1de0..35a75b844cb9 100644 --- a/pkg/detectors/maxmindlicense/v2/maxmindlicense_v2.go +++ b/pkg/detectors/maxmindlicense/v2/maxmindlicense_v2.go @@ -5,9 +5,10 @@ import ( "fmt" "net/http" "net/url" - "regexp" "strings" + regexp "github.com/wasilibs/go-re2" + "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"