diff --git a/pkg/custom_detectors/custom_detectors.go b/pkg/custom_detectors/custom_detectors.go index 4e6b8feea396c..a36f12d8746ec 100644 --- a/pkg/custom_detectors/custom_detectors.go +++ b/pkg/custom_detectors/custom_detectors.go @@ -2,13 +2,13 @@ package custom_detectors import ( "bytes" - "context" "encoding/json" "net/http" "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/custom_detectorspb" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" diff --git a/pkg/detectors/abbysale/abbysale.go b/pkg/detectors/abbysale/abbysale.go index f71dfd76bb37b..8183f3d48fdb8 100644 --- a/pkg/detectors/abbysale/abbysale.go +++ b/pkg/detectors/abbysale/abbysale.go @@ -1,12 +1,12 @@ package abbysale import ( - "context" "net/http" "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" ) diff --git a/pkg/detectors/abbysale/abbysale_test.go b/pkg/detectors/abbysale/abbysale_test.go index d45feadd4db4b..50e91ffd013a3 100644 --- a/pkg/detectors/abbysale/abbysale_test.go +++ b/pkg/detectors/abbysale/abbysale_test.go @@ -4,12 +4,14 @@ package abbysale import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/abstract/abstract.go b/pkg/detectors/abstract/abstract.go index 5cdba22bba06c..3dc3391c3ed2b 100644 --- a/pkg/detectors/abstract/abstract.go +++ b/pkg/detectors/abstract/abstract.go @@ -1,12 +1,13 @@ package abstract import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/abstract/abstract_test.go b/pkg/detectors/abstract/abstract_test.go index 69f205061f14a..e8fcadd93803a 100644 --- a/pkg/detectors/abstract/abstract_test.go +++ b/pkg/detectors/abstract/abstract_test.go @@ -4,11 +4,12 @@ package abstract import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/abuseipdb/abuseipdb.go b/pkg/detectors/abuseipdb/abuseipdb.go index bcfda4826c627..b2da7dc6ae316 100644 --- a/pkg/detectors/abuseipdb/abuseipdb.go +++ b/pkg/detectors/abuseipdb/abuseipdb.go @@ -1,9 +1,10 @@ package abuseipdb import ( - "context" "io" "net/http" + + "github.com/trufflesecurity/trufflehog/v3/pkg/context" // "log" "regexp" "strings" diff --git a/pkg/detectors/abuseipdb/abuseipdb_test.go b/pkg/detectors/abuseipdb/abuseipdb_test.go index 1f83936a67391..ad741762dfd83 100644 --- a/pkg/detectors/abuseipdb/abuseipdb_test.go +++ b/pkg/detectors/abuseipdb/abuseipdb_test.go @@ -4,12 +4,14 @@ package abuseipdb import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/accuweather/accuweather.go b/pkg/detectors/accuweather/accuweather.go index bf15c6d124753..b2a5d0d99e40a 100644 --- a/pkg/detectors/accuweather/accuweather.go +++ b/pkg/detectors/accuweather/accuweather.go @@ -1,11 +1,12 @@ package accuweather import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/accuweather/accuweather_test.go b/pkg/detectors/accuweather/accuweather_test.go index 8b8d87330ebbd..041f5d546bbeb 100644 --- a/pkg/detectors/accuweather/accuweather_test.go +++ b/pkg/detectors/accuweather/accuweather_test.go @@ -4,12 +4,14 @@ package accuweather import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/adafruitio/adafruitio.go b/pkg/detectors/adafruitio/adafruitio.go index f0c3271b353e7..57a49dd01e332 100644 --- a/pkg/detectors/adafruitio/adafruitio.go +++ b/pkg/detectors/adafruitio/adafruitio.go @@ -1,11 +1,12 @@ package adafruitio import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/adafruitio/adafruitio_test.go b/pkg/detectors/adafruitio/adafruitio_test.go index 92d461b7a3771..ece968ef418f8 100644 --- a/pkg/detectors/adafruitio/adafruitio_test.go +++ b/pkg/detectors/adafruitio/adafruitio_test.go @@ -4,11 +4,12 @@ package adafruitio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/adobeio/adobeio.go b/pkg/detectors/adobeio/adobeio.go index 2d9e24f1c3cc1..4a3a5ba4a7b2d 100644 --- a/pkg/detectors/adobeio/adobeio.go +++ b/pkg/detectors/adobeio/adobeio.go @@ -1,11 +1,12 @@ package adobeio import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/adobeio/adobeio_test.go b/pkg/detectors/adobeio/adobeio_test.go index a65d0035f229f..87d5ccc148c32 100644 --- a/pkg/detectors/adobeio/adobeio_test.go +++ b/pkg/detectors/adobeio/adobeio_test.go @@ -4,12 +4,14 @@ package adobeio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/adzuna/adzuna.go b/pkg/detectors/adzuna/adzuna.go index b95862fc62007..b310a4f3d5dbe 100644 --- a/pkg/detectors/adzuna/adzuna.go +++ b/pkg/detectors/adzuna/adzuna.go @@ -1,12 +1,13 @@ package adzuna import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/adzuna/adzuna_test.go b/pkg/detectors/adzuna/adzuna_test.go index 6a804fc7b22b9..e3acf7c151b5e 100644 --- a/pkg/detectors/adzuna/adzuna_test.go +++ b/pkg/detectors/adzuna/adzuna_test.go @@ -4,12 +4,14 @@ package adzuna import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/aeroworkflow/aeroworkflow.go b/pkg/detectors/aeroworkflow/aeroworkflow.go index 7b905d7601b4f..e202670d816cf 100644 --- a/pkg/detectors/aeroworkflow/aeroworkflow.go +++ b/pkg/detectors/aeroworkflow/aeroworkflow.go @@ -1,11 +1,12 @@ package aeroworkflow import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/aeroworkflow/aeroworkflow_test.go b/pkg/detectors/aeroworkflow/aeroworkflow_test.go index 404f0ddaead98..77ff642cab80d 100644 --- a/pkg/detectors/aeroworkflow/aeroworkflow_test.go +++ b/pkg/detectors/aeroworkflow/aeroworkflow_test.go @@ -4,11 +4,12 @@ package aeroworkflow import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/agora/agora.go b/pkg/detectors/agora/agora.go index 07bb106e66c29..ac36336e9be8c 100644 --- a/pkg/detectors/agora/agora.go +++ b/pkg/detectors/agora/agora.go @@ -1,11 +1,12 @@ package agora import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/agora/agora_test.go b/pkg/detectors/agora/agora_test.go index 2e8329aed4f03..505886ecf960e 100644 --- a/pkg/detectors/agora/agora_test.go +++ b/pkg/detectors/agora/agora_test.go @@ -4,12 +4,14 @@ package agora import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/aha/aha.go b/pkg/detectors/aha/aha.go index 3007853d18b42..a748b71d8d5b5 100644 --- a/pkg/detectors/aha/aha.go +++ b/pkg/detectors/aha/aha.go @@ -1,12 +1,13 @@ package aha import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/aha/aha_test.go b/pkg/detectors/aha/aha_test.go index 0ecdf5ead7fe5..0227038adb57c 100644 --- a/pkg/detectors/aha/aha_test.go +++ b/pkg/detectors/aha/aha_test.go @@ -4,11 +4,12 @@ package aha import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go b/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go index 97342081ce451..b41de6300ed99 100644 --- a/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go +++ b/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go @@ -1,11 +1,12 @@ package airbrakeprojectkey import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/airbrakeprojectkey/airbrakeprojectkey_test.go b/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey_test.go index 3ce173571fcf3..1a7cb0030f3af 100644 --- a/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey_test.go +++ b/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey_test.go @@ -4,12 +4,14 @@ package airbrakeprojectkey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go b/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go index 06e260696788f..fdc37aca9789e 100644 --- a/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go +++ b/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go @@ -1,11 +1,12 @@ package airbrakeuserkey import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/airbrakeuserkey/airbrakeuserkey_test.go b/pkg/detectors/airbrakeuserkey/airbrakeuserkey_test.go index 462603268098a..3aff7394f3438 100644 --- a/pkg/detectors/airbrakeuserkey/airbrakeuserkey_test.go +++ b/pkg/detectors/airbrakeuserkey/airbrakeuserkey_test.go @@ -4,12 +4,14 @@ package airbrakeuserkey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/airship/airship.go b/pkg/detectors/airship/airship.go index 4ee0d00b17b5f..cbd2fd4bf2414 100644 --- a/pkg/detectors/airship/airship.go +++ b/pkg/detectors/airship/airship.go @@ -1,12 +1,13 @@ package airship import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/airship/airship_test.go b/pkg/detectors/airship/airship_test.go index 75f3263db08d0..6931481eb9226 100644 --- a/pkg/detectors/airship/airship_test.go +++ b/pkg/detectors/airship/airship_test.go @@ -4,12 +4,14 @@ package airship import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/airtableapikey/airtableapikey.go b/pkg/detectors/airtableapikey/airtableapikey.go index fea0d844c39d6..6c9038b22f5d5 100644 --- a/pkg/detectors/airtableapikey/airtableapikey.go +++ b/pkg/detectors/airtableapikey/airtableapikey.go @@ -1,13 +1,14 @@ package airtableapikey import ( - "context" "encoding/json" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/airtableapikey/airtableapikey_test.go b/pkg/detectors/airtableapikey/airtableapikey_test.go index 6c3e962ede3aa..ebad43e2ddf93 100644 --- a/pkg/detectors/airtableapikey/airtableapikey_test.go +++ b/pkg/detectors/airtableapikey/airtableapikey_test.go @@ -4,15 +4,17 @@ package airtableapikey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" + "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" ) diff --git a/pkg/detectors/airvisual/airvisual.go b/pkg/detectors/airvisual/airvisual.go index 4a4ccf46b6822..0f323b827c436 100644 --- a/pkg/detectors/airvisual/airvisual.go +++ b/pkg/detectors/airvisual/airvisual.go @@ -1,12 +1,13 @@ package airvisual import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/airvisual/airvisual_test.go b/pkg/detectors/airvisual/airvisual_test.go index cef7e9488e084..a1f53554559bb 100644 --- a/pkg/detectors/airvisual/airvisual_test.go +++ b/pkg/detectors/airvisual/airvisual_test.go @@ -4,12 +4,14 @@ package airvisual import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/aiven/aiven.go b/pkg/detectors/aiven/aiven.go index 9ed94729b6928..a256c086001cc 100644 --- a/pkg/detectors/aiven/aiven.go +++ b/pkg/detectors/aiven/aiven.go @@ -1,12 +1,13 @@ package aiven import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/aiven/aiven_test.go b/pkg/detectors/aiven/aiven_test.go index 69ba404cad65c..51b9f791335b1 100644 --- a/pkg/detectors/aiven/aiven_test.go +++ b/pkg/detectors/aiven/aiven_test.go @@ -4,12 +4,14 @@ package aiven import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/alchemy/alchemy.go b/pkg/detectors/alchemy/alchemy.go index 2e806bdbcdb5d..77c279972dd50 100644 --- a/pkg/detectors/alchemy/alchemy.go +++ b/pkg/detectors/alchemy/alchemy.go @@ -1,12 +1,13 @@ package alchemy import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/alchemy/alchemy_test.go b/pkg/detectors/alchemy/alchemy_test.go index 6bf24a625abf7..7885192d54f33 100644 --- a/pkg/detectors/alchemy/alchemy_test.go +++ b/pkg/detectors/alchemy/alchemy_test.go @@ -4,11 +4,12 @@ package alchemy import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/alconost/alconost.go b/pkg/detectors/alconost/alconost.go index 9ce7746cdd1c5..ba28c72921702 100644 --- a/pkg/detectors/alconost/alconost.go +++ b/pkg/detectors/alconost/alconost.go @@ -1,13 +1,14 @@ package alconost import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/alconost/alconost_test.go b/pkg/detectors/alconost/alconost_test.go index 96551e827b8cf..14f73170057bf 100644 --- a/pkg/detectors/alconost/alconost_test.go +++ b/pkg/detectors/alconost/alconost_test.go @@ -4,12 +4,14 @@ package alconost import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/alegra/alegra.go b/pkg/detectors/alegra/alegra.go index 681677f4c0562..e68dbd07e5cdd 100644 --- a/pkg/detectors/alegra/alegra.go +++ b/pkg/detectors/alegra/alegra.go @@ -1,11 +1,12 @@ package alegra import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/alegra/alegra_test.go b/pkg/detectors/alegra/alegra_test.go index 31fe6fb58bdd7..fc480683ca530 100644 --- a/pkg/detectors/alegra/alegra_test.go +++ b/pkg/detectors/alegra/alegra_test.go @@ -4,12 +4,14 @@ package alegra import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/aletheiaapi/aletheiaapi.go b/pkg/detectors/aletheiaapi/aletheiaapi.go index 7e3e987c74aa1..32a29bd3767b8 100644 --- a/pkg/detectors/aletheiaapi/aletheiaapi.go +++ b/pkg/detectors/aletheiaapi/aletheiaapi.go @@ -1,12 +1,13 @@ package aletheiaapi import ( - "context" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/aletheiaapi/aletheiaapi_test.go b/pkg/detectors/aletheiaapi/aletheiaapi_test.go index 32b39a124fc87..12a4366a6e954 100644 --- a/pkg/detectors/aletheiaapi/aletheiaapi_test.go +++ b/pkg/detectors/aletheiaapi/aletheiaapi_test.go @@ -4,12 +4,14 @@ package aletheiaapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/algoliaadminkey/algoliaadminkey.go b/pkg/detectors/algoliaadminkey/algoliaadminkey.go index bd5c435078773..ac1ea2afcf88e 100644 --- a/pkg/detectors/algoliaadminkey/algoliaadminkey.go +++ b/pkg/detectors/algoliaadminkey/algoliaadminkey.go @@ -1,11 +1,12 @@ package algoliaadminkey import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/algoliaadminkey/algoliaadminkey_test.go b/pkg/detectors/algoliaadminkey/algoliaadminkey_test.go index 3a6985580f32a..7fd3d21567224 100644 --- a/pkg/detectors/algoliaadminkey/algoliaadminkey_test.go +++ b/pkg/detectors/algoliaadminkey/algoliaadminkey_test.go @@ -4,12 +4,14 @@ package algoliaadminkey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/alibaba/alibaba.go b/pkg/detectors/alibaba/alibaba.go index 3dd5ce0efa917..1fc10fbf23034 100644 --- a/pkg/detectors/alibaba/alibaba.go +++ b/pkg/detectors/alibaba/alibaba.go @@ -1,7 +1,6 @@ package alibaba import ( - "context" "crypto/hmac" "crypto/rand" "crypto/sha1" @@ -13,6 +12,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/alibaba/alibaba_test.go b/pkg/detectors/alibaba/alibaba_test.go index f6cf9bb4d190c..d9f0c70c483d0 100644 --- a/pkg/detectors/alibaba/alibaba_test.go +++ b/pkg/detectors/alibaba/alibaba_test.go @@ -4,12 +4,14 @@ package alibaba import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/alienvault/alienvault.go b/pkg/detectors/alienvault/alienvault.go index b1c434328114c..e5c6a9b3641db 100644 --- a/pkg/detectors/alienvault/alienvault.go +++ b/pkg/detectors/alienvault/alienvault.go @@ -1,11 +1,12 @@ package alienvault import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/alienvault/alienvault_test.go b/pkg/detectors/alienvault/alienvault_test.go index afff2582ad0fb..875faae6cfaae 100644 --- a/pkg/detectors/alienvault/alienvault_test.go +++ b/pkg/detectors/alienvault/alienvault_test.go @@ -4,12 +4,14 @@ package alienvault import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/allsports/allsports.go b/pkg/detectors/allsports/allsports.go index 2250e76908d0e..b746e10cb41ef 100644 --- a/pkg/detectors/allsports/allsports.go +++ b/pkg/detectors/allsports/allsports.go @@ -1,9 +1,10 @@ package allsports import ( - "context" "io" "net/http" + + "github.com/trufflesecurity/trufflehog/v3/pkg/context" // "log" "regexp" "strings" diff --git a/pkg/detectors/allsports/allsports_test.go b/pkg/detectors/allsports/allsports_test.go index edf6454fc8b11..08aee376a8314 100644 --- a/pkg/detectors/allsports/allsports_test.go +++ b/pkg/detectors/allsports/allsports_test.go @@ -4,12 +4,14 @@ package allsports import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/amadeus/amadeus.go b/pkg/detectors/amadeus/amadeus.go index 2682f154fe52c..6892aec3c0912 100644 --- a/pkg/detectors/amadeus/amadeus.go +++ b/pkg/detectors/amadeus/amadeus.go @@ -1,12 +1,13 @@ package amadeus import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/amadeus/amadeus_test.go b/pkg/detectors/amadeus/amadeus_test.go index 0f87057ca4914..e08a529fac726 100644 --- a/pkg/detectors/amadeus/amadeus_test.go +++ b/pkg/detectors/amadeus/amadeus_test.go @@ -4,12 +4,14 @@ package amadeus import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ambee/ambee.go b/pkg/detectors/ambee/ambee.go index d35ee2d559875..e82784cc6a4d6 100644 --- a/pkg/detectors/ambee/ambee.go +++ b/pkg/detectors/ambee/ambee.go @@ -1,11 +1,12 @@ package ambee import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ambee/ambee_test.go b/pkg/detectors/ambee/ambee_test.go index 6ff21de9dc28d..49c531dfd02e5 100644 --- a/pkg/detectors/ambee/ambee_test.go +++ b/pkg/detectors/ambee/ambee_test.go @@ -4,12 +4,14 @@ package ambee import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/amplitudeapikey/amplitudeapikey.go b/pkg/detectors/amplitudeapikey/amplitudeapikey.go index c39de0da0a2a9..d2da2b1291f48 100644 --- a/pkg/detectors/amplitudeapikey/amplitudeapikey.go +++ b/pkg/detectors/amplitudeapikey/amplitudeapikey.go @@ -1,11 +1,12 @@ package amplitudeapikey import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/amplitudeapikey/amplitudeapikey_test.go b/pkg/detectors/amplitudeapikey/amplitudeapikey_test.go index 9028ed7fb4193..2ba449f843058 100644 --- a/pkg/detectors/amplitudeapikey/amplitudeapikey_test.go +++ b/pkg/detectors/amplitudeapikey/amplitudeapikey_test.go @@ -4,12 +4,14 @@ package amplitudeapikey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/anthropic/anthropic.go b/pkg/detectors/anthropic/anthropic.go index bf4d74d57ce9e..c44481aa65d41 100644 --- a/pkg/detectors/anthropic/anthropic.go +++ b/pkg/detectors/anthropic/anthropic.go @@ -2,13 +2,14 @@ package anthropic import ( "bytes" - "context" "encoding/json" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/anthropic/anthropic_test.go b/pkg/detectors/anthropic/anthropic_test.go index 64713de61c296..07317bdb4dbcb 100644 --- a/pkg/detectors/anthropic/anthropic_test.go +++ b/pkg/detectors/anthropic/anthropic_test.go @@ -4,11 +4,12 @@ package anthropic import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/anypoint/anypoint.go b/pkg/detectors/anypoint/anypoint.go index b501da67357c0..ac9addcf7d4d9 100644 --- a/pkg/detectors/anypoint/anypoint.go +++ b/pkg/detectors/anypoint/anypoint.go @@ -1,12 +1,13 @@ package anypoint import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/anypoint/anypoint_test.go b/pkg/detectors/anypoint/anypoint_test.go index e073314369c3d..138451af3c977 100644 --- a/pkg/detectors/anypoint/anypoint_test.go +++ b/pkg/detectors/anypoint/anypoint_test.go @@ -4,12 +4,14 @@ package anypoint import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apacta/apacta.go b/pkg/detectors/apacta/apacta.go index fea8c0ad26d67..15f1c6ca62334 100644 --- a/pkg/detectors/apacta/apacta.go +++ b/pkg/detectors/apacta/apacta.go @@ -1,12 +1,13 @@ package apacta import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/apacta/apacta_test.go b/pkg/detectors/apacta/apacta_test.go index d80e7f04b6a27..cbbf7458a98a3 100644 --- a/pkg/detectors/apacta/apacta_test.go +++ b/pkg/detectors/apacta/apacta_test.go @@ -4,12 +4,14 @@ package apacta import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/api2cart/api2cart.go b/pkg/detectors/api2cart/api2cart.go index 013b830dca76f..64c42178ffd11 100644 --- a/pkg/detectors/api2cart/api2cart.go +++ b/pkg/detectors/api2cart/api2cart.go @@ -1,7 +1,6 @@ package api2cart import ( - "context" "encoding/json" "fmt" "io" @@ -9,6 +8,8 @@ import ( "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/api2cart/api2cart_test.go b/pkg/detectors/api2cart/api2cart_test.go index f0243d52bcc94..aefd10fd38faf 100644 --- a/pkg/detectors/api2cart/api2cart_test.go +++ b/pkg/detectors/api2cart/api2cart_test.go @@ -4,12 +4,14 @@ package api2cart import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apideck/apideck.go b/pkg/detectors/apideck/apideck.go index 5bac10c5df30b..80d6a69eea14c 100644 --- a/pkg/detectors/apideck/apideck.go +++ b/pkg/detectors/apideck/apideck.go @@ -1,12 +1,13 @@ package apideck import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/apideck/apideck_test.go b/pkg/detectors/apideck/apideck_test.go index 30eb2fa7c989f..defd1ce522b5f 100644 --- a/pkg/detectors/apideck/apideck_test.go +++ b/pkg/detectors/apideck/apideck_test.go @@ -4,12 +4,14 @@ package apideck import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apiflash/apiflash.go b/pkg/detectors/apiflash/apiflash.go index 65209b7c86587..c9560d9009bc2 100644 --- a/pkg/detectors/apiflash/apiflash.go +++ b/pkg/detectors/apiflash/apiflash.go @@ -1,12 +1,13 @@ package apiflash import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/apiflash/apiflash_test.go b/pkg/detectors/apiflash/apiflash_test.go index c457a47225f20..e459bab211cb9 100644 --- a/pkg/detectors/apiflash/apiflash_test.go +++ b/pkg/detectors/apiflash/apiflash_test.go @@ -4,12 +4,14 @@ package apiflash import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apifonica/apifonica.go b/pkg/detectors/apifonica/apifonica.go index e47e24b5622df..b9ae70cbaac96 100644 --- a/pkg/detectors/apifonica/apifonica.go +++ b/pkg/detectors/apifonica/apifonica.go @@ -1,13 +1,14 @@ package apifonica import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/apifonica/apifonica_test.go b/pkg/detectors/apifonica/apifonica_test.go index 8df2c4cb50a8e..2ae6c072a2e11 100644 --- a/pkg/detectors/apifonica/apifonica_test.go +++ b/pkg/detectors/apifonica/apifonica_test.go @@ -4,12 +4,14 @@ package apifonica import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apify/apify.go b/pkg/detectors/apify/apify.go index e1e4361b44510..e9d311e269281 100644 --- a/pkg/detectors/apify/apify.go +++ b/pkg/detectors/apify/apify.go @@ -1,11 +1,12 @@ package apify import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/apify/apify_test.go b/pkg/detectors/apify/apify_test.go index 79e8669533587..b82fde5fd8a00 100644 --- a/pkg/detectors/apify/apify_test.go +++ b/pkg/detectors/apify/apify_test.go @@ -4,12 +4,14 @@ package apify import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apilayer/apilayer.go b/pkg/detectors/apilayer/apilayer.go index a0c92f537e3f2..61f9146068cb6 100644 --- a/pkg/detectors/apilayer/apilayer.go +++ b/pkg/detectors/apilayer/apilayer.go @@ -1,11 +1,12 @@ package apilayer import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/apilayer/apilayer_test.go b/pkg/detectors/apilayer/apilayer_test.go index e764f3db11b0e..db9cc73574b5e 100644 --- a/pkg/detectors/apilayer/apilayer_test.go +++ b/pkg/detectors/apilayer/apilayer_test.go @@ -1,12 +1,14 @@ package apilayer import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apimatic/apimatic.go b/pkg/detectors/apimatic/apimatic.go index 2ea2e070c1a9f..e94098873d8b0 100644 --- a/pkg/detectors/apimatic/apimatic.go +++ b/pkg/detectors/apimatic/apimatic.go @@ -1,12 +1,13 @@ package apimatic import ( - "context" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/apimatic/apimatic_test.go b/pkg/detectors/apimatic/apimatic_test.go index 7995bfc48a67b..6b801c442764a 100644 --- a/pkg/detectors/apimatic/apimatic_test.go +++ b/pkg/detectors/apimatic/apimatic_test.go @@ -4,11 +4,12 @@ package apimatic import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apiscience/apiscience.go b/pkg/detectors/apiscience/apiscience.go index e26e2fd3f524d..42e3cab1fbf4b 100644 --- a/pkg/detectors/apiscience/apiscience.go +++ b/pkg/detectors/apiscience/apiscience.go @@ -1,12 +1,13 @@ package apiscience import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/apiscience/apiscience_test.go b/pkg/detectors/apiscience/apiscience_test.go index 857fcfabb9450..aced111e5981f 100644 --- a/pkg/detectors/apiscience/apiscience_test.go +++ b/pkg/detectors/apiscience/apiscience_test.go @@ -4,12 +4,14 @@ package apiscience import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apitemplate/apitemplate.go b/pkg/detectors/apitemplate/apitemplate.go index d7e403edc2aaa..4661cf07100d1 100644 --- a/pkg/detectors/apitemplate/apitemplate.go +++ b/pkg/detectors/apitemplate/apitemplate.go @@ -1,11 +1,12 @@ package apitemplate import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/apitemplate/apitemplate_test.go b/pkg/detectors/apitemplate/apitemplate_test.go index ff20dbdbd8215..75787d5b87ad9 100644 --- a/pkg/detectors/apitemplate/apitemplate_test.go +++ b/pkg/detectors/apitemplate/apitemplate_test.go @@ -4,12 +4,14 @@ package apitemplate import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apollo/apollo.go b/pkg/detectors/apollo/apollo.go index ef9664943153c..e33860808c3d0 100644 --- a/pkg/detectors/apollo/apollo.go +++ b/pkg/detectors/apollo/apollo.go @@ -1,12 +1,13 @@ package apollo import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/apollo/apollo_test.go b/pkg/detectors/apollo/apollo_test.go index 99ea2c755f97c..fb63b5dfe1597 100644 --- a/pkg/detectors/apollo/apollo_test.go +++ b/pkg/detectors/apollo/apollo_test.go @@ -4,12 +4,14 @@ package apollo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/appcues/appcues.go b/pkg/detectors/appcues/appcues.go index f3d168a54ffc9..d35609adea722 100644 --- a/pkg/detectors/appcues/appcues.go +++ b/pkg/detectors/appcues/appcues.go @@ -1,12 +1,13 @@ package appcues import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/appcues/appcues_test.go b/pkg/detectors/appcues/appcues_test.go index c46205d002dc9..2508f3cb88287 100644 --- a/pkg/detectors/appcues/appcues_test.go +++ b/pkg/detectors/appcues/appcues_test.go @@ -4,12 +4,14 @@ package appcues import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/appfollow/appfollow.go b/pkg/detectors/appfollow/appfollow.go index 7e3e37abf0d75..de75841fba196 100644 --- a/pkg/detectors/appfollow/appfollow.go +++ b/pkg/detectors/appfollow/appfollow.go @@ -1,11 +1,12 @@ package appfollow import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/appfollow/appfollow_test.go b/pkg/detectors/appfollow/appfollow_test.go index fd6e46745cec0..bf9fd4265a17b 100644 --- a/pkg/detectors/appfollow/appfollow_test.go +++ b/pkg/detectors/appfollow/appfollow_test.go @@ -4,12 +4,14 @@ package appfollow import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/appointedd/appointedd.go b/pkg/detectors/appointedd/appointedd.go index 2ce2c0378eb47..a8c9923451d65 100644 --- a/pkg/detectors/appointedd/appointedd.go +++ b/pkg/detectors/appointedd/appointedd.go @@ -1,12 +1,13 @@ package appointedd import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/appointedd/appointedd_test.go b/pkg/detectors/appointedd/appointedd_test.go index 3323032ef4691..5ade50cec7ecc 100644 --- a/pkg/detectors/appointedd/appointedd_test.go +++ b/pkg/detectors/appointedd/appointedd_test.go @@ -1,12 +1,14 @@ package appointedd import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/appoptics/appoptics.go b/pkg/detectors/appoptics/appoptics.go index 90229a97c93e8..a505eef120559 100644 --- a/pkg/detectors/appoptics/appoptics.go +++ b/pkg/detectors/appoptics/appoptics.go @@ -1,13 +1,14 @@ package appoptics import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/appoptics/appoptics_test.go b/pkg/detectors/appoptics/appoptics_test.go index a50a583b039c4..106f1b56a2454 100644 --- a/pkg/detectors/appoptics/appoptics_test.go +++ b/pkg/detectors/appoptics/appoptics_test.go @@ -4,11 +4,12 @@ package appoptics import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/appsynergy/appsynergy.go b/pkg/detectors/appsynergy/appsynergy.go index 57284e2412ba3..4580e187ea9e8 100644 --- a/pkg/detectors/appsynergy/appsynergy.go +++ b/pkg/detectors/appsynergy/appsynergy.go @@ -1,12 +1,13 @@ package appsynergy import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/appsynergy/appsynergy_test.go b/pkg/detectors/appsynergy/appsynergy_test.go index 363af075ed584..f7b45989de596 100644 --- a/pkg/detectors/appsynergy/appsynergy_test.go +++ b/pkg/detectors/appsynergy/appsynergy_test.go @@ -4,12 +4,14 @@ package appsynergy import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apptivo/apptivo.go b/pkg/detectors/apptivo/apptivo.go index 0763e06a93d4a..be0fad2c468a0 100644 --- a/pkg/detectors/apptivo/apptivo.go +++ b/pkg/detectors/apptivo/apptivo.go @@ -1,13 +1,14 @@ package apptivo import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/apptivo/apptivo_test.go b/pkg/detectors/apptivo/apptivo_test.go index d86c9872724eb..cafe80fa29964 100644 --- a/pkg/detectors/apptivo/apptivo_test.go +++ b/pkg/detectors/apptivo/apptivo_test.go @@ -4,12 +4,14 @@ package apptivo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/artifactory/artifactory.go b/pkg/detectors/artifactory/artifactory.go index e0af41f4d659d..ab74375d3e347 100644 --- a/pkg/detectors/artifactory/artifactory.go +++ b/pkg/detectors/artifactory/artifactory.go @@ -1,11 +1,12 @@ package artifactory import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/artifactory/artifactory_test.go b/pkg/detectors/artifactory/artifactory_test.go index c33dcdc300427..941119a371d79 100644 --- a/pkg/detectors/artifactory/artifactory_test.go +++ b/pkg/detectors/artifactory/artifactory_test.go @@ -4,12 +4,14 @@ package artifactory import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/artsy/artsy.go b/pkg/detectors/artsy/artsy.go index 2cd90e0197c79..87302f14be699 100644 --- a/pkg/detectors/artsy/artsy.go +++ b/pkg/detectors/artsy/artsy.go @@ -1,11 +1,12 @@ package artsy import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/artsy/artsy_test.go b/pkg/detectors/artsy/artsy_test.go index bf44ba4967108..d12819b00a49c 100644 --- a/pkg/detectors/artsy/artsy_test.go +++ b/pkg/detectors/artsy/artsy_test.go @@ -4,12 +4,14 @@ package artsy import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/asanaoauth/asanaoauth.go b/pkg/detectors/asanaoauth/asanaoauth.go index e20c07f28385e..ae4059f45a00b 100644 --- a/pkg/detectors/asanaoauth/asanaoauth.go +++ b/pkg/detectors/asanaoauth/asanaoauth.go @@ -1,12 +1,13 @@ package asanaoauth import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/asanaoauth/asanaoauth_test.go b/pkg/detectors/asanaoauth/asanaoauth_test.go index 88f93066d4eaa..4758dc23c2d92 100644 --- a/pkg/detectors/asanaoauth/asanaoauth_test.go +++ b/pkg/detectors/asanaoauth/asanaoauth_test.go @@ -4,12 +4,14 @@ package asanaoauth import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go b/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go index de5a83d7f6f9a..dd36049bd7d55 100644 --- a/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go +++ b/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go @@ -1,12 +1,13 @@ package asanapersonalaccesstoken import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/asanapersonalaccesstoken/asanapersonalaccesstoken_test.go b/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken_test.go index 97a61d918f429..f0effdf735bcc 100644 --- a/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken_test.go +++ b/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken_test.go @@ -4,12 +4,14 @@ package asanapersonalaccesstoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/assemblyai/assemblyai.go b/pkg/detectors/assemblyai/assemblyai.go index 0a55dc376e043..b3350af65880f 100644 --- a/pkg/detectors/assemblyai/assemblyai.go +++ b/pkg/detectors/assemblyai/assemblyai.go @@ -1,11 +1,12 @@ package assemblyai import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/assemblyai/assemblyai_test.go b/pkg/detectors/assemblyai/assemblyai_test.go index f042fb4134696..2497fdd6c8f6e 100644 --- a/pkg/detectors/assemblyai/assemblyai_test.go +++ b/pkg/detectors/assemblyai/assemblyai_test.go @@ -4,12 +4,14 @@ package assemblyai import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/atera/atera.go b/pkg/detectors/atera/atera.go index 8b5d89da16197..a202372d2012c 100644 --- a/pkg/detectors/atera/atera.go +++ b/pkg/detectors/atera/atera.go @@ -1,11 +1,12 @@ package atera import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/atera/atera_test.go b/pkg/detectors/atera/atera_test.go index ee90eafbc080b..64857c9a85066 100644 --- a/pkg/detectors/atera/atera_test.go +++ b/pkg/detectors/atera/atera_test.go @@ -4,12 +4,14 @@ package atera import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/audd/audd.go b/pkg/detectors/audd/audd.go index 439ff4c1714d3..74fa78e32a406 100644 --- a/pkg/detectors/audd/audd.go +++ b/pkg/detectors/audd/audd.go @@ -1,13 +1,14 @@ package audd import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/audd/audd_test.go b/pkg/detectors/audd/audd_test.go index 4f1424150edfe..0f18a64eefb22 100644 --- a/pkg/detectors/audd/audd_test.go +++ b/pkg/detectors/audd/audd_test.go @@ -4,11 +4,12 @@ package audd import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go b/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go index 358ed1aea1203..3bc62e2d6ec5c 100644 --- a/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go +++ b/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go @@ -1,12 +1,13 @@ package auth0managementapitoken import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/auth0managementapitoken/auth0managementapitoken_test.go b/pkg/detectors/auth0managementapitoken/auth0managementapitoken_test.go index 32a0ac059883f..c92ecbd9ab110 100644 --- a/pkg/detectors/auth0managementapitoken/auth0managementapitoken_test.go +++ b/pkg/detectors/auth0managementapitoken/auth0managementapitoken_test.go @@ -4,12 +4,14 @@ package auth0managementapitoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/auth0oauth/auth0oauth.go b/pkg/detectors/auth0oauth/auth0oauth.go index d5db3ad6f0c69..6d1bf58ddd65c 100644 --- a/pkg/detectors/auth0oauth/auth0oauth.go +++ b/pkg/detectors/auth0oauth/auth0oauth.go @@ -1,13 +1,14 @@ package auth0oauth import ( - "context" "io" "net/http" "net/url" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/auth0oauth/auth0oauth_test.go b/pkg/detectors/auth0oauth/auth0oauth_test.go index 5a343487d7acd..5700d333f95a3 100644 --- a/pkg/detectors/auth0oauth/auth0oauth_test.go +++ b/pkg/detectors/auth0oauth/auth0oauth_test.go @@ -4,12 +4,14 @@ package auth0oauth import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/autodesk/autodesk.go b/pkg/detectors/autodesk/autodesk.go index a02ccbf8d28cf..568edee549f9b 100644 --- a/pkg/detectors/autodesk/autodesk.go +++ b/pkg/detectors/autodesk/autodesk.go @@ -1,12 +1,13 @@ package autodesk import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/autodesk/autodesk_test.go b/pkg/detectors/autodesk/autodesk_test.go index d3d90c83c8117..6a05284746286 100644 --- a/pkg/detectors/autodesk/autodesk_test.go +++ b/pkg/detectors/autodesk/autodesk_test.go @@ -4,12 +4,14 @@ package autodesk import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/autoklose/autoklose.go b/pkg/detectors/autoklose/autoklose.go index 77f3f2ac2be6d..199f77b16a2d9 100644 --- a/pkg/detectors/autoklose/autoklose.go +++ b/pkg/detectors/autoklose/autoklose.go @@ -1,7 +1,6 @@ package autoklose import ( - "context" "encoding/json" "fmt" "io" @@ -9,6 +8,8 @@ import ( "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/autoklose/autoklose_test.go b/pkg/detectors/autoklose/autoklose_test.go index 3976ccf761fd3..fabd506d219e1 100644 --- a/pkg/detectors/autoklose/autoklose_test.go +++ b/pkg/detectors/autoklose/autoklose_test.go @@ -4,12 +4,14 @@ package autoklose import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/autopilot/autopilot.go b/pkg/detectors/autopilot/autopilot.go index bf14824e67479..badf4a5f2c2d8 100644 --- a/pkg/detectors/autopilot/autopilot.go +++ b/pkg/detectors/autopilot/autopilot.go @@ -1,11 +1,12 @@ package autopilot import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/autopilot/autopilot_test.go b/pkg/detectors/autopilot/autopilot_test.go index b15e26cd8e27d..3756cdc216d17 100644 --- a/pkg/detectors/autopilot/autopilot_test.go +++ b/pkg/detectors/autopilot/autopilot_test.go @@ -4,12 +4,14 @@ package autopilot import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go b/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go index 9bcda4010a9b3..3b8a2f7b7f42f 100644 --- a/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go +++ b/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go @@ -1,8 +1,8 @@ package avazapersonalaccesstoken import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "net/http" "regexp" "strings" diff --git a/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken_test.go b/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken_test.go index 80664332bfba5..31f6043779437 100644 --- a/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken_test.go +++ b/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken_test.go @@ -4,11 +4,12 @@ package avazapersonalaccesstoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/aviationstack/aviationstack.go b/pkg/detectors/aviationstack/aviationstack.go index f2f251bca6370..9d20840baba25 100644 --- a/pkg/detectors/aviationstack/aviationstack.go +++ b/pkg/detectors/aviationstack/aviationstack.go @@ -1,13 +1,14 @@ package aviationstack import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/aviationstack/aviationstack_test.go b/pkg/detectors/aviationstack/aviationstack_test.go index b716fcd195e70..c7a74b05c9344 100644 --- a/pkg/detectors/aviationstack/aviationstack_test.go +++ b/pkg/detectors/aviationstack/aviationstack_test.go @@ -4,12 +4,14 @@ package aviationstack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/aws/aws.go b/pkg/detectors/aws/aws.go index b29cd83802df7..1a3152235915a 100644 --- a/pkg/detectors/aws/aws.go +++ b/pkg/detectors/aws/aws.go @@ -1,7 +1,6 @@ package aws import ( - "context" "crypto/hmac" "crypto/sha256" "encoding/hex" @@ -12,6 +11,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/aws/aws_test.go b/pkg/detectors/aws/aws_test.go index 8ab69552e0e43..1c113e6c163bf 100644 --- a/pkg/detectors/aws/aws_test.go +++ b/pkg/detectors/aws/aws_test.go @@ -4,14 +4,16 @@ package aws import ( - "context" "crypto/sha256" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" + "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/awssessionkeys/awssessionkey.go b/pkg/detectors/awssessionkeys/awssessionkey.go index 16e87bc7af9d1..3580b39cb220c 100644 --- a/pkg/detectors/awssessionkeys/awssessionkey.go +++ b/pkg/detectors/awssessionkeys/awssessionkey.go @@ -1,7 +1,6 @@ package awssessionkey import ( - "context" "crypto/hmac" "crypto/sha256" "encoding/hex" @@ -12,6 +11,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/axonaut/axonaut.go b/pkg/detectors/axonaut/axonaut.go index 4464f59821849..47c42196d140a 100644 --- a/pkg/detectors/axonaut/axonaut.go +++ b/pkg/detectors/axonaut/axonaut.go @@ -1,11 +1,12 @@ package axonaut import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/axonaut/axonaut_test.go b/pkg/detectors/axonaut/axonaut_test.go index 0d64cbc64e1ea..cefb232d34759 100644 --- a/pkg/detectors/axonaut/axonaut_test.go +++ b/pkg/detectors/axonaut/axonaut_test.go @@ -4,12 +4,14 @@ package axonaut import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/aylien/aylien.go b/pkg/detectors/aylien/aylien.go index cfa4407c9d437..38b97a076cdb4 100644 --- a/pkg/detectors/aylien/aylien.go +++ b/pkg/detectors/aylien/aylien.go @@ -1,11 +1,12 @@ package aylien import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/aylien/aylien_test.go b/pkg/detectors/aylien/aylien_test.go index e1315f5f9b66d..67e968597e19f 100644 --- a/pkg/detectors/aylien/aylien_test.go +++ b/pkg/detectors/aylien/aylien_test.go @@ -4,12 +4,14 @@ package aylien import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ayrshare/ayrshare.go b/pkg/detectors/ayrshare/ayrshare.go index 2c013a232dfad..d3eb75e6a9b4c 100644 --- a/pkg/detectors/ayrshare/ayrshare.go +++ b/pkg/detectors/ayrshare/ayrshare.go @@ -1,12 +1,13 @@ package ayrshare import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ayrshare/ayrshare_test.go b/pkg/detectors/ayrshare/ayrshare_test.go index da11fac95ea7b..a9d8eda6aa372 100644 --- a/pkg/detectors/ayrshare/ayrshare_test.go +++ b/pkg/detectors/ayrshare/ayrshare_test.go @@ -4,12 +4,14 @@ package ayrshare import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/azure/azure.go b/pkg/detectors/azure/azure.go index 67a54e3716787..8fcc9d79e6bf4 100644 --- a/pkg/detectors/azure/azure.go +++ b/pkg/detectors/azure/azure.go @@ -1,11 +1,12 @@ package azure import ( - "context" "fmt" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/Azure/go-autorest/autorest/azure/auth" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/azure/azure_test.go b/pkg/detectors/azure/azure_test.go index 9ecc18ab14a57..4ee6c6174d080 100644 --- a/pkg/detectors/azure/azure_test.go +++ b/pkg/detectors/azure/azure_test.go @@ -4,12 +4,14 @@ package azure import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/azurebatch/azurebatch.go b/pkg/detectors/azurebatch/azurebatch.go index 576fcd43af401..db8f4028495b0 100644 --- a/pkg/detectors/azurebatch/azurebatch.go +++ b/pkg/detectors/azurebatch/azurebatch.go @@ -1,7 +1,6 @@ package azurebatch import ( - "context" "crypto/hmac" "crypto/sha256" "encoding/base64" @@ -11,6 +10,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/azurebatch/azurebatch_test.go b/pkg/detectors/azurebatch/azurebatch_test.go index dc92a401b2d08..8ddef62a42667 100644 --- a/pkg/detectors/azurebatch/azurebatch_test.go +++ b/pkg/detectors/azurebatch/azurebatch_test.go @@ -4,11 +4,12 @@ package azurebatch import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/azurecontainerregistry/azurecontainerregistry.go b/pkg/detectors/azurecontainerregistry/azurecontainerregistry.go index d29e81572a74f..7969b1084ced0 100644 --- a/pkg/detectors/azurecontainerregistry/azurecontainerregistry.go +++ b/pkg/detectors/azurecontainerregistry/azurecontainerregistry.go @@ -1,12 +1,13 @@ package azurecontainerregistry import ( - "context" "encoding/base64" "fmt" "net/http" "regexp" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/azurecontainerregistry/azurecontainerregistry_test.go b/pkg/detectors/azurecontainerregistry/azurecontainerregistry_test.go index 8ed032f97796f..b8a39f1e1e14d 100644 --- a/pkg/detectors/azurecontainerregistry/azurecontainerregistry_test.go +++ b/pkg/detectors/azurecontainerregistry/azurecontainerregistry_test.go @@ -4,8 +4,8 @@ package azurecontainerregistry import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/azurestorage/azurestorage.go b/pkg/detectors/azurestorage/azurestorage.go index b43be3d18c5a4..74beaddc28c56 100644 --- a/pkg/detectors/azurestorage/azurestorage.go +++ b/pkg/detectors/azurestorage/azurestorage.go @@ -1,7 +1,6 @@ package azurestorage import ( - "context" "crypto/hmac" "crypto/sha256" "encoding/base64" @@ -11,6 +10,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" ) diff --git a/pkg/detectors/azurestorage/azurestorage_test.go b/pkg/detectors/azurestorage/azurestorage_test.go index b48844266cc43..59f8ce60ac3e3 100644 --- a/pkg/detectors/azurestorage/azurestorage_test.go +++ b/pkg/detectors/azurestorage/azurestorage_test.go @@ -4,13 +4,14 @@ package azurestorage import ( - "context" "fmt" "regexp" "strings" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/bannerbear/bannerbear.go b/pkg/detectors/bannerbear/bannerbear.go index 3ab0ae88d5484..05e05e3a95404 100644 --- a/pkg/detectors/bannerbear/bannerbear.go +++ b/pkg/detectors/bannerbear/bannerbear.go @@ -1,12 +1,13 @@ package bannerbear import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/bannerbear/bannerbear_test.go b/pkg/detectors/bannerbear/bannerbear_test.go index 263daa202cfc8..0921945b87640 100644 --- a/pkg/detectors/bannerbear/bannerbear_test.go +++ b/pkg/detectors/bannerbear/bannerbear_test.go @@ -4,12 +4,14 @@ package bannerbear import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/baremetrics/baremetrics.go b/pkg/detectors/baremetrics/baremetrics.go index 9d29b6722c934..17b745f2c1028 100644 --- a/pkg/detectors/baremetrics/baremetrics.go +++ b/pkg/detectors/baremetrics/baremetrics.go @@ -1,12 +1,13 @@ package baremetrics import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/baremetrics/baremetrics_test.go b/pkg/detectors/baremetrics/baremetrics_test.go index 87fde4b241914..6d276774b5b55 100644 --- a/pkg/detectors/baremetrics/baremetrics_test.go +++ b/pkg/detectors/baremetrics/baremetrics_test.go @@ -4,12 +4,14 @@ package baremetrics import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/beamer/beamer.go b/pkg/detectors/beamer/beamer.go index 30f7333d1a3aa..e4b159949a1a8 100644 --- a/pkg/detectors/beamer/beamer.go +++ b/pkg/detectors/beamer/beamer.go @@ -1,11 +1,12 @@ package beamer import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/beamer/beamer_test.go b/pkg/detectors/beamer/beamer_test.go index 2fd40a34aed98..ae667a7bd63c8 100644 --- a/pkg/detectors/beamer/beamer_test.go +++ b/pkg/detectors/beamer/beamer_test.go @@ -4,12 +4,14 @@ package beamer import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/beebole/beebole.go b/pkg/detectors/beebole/beebole.go index f7464231060ca..ce402f53c2e10 100644 --- a/pkg/detectors/beebole/beebole.go +++ b/pkg/detectors/beebole/beebole.go @@ -1,13 +1,14 @@ package beebole import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/beebole/beebole_test.go b/pkg/detectors/beebole/beebole_test.go index 8dc52fc458b5e..7f94c3a38d03c 100644 --- a/pkg/detectors/beebole/beebole_test.go +++ b/pkg/detectors/beebole/beebole_test.go @@ -4,12 +4,14 @@ package beebole import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/besnappy/besnappy.go b/pkg/detectors/besnappy/besnappy.go index d51d93f4c9053..63fb545867a7f 100644 --- a/pkg/detectors/besnappy/besnappy.go +++ b/pkg/detectors/besnappy/besnappy.go @@ -1,13 +1,14 @@ package besnappy import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/besnappy/besnappy_test.go b/pkg/detectors/besnappy/besnappy_test.go index bab5c5563160b..41c728785f41a 100644 --- a/pkg/detectors/besnappy/besnappy_test.go +++ b/pkg/detectors/besnappy/besnappy_test.go @@ -4,12 +4,14 @@ package besnappy import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/besttime/besttime.go b/pkg/detectors/besttime/besttime.go index e251de7c81017..02eb970c8ee7e 100644 --- a/pkg/detectors/besttime/besttime.go +++ b/pkg/detectors/besttime/besttime.go @@ -1,12 +1,13 @@ package besttime import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/besttime/besttime_test.go b/pkg/detectors/besttime/besttime_test.go index 902377d769fa4..a46ad80880869 100644 --- a/pkg/detectors/besttime/besttime_test.go +++ b/pkg/detectors/besttime/besttime_test.go @@ -4,12 +4,14 @@ package besttime import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/betterstack/betterstack.go b/pkg/detectors/betterstack/betterstack.go index a95552b034ecd..4dddf479474ac 100644 --- a/pkg/detectors/betterstack/betterstack.go +++ b/pkg/detectors/betterstack/betterstack.go @@ -1,12 +1,13 @@ package betterstack import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/betterstack/betterstack_test.go b/pkg/detectors/betterstack/betterstack_test.go index 4273df1f291c3..d0efc05c1173a 100644 --- a/pkg/detectors/betterstack/betterstack_test.go +++ b/pkg/detectors/betterstack/betterstack_test.go @@ -4,11 +4,12 @@ package betterstack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/billomat/billomat.go b/pkg/detectors/billomat/billomat.go index 8eb7756206df8..390afe1f029f6 100644 --- a/pkg/detectors/billomat/billomat.go +++ b/pkg/detectors/billomat/billomat.go @@ -1,12 +1,13 @@ package billomat import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/billomat/billomat_test.go b/pkg/detectors/billomat/billomat_test.go index 745e162910219..a718f8463aae5 100644 --- a/pkg/detectors/billomat/billomat_test.go +++ b/pkg/detectors/billomat/billomat_test.go @@ -4,12 +4,14 @@ package billomat import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bitbar/bitbar.go b/pkg/detectors/bitbar/bitbar.go index 4463fe0352369..6bf7b18e5b849 100644 --- a/pkg/detectors/bitbar/bitbar.go +++ b/pkg/detectors/bitbar/bitbar.go @@ -1,13 +1,14 @@ package bitbar import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/bitbar/bitbar_test.go b/pkg/detectors/bitbar/bitbar_test.go index 743a0369e9c82..d9819440fcf6e 100644 --- a/pkg/detectors/bitbar/bitbar_test.go +++ b/pkg/detectors/bitbar/bitbar_test.go @@ -4,11 +4,12 @@ package bitbar import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bitcoinaverage/bitcoinaverage.go b/pkg/detectors/bitcoinaverage/bitcoinaverage.go index c278292a728ab..337c8a0179599 100644 --- a/pkg/detectors/bitcoinaverage/bitcoinaverage.go +++ b/pkg/detectors/bitcoinaverage/bitcoinaverage.go @@ -1,12 +1,13 @@ package bitcoinaverage import ( - "context" "encoding/json" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/bitcoinaverage/bitcoinaverage_test.go b/pkg/detectors/bitcoinaverage/bitcoinaverage_test.go index 87a78cd52c20a..245ee7a651f37 100644 --- a/pkg/detectors/bitcoinaverage/bitcoinaverage_test.go +++ b/pkg/detectors/bitcoinaverage/bitcoinaverage_test.go @@ -4,12 +4,14 @@ package bitcoinaverage import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bitfinex/bitfinex.go b/pkg/detectors/bitfinex/bitfinex.go index c53c9f07ee085..15f3a3e018a54 100644 --- a/pkg/detectors/bitfinex/bitfinex.go +++ b/pkg/detectors/bitfinex/bitfinex.go @@ -1,13 +1,15 @@ package bitfinex import ( - "context" "flag" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/bitfinexcom/bitfinex-api-go/v2/rest" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bitfinex/bitfinex_test.go b/pkg/detectors/bitfinex/bitfinex_test.go index 479f9a964f049..1e22bff418d9f 100644 --- a/pkg/detectors/bitfinex/bitfinex_test.go +++ b/pkg/detectors/bitfinex/bitfinex_test.go @@ -4,12 +4,14 @@ package bitfinex import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go b/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go index 30ce2d1f22a58..a0052fb5be17d 100644 --- a/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go +++ b/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go @@ -1,12 +1,13 @@ package bitlyaccesstoken import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/bitlyaccesstoken/bitlyaccesstoken_test.go b/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken_test.go index e4625d2639be7..26234ac968da1 100644 --- a/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken_test.go +++ b/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken_test.go @@ -4,8 +4,8 @@ package bitlyaccesstoken import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/bitmex/bitmex.go b/pkg/detectors/bitmex/bitmex.go index d83e8f4d422c5..c94d8567c0418 100644 --- a/pkg/detectors/bitmex/bitmex.go +++ b/pkg/detectors/bitmex/bitmex.go @@ -1,7 +1,6 @@ package bitmex import ( - "context" "crypto/hmac" "crypto/sha256" "encoding/hex" @@ -12,6 +11,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/bitmex/bitmex_test.go b/pkg/detectors/bitmex/bitmex_test.go index 9aefeabd7df95..f35ad29d0cdaa 100644 --- a/pkg/detectors/bitmex/bitmex_test.go +++ b/pkg/detectors/bitmex/bitmex_test.go @@ -4,12 +4,14 @@ package bitmex import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/blazemeter/blazemeter.go b/pkg/detectors/blazemeter/blazemeter.go index de794b75feec8..2f1be1cb98316 100644 --- a/pkg/detectors/blazemeter/blazemeter.go +++ b/pkg/detectors/blazemeter/blazemeter.go @@ -1,12 +1,13 @@ package blazemeter import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/blazemeter/blazemeter_test.go b/pkg/detectors/blazemeter/blazemeter_test.go index 12d958cb23a8b..ba5edcc9a0ce1 100644 --- a/pkg/detectors/blazemeter/blazemeter_test.go +++ b/pkg/detectors/blazemeter/blazemeter_test.go @@ -4,12 +4,14 @@ package blazemeter import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/blitapp/blitapp.go b/pkg/detectors/blitapp/blitapp.go index 430945870000c..51d9a648e4548 100644 --- a/pkg/detectors/blitapp/blitapp.go +++ b/pkg/detectors/blitapp/blitapp.go @@ -1,11 +1,12 @@ package blitapp import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/blitapp/blitapp_test.go b/pkg/detectors/blitapp/blitapp_test.go index 01e4e9df16a9f..59187ab6a1722 100644 --- a/pkg/detectors/blitapp/blitapp_test.go +++ b/pkg/detectors/blitapp/blitapp_test.go @@ -4,12 +4,14 @@ package blitapp import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/blocknative/blocknative.go b/pkg/detectors/blocknative/blocknative.go index 2da32a623f462..5952aa4bb29f6 100644 --- a/pkg/detectors/blocknative/blocknative.go +++ b/pkg/detectors/blocknative/blocknative.go @@ -1,12 +1,13 @@ package blocknative import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/blocknative/blocknative_test.go b/pkg/detectors/blocknative/blocknative_test.go index d781cc6995894..acdd1ce6e1124 100644 --- a/pkg/detectors/blocknative/blocknative_test.go +++ b/pkg/detectors/blocknative/blocknative_test.go @@ -4,12 +4,14 @@ package blocknative import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/blogger/blogger.go b/pkg/detectors/blogger/blogger.go index 7070b619b64b2..0c980103ad2d3 100644 --- a/pkg/detectors/blogger/blogger.go +++ b/pkg/detectors/blogger/blogger.go @@ -1,11 +1,12 @@ package blogger import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/blogger/blogger_test.go b/pkg/detectors/blogger/blogger_test.go index 4afd72354d5b4..e64622f410737 100644 --- a/pkg/detectors/blogger/blogger_test.go +++ b/pkg/detectors/blogger/blogger_test.go @@ -4,12 +4,14 @@ package blogger import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bombbomb/bombbomb.go b/pkg/detectors/bombbomb/bombbomb.go index e241e5433dc05..ad11108119c67 100644 --- a/pkg/detectors/bombbomb/bombbomb.go +++ b/pkg/detectors/bombbomb/bombbomb.go @@ -1,11 +1,12 @@ package bombbomb import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/bombbomb/bombbomb_test.go b/pkg/detectors/bombbomb/bombbomb_test.go index cae85980792ae..e808992d7ed57 100644 --- a/pkg/detectors/bombbomb/bombbomb_test.go +++ b/pkg/detectors/bombbomb/bombbomb_test.go @@ -4,11 +4,12 @@ package bombbomb import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/boostnote/boostnote.go b/pkg/detectors/boostnote/boostnote.go index 83fa99d0534a8..ab5e6099e6205 100644 --- a/pkg/detectors/boostnote/boostnote.go +++ b/pkg/detectors/boostnote/boostnote.go @@ -1,12 +1,13 @@ package boostnote import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/boostnote/boostnote_test.go b/pkg/detectors/boostnote/boostnote_test.go index 321b6e4a87a27..e70f5f3c5747f 100644 --- a/pkg/detectors/boostnote/boostnote_test.go +++ b/pkg/detectors/boostnote/boostnote_test.go @@ -4,11 +4,12 @@ package boostnote import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/borgbase/borgbase.go b/pkg/detectors/borgbase/borgbase.go index 8a0267409c5e8..17df2b92bc431 100644 --- a/pkg/detectors/borgbase/borgbase.go +++ b/pkg/detectors/borgbase/borgbase.go @@ -1,7 +1,6 @@ package borgbase import ( - "context" "fmt" "io" "net/http" @@ -9,6 +8,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/borgbase/borgbase_test.go b/pkg/detectors/borgbase/borgbase_test.go index 31757adf83cfa..287718a9d0b4f 100644 --- a/pkg/detectors/borgbase/borgbase_test.go +++ b/pkg/detectors/borgbase/borgbase_test.go @@ -4,11 +4,12 @@ package borgbase import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/braintreepayments/braintreepayments.go b/pkg/detectors/braintreepayments/braintreepayments.go index 8c79d42842b67..a5be83faa8450 100644 --- a/pkg/detectors/braintreepayments/braintreepayments.go +++ b/pkg/detectors/braintreepayments/braintreepayments.go @@ -1,13 +1,14 @@ package braintreepayments import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/braintreepayments/braintreepayments_test.go b/pkg/detectors/braintreepayments/braintreepayments_test.go index db4c346dc3732..941904268996f 100644 --- a/pkg/detectors/braintreepayments/braintreepayments_test.go +++ b/pkg/detectors/braintreepayments/braintreepayments_test.go @@ -1,8 +1,8 @@ package braintreepayments import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/brandfetch/brandfetch.go b/pkg/detectors/brandfetch/brandfetch.go index 606e7153c396b..2e530a0e9ff0c 100644 --- a/pkg/detectors/brandfetch/brandfetch.go +++ b/pkg/detectors/brandfetch/brandfetch.go @@ -1,11 +1,12 @@ package brandfetch import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/brandfetch/brandfetch_test.go b/pkg/detectors/brandfetch/brandfetch_test.go index 76fe755e3eae8..a5884bdb2ec60 100644 --- a/pkg/detectors/brandfetch/brandfetch_test.go +++ b/pkg/detectors/brandfetch/brandfetch_test.go @@ -4,12 +4,14 @@ package brandfetch import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/browserstack/browserstack.go b/pkg/detectors/browserstack/browserstack.go index d0f1f52a4f9cc..10f9f107fbf4b 100644 --- a/pkg/detectors/browserstack/browserstack.go +++ b/pkg/detectors/browserstack/browserstack.go @@ -1,7 +1,6 @@ package browserstack import ( - "context" "fmt" "io" "net/http" @@ -9,9 +8,12 @@ import ( "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + + "golang.org/x/net/publicsuffix" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" - "golang.org/x/net/publicsuffix" ) type Scanner struct { diff --git a/pkg/detectors/browserstack/browserstack_test.go b/pkg/detectors/browserstack/browserstack_test.go index f8185173e1374..320adf1f067bb 100644 --- a/pkg/detectors/browserstack/browserstack_test.go +++ b/pkg/detectors/browserstack/browserstack_test.go @@ -4,11 +4,12 @@ package browserstack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/browshot/browshot.go b/pkg/detectors/browshot/browshot.go index 4bd7266ec2848..bf1e76cfff95b 100644 --- a/pkg/detectors/browshot/browshot.go +++ b/pkg/detectors/browshot/browshot.go @@ -1,11 +1,12 @@ package browshot import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/browshot/browshot_test.go b/pkg/detectors/browshot/browshot_test.go index 401ed17470eb2..94536a9234114 100644 --- a/pkg/detectors/browshot/browshot_test.go +++ b/pkg/detectors/browshot/browshot_test.go @@ -4,12 +4,14 @@ package browshot import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bscscan/bscscan.go b/pkg/detectors/bscscan/bscscan.go index ebd2718f933b1..367803e196e09 100644 --- a/pkg/detectors/bscscan/bscscan.go +++ b/pkg/detectors/bscscan/bscscan.go @@ -1,12 +1,13 @@ package bscscan import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/bscscan/bscscan_test.go b/pkg/detectors/bscscan/bscscan_test.go index b8bacbc2969fa..a5d964412ce76 100644 --- a/pkg/detectors/bscscan/bscscan_test.go +++ b/pkg/detectors/bscscan/bscscan_test.go @@ -4,12 +4,14 @@ package bscscan import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/buddyns/buddyns.go b/pkg/detectors/buddyns/buddyns.go index fbf4d206cc669..ae9108c1f3355 100644 --- a/pkg/detectors/buddyns/buddyns.go +++ b/pkg/detectors/buddyns/buddyns.go @@ -1,12 +1,13 @@ package buddyns import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/buddyns/buddyns_test.go b/pkg/detectors/buddyns/buddyns_test.go index d1d84bf070931..8f2178d781393 100644 --- a/pkg/detectors/buddyns/buddyns_test.go +++ b/pkg/detectors/buddyns/buddyns_test.go @@ -4,12 +4,14 @@ package buddyns import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/budibase/budibase.go b/pkg/detectors/budibase/budibase.go index 22186b03e3807..31f0cad5a1588 100644 --- a/pkg/detectors/budibase/budibase.go +++ b/pkg/detectors/budibase/budibase.go @@ -1,12 +1,13 @@ package budibase import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/budibase/budibase_test.go b/pkg/detectors/budibase/budibase_test.go index ebd9ce6c81496..4ea186109d009 100644 --- a/pkg/detectors/budibase/budibase_test.go +++ b/pkg/detectors/budibase/budibase_test.go @@ -4,11 +4,12 @@ package budibase import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/bugherd/bugherd.go b/pkg/detectors/bugherd/bugherd.go index f7c789cad222e..59314d54eed68 100644 --- a/pkg/detectors/bugherd/bugherd.go +++ b/pkg/detectors/bugherd/bugherd.go @@ -1,13 +1,14 @@ package bugherd import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/bugherd/bugherd_test.go b/pkg/detectors/bugherd/bugherd_test.go index 7d015a448d688..d89968fa0378b 100644 --- a/pkg/detectors/bugherd/bugherd_test.go +++ b/pkg/detectors/bugherd/bugherd_test.go @@ -4,12 +4,14 @@ package bugherd import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bugsnag/bugsnag.go b/pkg/detectors/bugsnag/bugsnag.go index 1c4f7a33d2990..d6edb5a2ad593 100644 --- a/pkg/detectors/bugsnag/bugsnag.go +++ b/pkg/detectors/bugsnag/bugsnag.go @@ -1,12 +1,13 @@ package bugsnag import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/bugsnag/bugsnag_test.go b/pkg/detectors/bugsnag/bugsnag_test.go index 2d56674eb5b83..145c5c1e981c5 100644 --- a/pkg/detectors/bugsnag/bugsnag_test.go +++ b/pkg/detectors/bugsnag/bugsnag_test.go @@ -4,12 +4,14 @@ package bugsnag import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/buildkite/buildkite.go b/pkg/detectors/buildkite/buildkite.go index d04c4c753da1a..9292a603a378a 100644 --- a/pkg/detectors/buildkite/buildkite.go +++ b/pkg/detectors/buildkite/buildkite.go @@ -1,12 +1,13 @@ package buildkite import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/buildkite/buildkite_test.go b/pkg/detectors/buildkite/buildkite_test.go index f0d334959ccee..a8b5311a428d0 100644 --- a/pkg/detectors/buildkite/buildkite_test.go +++ b/pkg/detectors/buildkite/buildkite_test.go @@ -4,11 +4,12 @@ package buildkite import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/buildkitev2/buildkite.go b/pkg/detectors/buildkitev2/buildkite.go index 8e5d4a783d2e8..29a8026134e32 100644 --- a/pkg/detectors/buildkitev2/buildkite.go +++ b/pkg/detectors/buildkitev2/buildkite.go @@ -1,12 +1,13 @@ package buildkitev2 import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/buildkitev2/buildkite_test.go b/pkg/detectors/buildkitev2/buildkite_test.go index 26c8a2c1d3a5c..0bf5729aa16e9 100644 --- a/pkg/detectors/buildkitev2/buildkite_test.go +++ b/pkg/detectors/buildkitev2/buildkite_test.go @@ -4,11 +4,12 @@ package buildkitev2 import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bulbul/bulbul.go b/pkg/detectors/bulbul/bulbul.go index 81e37ca044839..3de83d2c0cfd3 100644 --- a/pkg/detectors/bulbul/bulbul.go +++ b/pkg/detectors/bulbul/bulbul.go @@ -1,13 +1,14 @@ package bulbul import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/bulbul/bulbul_test.go b/pkg/detectors/bulbul/bulbul_test.go index e51371cf554ed..e1e3f34f92155 100644 --- a/pkg/detectors/bulbul/bulbul_test.go +++ b/pkg/detectors/bulbul/bulbul_test.go @@ -4,12 +4,14 @@ package bulbul import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bulksms/bulksms.go b/pkg/detectors/bulksms/bulksms.go index faf202736bd0c..c7ee33417f472 100644 --- a/pkg/detectors/bulksms/bulksms.go +++ b/pkg/detectors/bulksms/bulksms.go @@ -1,13 +1,14 @@ package bulksms import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/bulksms/bulksms_test.go b/pkg/detectors/bulksms/bulksms_test.go index b087cacc6ded7..b6eab2d4e9401 100644 --- a/pkg/detectors/bulksms/bulksms_test.go +++ b/pkg/detectors/bulksms/bulksms_test.go @@ -4,12 +4,14 @@ package bulksms import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/buttercms/buttercms.go b/pkg/detectors/buttercms/buttercms.go index f6d83c2cc1bfa..123b89f60d1db 100644 --- a/pkg/detectors/buttercms/buttercms.go +++ b/pkg/detectors/buttercms/buttercms.go @@ -1,11 +1,12 @@ package buttercms import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/buttercms/buttercms_test.go b/pkg/detectors/buttercms/buttercms_test.go index e4e5d13a7799e..1cd2acedb000c 100644 --- a/pkg/detectors/buttercms/buttercms_test.go +++ b/pkg/detectors/buttercms/buttercms_test.go @@ -4,12 +4,14 @@ package buttercms import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/caflou/caflou.go b/pkg/detectors/caflou/caflou.go index 8ff5c5e86faaf..8611c2c6f02c3 100644 --- a/pkg/detectors/caflou/caflou.go +++ b/pkg/detectors/caflou/caflou.go @@ -1,13 +1,14 @@ package caflou import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/caflou/caflou_test.go b/pkg/detectors/caflou/caflou_test.go index b8eb1bec30240..3adf3aff5794a 100644 --- a/pkg/detectors/caflou/caflou_test.go +++ b/pkg/detectors/caflou/caflou_test.go @@ -4,12 +4,14 @@ package caflou import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/calendarific/calendarific.go b/pkg/detectors/calendarific/calendarific.go index 26e704a0b0218..e406d3f7e4439 100644 --- a/pkg/detectors/calendarific/calendarific.go +++ b/pkg/detectors/calendarific/calendarific.go @@ -1,11 +1,12 @@ package calendarific import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/calendarific/calendarific_test.go b/pkg/detectors/calendarific/calendarific_test.go index 9b6fadba01098..4e5530cf313d8 100644 --- a/pkg/detectors/calendarific/calendarific_test.go +++ b/pkg/detectors/calendarific/calendarific_test.go @@ -4,12 +4,14 @@ package calendarific import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/calendlyapikey/calendlyapikey.go b/pkg/detectors/calendlyapikey/calendlyapikey.go index bdd92123d7b0b..36120a535fcff 100644 --- a/pkg/detectors/calendlyapikey/calendlyapikey.go +++ b/pkg/detectors/calendlyapikey/calendlyapikey.go @@ -1,12 +1,13 @@ package calendlyapikey import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/calendlyapikey/calendlyapikey_test.go b/pkg/detectors/calendlyapikey/calendlyapikey_test.go index 4f1e88a3a387d..3e4c5be50e60d 100644 --- a/pkg/detectors/calendlyapikey/calendlyapikey_test.go +++ b/pkg/detectors/calendlyapikey/calendlyapikey_test.go @@ -4,12 +4,14 @@ package calendlyapikey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/calorieninja/calorieninja.go b/pkg/detectors/calorieninja/calorieninja.go index 41f1608231b42..f09bfb8355a88 100644 --- a/pkg/detectors/calorieninja/calorieninja.go +++ b/pkg/detectors/calorieninja/calorieninja.go @@ -1,11 +1,12 @@ package calorieninja import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/calorieninja/calorieninja_test.go b/pkg/detectors/calorieninja/calorieninja_test.go index 4b680cb750114..9e6c4532b7b51 100644 --- a/pkg/detectors/calorieninja/calorieninja_test.go +++ b/pkg/detectors/calorieninja/calorieninja_test.go @@ -4,12 +4,14 @@ package calorieninja import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/campayn/campayn.go b/pkg/detectors/campayn/campayn.go index 3625a30783bcb..2988e15215432 100644 --- a/pkg/detectors/campayn/campayn.go +++ b/pkg/detectors/campayn/campayn.go @@ -1,11 +1,12 @@ package campayn import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/campayn/campayn_test.go b/pkg/detectors/campayn/campayn_test.go index 7cd07d212c001..cc73d7bc7cb1e 100644 --- a/pkg/detectors/campayn/campayn_test.go +++ b/pkg/detectors/campayn/campayn_test.go @@ -4,11 +4,12 @@ package campayn import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cannyio/cannyio.go b/pkg/detectors/cannyio/cannyio.go index e1bfd845c6f43..b56b73e6172ca 100644 --- a/pkg/detectors/cannyio/cannyio.go +++ b/pkg/detectors/cannyio/cannyio.go @@ -1,11 +1,12 @@ package cannyio import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/cannyio/cannyio_test.go b/pkg/detectors/cannyio/cannyio_test.go index 7226dcaf83557..393bd05868822 100644 --- a/pkg/detectors/cannyio/cannyio_test.go +++ b/pkg/detectors/cannyio/cannyio_test.go @@ -4,12 +4,14 @@ package cannyio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/capsulecrm/capsulecrm.go b/pkg/detectors/capsulecrm/capsulecrm.go index cb2e176c5f6d9..0fe7e98ed9669 100644 --- a/pkg/detectors/capsulecrm/capsulecrm.go +++ b/pkg/detectors/capsulecrm/capsulecrm.go @@ -1,12 +1,13 @@ package capsulecrm import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/capsulecrm/capsulecrm_test.go b/pkg/detectors/capsulecrm/capsulecrm_test.go index c63a12412703c..6ddddbf13241a 100644 --- a/pkg/detectors/capsulecrm/capsulecrm_test.go +++ b/pkg/detectors/capsulecrm/capsulecrm_test.go @@ -4,12 +4,14 @@ package capsulecrm import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/captaindata/captaindata.go b/pkg/detectors/captaindata/captaindata.go index 308ddeeb22d8b..e298ad5d2922a 100644 --- a/pkg/detectors/captaindata/captaindata.go +++ b/pkg/detectors/captaindata/captaindata.go @@ -1,11 +1,12 @@ package captaindata import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/captaindata/captaindata_test.go b/pkg/detectors/captaindata/captaindata_test.go index c77264ade0599..7e77b974c21af 100644 --- a/pkg/detectors/captaindata/captaindata_test.go +++ b/pkg/detectors/captaindata/captaindata_test.go @@ -4,11 +4,12 @@ package captaindata import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/carboninterface/carboninterface.go b/pkg/detectors/carboninterface/carboninterface.go index eb29a4ab4e24d..990e6c3e0f0ee 100644 --- a/pkg/detectors/carboninterface/carboninterface.go +++ b/pkg/detectors/carboninterface/carboninterface.go @@ -1,12 +1,13 @@ package carboninterface import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/carboninterface/carboninterface_test.go b/pkg/detectors/carboninterface/carboninterface_test.go index e002caa1c7ca6..d6a91ff6d159d 100644 --- a/pkg/detectors/carboninterface/carboninterface_test.go +++ b/pkg/detectors/carboninterface/carboninterface_test.go @@ -4,12 +4,14 @@ package carboninterface import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cashboard/cashboard.go b/pkg/detectors/cashboard/cashboard.go index df7110d82b760..90bda38bc38df 100644 --- a/pkg/detectors/cashboard/cashboard.go +++ b/pkg/detectors/cashboard/cashboard.go @@ -1,13 +1,14 @@ package cashboard import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/cashboard/cashboard_test.go b/pkg/detectors/cashboard/cashboard_test.go index 4b4fd5db01db5..02ab568080cb7 100644 --- a/pkg/detectors/cashboard/cashboard_test.go +++ b/pkg/detectors/cashboard/cashboard_test.go @@ -4,11 +4,12 @@ package cashboard import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/caspio/caspio.go b/pkg/detectors/caspio/caspio.go index 6be190135d3d4..af0a3f1c24eb1 100644 --- a/pkg/detectors/caspio/caspio.go +++ b/pkg/detectors/caspio/caspio.go @@ -1,12 +1,13 @@ package caspio import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/caspio/caspio_test.go b/pkg/detectors/caspio/caspio_test.go index b285d94cf7828..a9a5341255ec6 100644 --- a/pkg/detectors/caspio/caspio_test.go +++ b/pkg/detectors/caspio/caspio_test.go @@ -4,11 +4,12 @@ package caspio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/censys/censys.go b/pkg/detectors/censys/censys.go index f9a0234d6dd8e..223d418170ec3 100644 --- a/pkg/detectors/censys/censys.go +++ b/pkg/detectors/censys/censys.go @@ -1,11 +1,12 @@ package censys import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/censys/censys_test.go b/pkg/detectors/censys/censys_test.go index 1b20923c4216b..ac16bbca8a031 100644 --- a/pkg/detectors/censys/censys_test.go +++ b/pkg/detectors/censys/censys_test.go @@ -4,12 +4,14 @@ package censys import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/centralstationcrm/centralstationcrm.go b/pkg/detectors/centralstationcrm/centralstationcrm.go index 89b6b1f4f97cb..3eefa1b91fa11 100644 --- a/pkg/detectors/centralstationcrm/centralstationcrm.go +++ b/pkg/detectors/centralstationcrm/centralstationcrm.go @@ -1,11 +1,12 @@ package centralstationcrm import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/centralstationcrm/centralstationcrm_test.go b/pkg/detectors/centralstationcrm/centralstationcrm_test.go index 364ed8e829a1c..4f2704131c890 100644 --- a/pkg/detectors/centralstationcrm/centralstationcrm_test.go +++ b/pkg/detectors/centralstationcrm/centralstationcrm_test.go @@ -4,12 +4,14 @@ package centralstationcrm import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cexio/cexio.go b/pkg/detectors/cexio/cexio.go index baf4f29c1b8f4..1a4461baaccb2 100644 --- a/pkg/detectors/cexio/cexio.go +++ b/pkg/detectors/cexio/cexio.go @@ -1,7 +1,6 @@ package cexio import ( - "context" "crypto/hmac" "crypto/sha256" "encoding/hex" @@ -14,6 +13,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/cexio/cexio_test.go b/pkg/detectors/cexio/cexio_test.go index 0fd5b1422fa49..646ad3835d35e 100644 --- a/pkg/detectors/cexio/cexio_test.go +++ b/pkg/detectors/cexio/cexio_test.go @@ -4,11 +4,12 @@ package cexio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/chartmogul/chartmogul.go b/pkg/detectors/chartmogul/chartmogul.go index 03baa481fe66d..3492f68c34c45 100644 --- a/pkg/detectors/chartmogul/chartmogul.go +++ b/pkg/detectors/chartmogul/chartmogul.go @@ -1,13 +1,14 @@ package chartmogul import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/chartmogul/chartmogul_test.go b/pkg/detectors/chartmogul/chartmogul_test.go index 31d43fb4798e8..4d28c479a4c39 100644 --- a/pkg/detectors/chartmogul/chartmogul_test.go +++ b/pkg/detectors/chartmogul/chartmogul_test.go @@ -4,12 +4,14 @@ package chartmogul import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/chatbot/chatbot.go b/pkg/detectors/chatbot/chatbot.go index 458810e6dd8e6..d9666200a5287 100644 --- a/pkg/detectors/chatbot/chatbot.go +++ b/pkg/detectors/chatbot/chatbot.go @@ -1,12 +1,13 @@ package chatbot import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/chatbot/chatbot_test.go b/pkg/detectors/chatbot/chatbot_test.go index ff62f399733cb..81306f7c14f1c 100644 --- a/pkg/detectors/chatbot/chatbot_test.go +++ b/pkg/detectors/chatbot/chatbot_test.go @@ -4,12 +4,14 @@ package chatbot import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/chatfule/chatfule.go b/pkg/detectors/chatfule/chatfule.go index 1fc150119cbbc..df0c42dd7797c 100644 --- a/pkg/detectors/chatfule/chatfule.go +++ b/pkg/detectors/chatfule/chatfule.go @@ -1,12 +1,13 @@ package chatfule import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/chatfule/chatfule_test.go b/pkg/detectors/chatfule/chatfule_test.go index 405174ed66ab0..9ac7e34c16cb3 100644 --- a/pkg/detectors/chatfule/chatfule_test.go +++ b/pkg/detectors/chatfule/chatfule_test.go @@ -4,11 +4,12 @@ package chatfule import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/checio/checio.go b/pkg/detectors/checio/checio.go index 690c8883192b4..6e95aec8f18d3 100644 --- a/pkg/detectors/checio/checio.go +++ b/pkg/detectors/checio/checio.go @@ -1,7 +1,7 @@ package checio import ( - "context" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" // "log" "net/http" "regexp" diff --git a/pkg/detectors/checio/checio_test.go b/pkg/detectors/checio/checio_test.go index e2fd6eafa4168..ea7dfbc7dcacb 100644 --- a/pkg/detectors/checio/checio_test.go +++ b/pkg/detectors/checio/checio_test.go @@ -4,12 +4,14 @@ package checio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/checklyhq/checklyhq.go b/pkg/detectors/checklyhq/checklyhq.go index ec89e87b635de..babbfd5328958 100644 --- a/pkg/detectors/checklyhq/checklyhq.go +++ b/pkg/detectors/checklyhq/checklyhq.go @@ -1,12 +1,13 @@ package checklyhq import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/checklyhq/checklyhq_test.go b/pkg/detectors/checklyhq/checklyhq_test.go index 8985924f788e1..7639a7ce90a67 100644 --- a/pkg/detectors/checklyhq/checklyhq_test.go +++ b/pkg/detectors/checklyhq/checklyhq_test.go @@ -4,12 +4,14 @@ package checklyhq import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/checkout/checkout.go b/pkg/detectors/checkout/checkout.go index c845e2654d5b1..56c1847cf5a47 100644 --- a/pkg/detectors/checkout/checkout.go +++ b/pkg/detectors/checkout/checkout.go @@ -1,11 +1,12 @@ package checkout import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/checkout/checkout_test.go b/pkg/detectors/checkout/checkout_test.go index 0337cfe5b788e..2cbc992a5e08e 100644 --- a/pkg/detectors/checkout/checkout_test.go +++ b/pkg/detectors/checkout/checkout_test.go @@ -4,12 +4,14 @@ package checkout import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/checkvist/checkvist.go b/pkg/detectors/checkvist/checkvist.go index b2a4887bef57b..677198cc1b452 100644 --- a/pkg/detectors/checkvist/checkvist.go +++ b/pkg/detectors/checkvist/checkvist.go @@ -1,12 +1,13 @@ package checkvist import ( - "context" "net/http" "net/url" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/checkvist/checkvist_test.go b/pkg/detectors/checkvist/checkvist_test.go index 92e6583ea15db..b6d88d69822fc 100644 --- a/pkg/detectors/checkvist/checkvist_test.go +++ b/pkg/detectors/checkvist/checkvist_test.go @@ -4,11 +4,12 @@ package checkvist import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cicero/cicero.go b/pkg/detectors/cicero/cicero.go index 6e317bf8a63a8..03cf85d339d44 100644 --- a/pkg/detectors/cicero/cicero.go +++ b/pkg/detectors/cicero/cicero.go @@ -1,12 +1,13 @@ package cicero import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/cicero/cicero_test.go b/pkg/detectors/cicero/cicero_test.go index 7bb562b69e0e0..46c52f5ed8815 100644 --- a/pkg/detectors/cicero/cicero_test.go +++ b/pkg/detectors/cicero/cicero_test.go @@ -4,12 +4,14 @@ package cicero import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/circleci/circleci.go b/pkg/detectors/circleci/circleci.go index 8c8d77da78daa..8c6ba4f2e4021 100644 --- a/pkg/detectors/circleci/circleci.go +++ b/pkg/detectors/circleci/circleci.go @@ -1,10 +1,11 @@ package circleci import ( - "context" "net/http" "regexp" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" diff --git a/pkg/detectors/circleci/circleci_test.go b/pkg/detectors/circleci/circleci_test.go index 34d685903d286..26cf3894f1d33 100644 --- a/pkg/detectors/circleci/circleci_test.go +++ b/pkg/detectors/circleci/circleci_test.go @@ -4,13 +4,15 @@ package circleci import ( - "context" "fmt" "os" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/clarifai/clarifai.go b/pkg/detectors/clarifai/clarifai.go index 14ba3545694a5..dd18ec29044c2 100644 --- a/pkg/detectors/clarifai/clarifai.go +++ b/pkg/detectors/clarifai/clarifai.go @@ -1,12 +1,13 @@ package clarifai import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/clarifai/clarifai_test.go b/pkg/detectors/clarifai/clarifai_test.go index 96ab6fe5ae0e9..3da79b3cdf4ce 100644 --- a/pkg/detectors/clarifai/clarifai_test.go +++ b/pkg/detectors/clarifai/clarifai_test.go @@ -4,12 +4,14 @@ package clarifai import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/clearbit/clearbit.go b/pkg/detectors/clearbit/clearbit.go index 6fcb7e8dbf2d8..9cd988f66be66 100644 --- a/pkg/detectors/clearbit/clearbit.go +++ b/pkg/detectors/clearbit/clearbit.go @@ -1,12 +1,13 @@ package clearbit import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/clearbit/clearbit_test.go b/pkg/detectors/clearbit/clearbit_test.go index da8ba1c26924b..1ef901422ed82 100644 --- a/pkg/detectors/clearbit/clearbit_test.go +++ b/pkg/detectors/clearbit/clearbit_test.go @@ -4,12 +4,14 @@ package clearbit import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/clickhelp/clickhelp.go b/pkg/detectors/clickhelp/clickhelp.go index 97f356175a084..09a7e461c9e34 100644 --- a/pkg/detectors/clickhelp/clickhelp.go +++ b/pkg/detectors/clickhelp/clickhelp.go @@ -1,13 +1,14 @@ package clickhelp import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/clickhelp/clickhelp_test.go b/pkg/detectors/clickhelp/clickhelp_test.go index 16965f63dcd53..69362f38f92b0 100644 --- a/pkg/detectors/clickhelp/clickhelp_test.go +++ b/pkg/detectors/clickhelp/clickhelp_test.go @@ -4,12 +4,14 @@ package clickhelp import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/clicksendsms/clicksendsms.go b/pkg/detectors/clicksendsms/clicksendsms.go index 45c050f43ca80..25cfb8709b42a 100644 --- a/pkg/detectors/clicksendsms/clicksendsms.go +++ b/pkg/detectors/clicksendsms/clicksendsms.go @@ -1,13 +1,14 @@ package clicksendsms import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/clicksendsms/clicksendsms_test.go b/pkg/detectors/clicksendsms/clicksendsms_test.go index 9df9c4c634ece..9c11c06d771e8 100644 --- a/pkg/detectors/clicksendsms/clicksendsms_test.go +++ b/pkg/detectors/clicksendsms/clicksendsms_test.go @@ -4,12 +4,14 @@ package clicksendsms import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go b/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go index 4ceed898d62f8..daef0a79e7615 100644 --- a/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go +++ b/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go @@ -1,7 +1,7 @@ package clickuppersonaltoken import ( - "context" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "net/http" "regexp" "strings" diff --git a/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken_test.go b/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken_test.go index 8c8bd60f72927..151e509e058e7 100644 --- a/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken_test.go +++ b/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken_test.go @@ -4,12 +4,14 @@ package clickuppersonaltoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cliengo/cliengo.go b/pkg/detectors/cliengo/cliengo.go index 86ef11e80523d..cea847dd8b6c2 100644 --- a/pkg/detectors/cliengo/cliengo.go +++ b/pkg/detectors/cliengo/cliengo.go @@ -1,11 +1,12 @@ package cliengo import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/cliengo/cliengo_test.go b/pkg/detectors/cliengo/cliengo_test.go index 1d31d5cf0a4f2..5f16be098c9b4 100644 --- a/pkg/detectors/cliengo/cliengo_test.go +++ b/pkg/detectors/cliengo/cliengo_test.go @@ -4,11 +4,12 @@ package cliengo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/clinchpad/clinchpad.go b/pkg/detectors/clinchpad/clinchpad.go index 27c4c755271b9..04a0b155b4baf 100644 --- a/pkg/detectors/clinchpad/clinchpad.go +++ b/pkg/detectors/clinchpad/clinchpad.go @@ -1,13 +1,14 @@ package clinchpad import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/clinchpad/clinchpad_test.go b/pkg/detectors/clinchpad/clinchpad_test.go index 68d05a39f247f..7df0b3e84ac32 100644 --- a/pkg/detectors/clinchpad/clinchpad_test.go +++ b/pkg/detectors/clinchpad/clinchpad_test.go @@ -4,12 +4,14 @@ package clinchpad import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/clockify/clockify.go b/pkg/detectors/clockify/clockify.go index bb7d21584ce63..ee8e3ebfa0666 100644 --- a/pkg/detectors/clockify/clockify.go +++ b/pkg/detectors/clockify/clockify.go @@ -1,11 +1,12 @@ package clockify import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/clockify/clockify_test.go b/pkg/detectors/clockify/clockify_test.go index 618512566d1b4..221eae5ecdcc1 100644 --- a/pkg/detectors/clockify/clockify_test.go +++ b/pkg/detectors/clockify/clockify_test.go @@ -4,12 +4,14 @@ package clockify import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/clockworksms/clockworksms.go b/pkg/detectors/clockworksms/clockworksms.go index 643ab8511b954..25a838b8d447d 100644 --- a/pkg/detectors/clockworksms/clockworksms.go +++ b/pkg/detectors/clockworksms/clockworksms.go @@ -1,11 +1,12 @@ package clockworksms import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/clockworksms/clockworksms_test.go b/pkg/detectors/clockworksms/clockworksms_test.go index 4250011b23110..d9a47b05319a2 100644 --- a/pkg/detectors/clockworksms/clockworksms_test.go +++ b/pkg/detectors/clockworksms/clockworksms_test.go @@ -4,12 +4,14 @@ package clockworksms import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/closecrm/close.go b/pkg/detectors/closecrm/close.go index e55c56d5bccd8..f4591394fad76 100644 --- a/pkg/detectors/closecrm/close.go +++ b/pkg/detectors/closecrm/close.go @@ -1,13 +1,14 @@ package closecrm import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/closecrm/close_test.go b/pkg/detectors/closecrm/close_test.go index 2a4940dc432c4..fdc9b4e160177 100644 --- a/pkg/detectors/closecrm/close_test.go +++ b/pkg/detectors/closecrm/close_test.go @@ -4,12 +4,14 @@ package closecrm import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudconvert/cloudconvert.go b/pkg/detectors/cloudconvert/cloudconvert.go index f454543c41c0b..76da5fbb4f00a 100644 --- a/pkg/detectors/cloudconvert/cloudconvert.go +++ b/pkg/detectors/cloudconvert/cloudconvert.go @@ -1,12 +1,13 @@ package cloudconvert import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/cloudconvert/cloudconvert_test.go b/pkg/detectors/cloudconvert/cloudconvert_test.go index 9109b4a589fcf..3f35d6b87a496 100644 --- a/pkg/detectors/cloudconvert/cloudconvert_test.go +++ b/pkg/detectors/cloudconvert/cloudconvert_test.go @@ -4,12 +4,14 @@ package cloudconvert import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudelements/cloudelements.go b/pkg/detectors/cloudelements/cloudelements.go index 4413783f54ff1..ce9d1a455bdb0 100644 --- a/pkg/detectors/cloudelements/cloudelements.go +++ b/pkg/detectors/cloudelements/cloudelements.go @@ -1,12 +1,13 @@ package cloudelements import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/cloudelements/cloudelements_test.go b/pkg/detectors/cloudelements/cloudelements_test.go index 6fa4314ddd176..b06c17ffdb0a0 100644 --- a/pkg/detectors/cloudelements/cloudelements_test.go +++ b/pkg/detectors/cloudelements/cloudelements_test.go @@ -4,12 +4,14 @@ package cloudelements import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go b/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go index 3557ba86d7320..7ac2740e97300 100644 --- a/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go +++ b/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go @@ -1,8 +1,8 @@ package cloudflareapitoken import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "net/http" "regexp" "strings" diff --git a/pkg/detectors/cloudflareapitoken/cloudflareapitoken_test.go b/pkg/detectors/cloudflareapitoken/cloudflareapitoken_test.go index 05660e2c56a84..c90d85a01b8f6 100644 --- a/pkg/detectors/cloudflareapitoken/cloudflareapitoken_test.go +++ b/pkg/detectors/cloudflareapitoken/cloudflareapitoken_test.go @@ -4,12 +4,14 @@ package cloudflareapitoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudflarecakey/cloudflarecakey.go b/pkg/detectors/cloudflarecakey/cloudflarecakey.go index f2d7783fd2898..fb032fdeccd59 100644 --- a/pkg/detectors/cloudflarecakey/cloudflarecakey.go +++ b/pkg/detectors/cloudflarecakey/cloudflarecakey.go @@ -1,7 +1,7 @@ package cloudflarecakey import ( - "context" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" // "fmt" // "log" "net/http" diff --git a/pkg/detectors/cloudflarecakey/cloudflarecakey_test.go b/pkg/detectors/cloudflarecakey/cloudflarecakey_test.go index 0eedf05b9ff9c..457f767982f6f 100644 --- a/pkg/detectors/cloudflarecakey/cloudflarecakey_test.go +++ b/pkg/detectors/cloudflarecakey/cloudflarecakey_test.go @@ -4,12 +4,14 @@ package cloudflarecakey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go b/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go index c1798fc902d4f..b756e11eb2459 100644 --- a/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go +++ b/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go @@ -1,11 +1,12 @@ package cloudflareglobalapikey import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/cloudflareglobalapikey/cloudflareglobalapikey_test.go b/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey_test.go index 49a96a617fa41..cb785ed4e5234 100644 --- a/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey_test.go +++ b/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey_test.go @@ -4,12 +4,14 @@ package cloudflareglobalapikey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudimage/cloudimage.go b/pkg/detectors/cloudimage/cloudimage.go index c097f0b58bfba..bcc12c9e671f6 100644 --- a/pkg/detectors/cloudimage/cloudimage.go +++ b/pkg/detectors/cloudimage/cloudimage.go @@ -1,12 +1,13 @@ package cloudimage import ( - "context" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/cloudimage/cloudimage_test.go b/pkg/detectors/cloudimage/cloudimage_test.go index 00e00f173353c..30e18b48171e1 100644 --- a/pkg/detectors/cloudimage/cloudimage_test.go +++ b/pkg/detectors/cloudimage/cloudimage_test.go @@ -4,11 +4,12 @@ package cloudimage import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudmersive/cloudmersive.go b/pkg/detectors/cloudmersive/cloudmersive.go index 768b3c39e4d30..ba6d537e370b2 100644 --- a/pkg/detectors/cloudmersive/cloudmersive.go +++ b/pkg/detectors/cloudmersive/cloudmersive.go @@ -1,11 +1,12 @@ package cloudmersive import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/cloudmersive/cloudmersive_test.go b/pkg/detectors/cloudmersive/cloudmersive_test.go index e0acea511c660..9d4c3bab33b43 100644 --- a/pkg/detectors/cloudmersive/cloudmersive_test.go +++ b/pkg/detectors/cloudmersive/cloudmersive_test.go @@ -4,12 +4,14 @@ package cloudmersive import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudplan/cloudplan.go b/pkg/detectors/cloudplan/cloudplan.go index df0db176953e0..50450481ff425 100644 --- a/pkg/detectors/cloudplan/cloudplan.go +++ b/pkg/detectors/cloudplan/cloudplan.go @@ -1,11 +1,12 @@ package cloudplan import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/cloudplan/cloudplan_test.go b/pkg/detectors/cloudplan/cloudplan_test.go index 531d959b4c5fd..91006306e5b56 100644 --- a/pkg/detectors/cloudplan/cloudplan_test.go +++ b/pkg/detectors/cloudplan/cloudplan_test.go @@ -4,12 +4,14 @@ package cloudplan import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudsmith/cloudsmith.go b/pkg/detectors/cloudsmith/cloudsmith.go index 44d0125555e89..5e3a7e92929bd 100644 --- a/pkg/detectors/cloudsmith/cloudsmith.go +++ b/pkg/detectors/cloudsmith/cloudsmith.go @@ -1,12 +1,13 @@ package cloudsmith import ( - "context" "encoding/json" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/cloudsmith/cloudsmith_test.go b/pkg/detectors/cloudsmith/cloudsmith_test.go index 58fe57574567e..cbea83b848681 100644 --- a/pkg/detectors/cloudsmith/cloudsmith_test.go +++ b/pkg/detectors/cloudsmith/cloudsmith_test.go @@ -4,12 +4,14 @@ package cloudsmith import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloverly/cloverly.go b/pkg/detectors/cloverly/cloverly.go index 6736948e08970..c91cbd6e0ba65 100644 --- a/pkg/detectors/cloverly/cloverly.go +++ b/pkg/detectors/cloverly/cloverly.go @@ -1,12 +1,13 @@ package cloverly import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/cloverly/cloverly_test.go b/pkg/detectors/cloverly/cloverly_test.go index cb4d64794411b..a227a5397712b 100644 --- a/pkg/detectors/cloverly/cloverly_test.go +++ b/pkg/detectors/cloverly/cloverly_test.go @@ -4,12 +4,14 @@ package cloverly import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloze/cloze.go b/pkg/detectors/cloze/cloze.go index 06f18ed517991..a51c57c833ded 100644 --- a/pkg/detectors/cloze/cloze.go +++ b/pkg/detectors/cloze/cloze.go @@ -1,12 +1,13 @@ package cloze import ( - "context" "net/http" "net/url" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/cloze/cloze_test.go b/pkg/detectors/cloze/cloze_test.go index 73733f5edd975..aa45948ef4f29 100644 --- a/pkg/detectors/cloze/cloze_test.go +++ b/pkg/detectors/cloze/cloze_test.go @@ -4,11 +4,12 @@ package cloze import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/clustdoc/clustdoc.go b/pkg/detectors/clustdoc/clustdoc.go index 17bc35babb0cb..bee33f8ea0f1f 100644 --- a/pkg/detectors/clustdoc/clustdoc.go +++ b/pkg/detectors/clustdoc/clustdoc.go @@ -1,12 +1,13 @@ package clustdoc import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/clustdoc/clustdoc_test.go b/pkg/detectors/clustdoc/clustdoc_test.go index 35802efcedd54..e27f8375850a3 100644 --- a/pkg/detectors/clustdoc/clustdoc_test.go +++ b/pkg/detectors/clustdoc/clustdoc_test.go @@ -4,12 +4,14 @@ package clustdoc import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/coda/coda.go b/pkg/detectors/coda/coda.go index 109e7f56de23f..646333231e0df 100644 --- a/pkg/detectors/coda/coda.go +++ b/pkg/detectors/coda/coda.go @@ -1,12 +1,13 @@ package coda import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/coda/coda_test.go b/pkg/detectors/coda/coda_test.go index e260351d33e19..597f5d479a3ef 100644 --- a/pkg/detectors/coda/coda_test.go +++ b/pkg/detectors/coda/coda_test.go @@ -4,11 +4,12 @@ package coda import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/codacy/codacy.go b/pkg/detectors/codacy/codacy.go index d33f22bc870a2..0d721de6a6775 100644 --- a/pkg/detectors/codacy/codacy.go +++ b/pkg/detectors/codacy/codacy.go @@ -1,11 +1,12 @@ package codacy import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/codacy/codacy_test.go b/pkg/detectors/codacy/codacy_test.go index d086024efb8e1..4ca4aabf29485 100644 --- a/pkg/detectors/codacy/codacy_test.go +++ b/pkg/detectors/codacy/codacy_test.go @@ -4,12 +4,14 @@ package codacy import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/codeclimate/codeclimate.go b/pkg/detectors/codeclimate/codeclimate.go index f5ee30fc55947..c636b383f11c1 100644 --- a/pkg/detectors/codeclimate/codeclimate.go +++ b/pkg/detectors/codeclimate/codeclimate.go @@ -1,13 +1,14 @@ package codeclimate import ( - "context" "encoding/json" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/codeclimate/codeclimate_test.go b/pkg/detectors/codeclimate/codeclimate_test.go index 2bbffcb254086..2ffa95bcb94df 100644 --- a/pkg/detectors/codeclimate/codeclimate_test.go +++ b/pkg/detectors/codeclimate/codeclimate_test.go @@ -1,12 +1,14 @@ package codeclimate import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/codemagic/codemagic.go b/pkg/detectors/codemagic/codemagic.go index bef4692f09570..ee6d3decd82e7 100644 --- a/pkg/detectors/codemagic/codemagic.go +++ b/pkg/detectors/codemagic/codemagic.go @@ -1,11 +1,12 @@ package codemagic import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/codemagic/codemagic_test.go b/pkg/detectors/codemagic/codemagic_test.go index e3ab148ae2211..99b684723aca6 100644 --- a/pkg/detectors/codemagic/codemagic_test.go +++ b/pkg/detectors/codemagic/codemagic_test.go @@ -4,12 +4,14 @@ package codemagic import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/codequiry/codequiry.go b/pkg/detectors/codequiry/codequiry.go index 17ba6a0768a76..e8d9efa103de1 100644 --- a/pkg/detectors/codequiry/codequiry.go +++ b/pkg/detectors/codequiry/codequiry.go @@ -1,11 +1,12 @@ package codequiry import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/codequiry/codequiry_test.go b/pkg/detectors/codequiry/codequiry_test.go index 30e9e1751eab8..15ea295e3a9d3 100644 --- a/pkg/detectors/codequiry/codequiry_test.go +++ b/pkg/detectors/codequiry/codequiry_test.go @@ -4,12 +4,14 @@ package codequiry import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/coinapi/coinapi.go b/pkg/detectors/coinapi/coinapi.go index 016652aca1db0..48b7b82a9a418 100644 --- a/pkg/detectors/coinapi/coinapi.go +++ b/pkg/detectors/coinapi/coinapi.go @@ -1,11 +1,12 @@ package coinapi import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/coinapi/coinapi_test.go b/pkg/detectors/coinapi/coinapi_test.go index 9ee35f7f9d831..ec59b0fbc74ca 100644 --- a/pkg/detectors/coinapi/coinapi_test.go +++ b/pkg/detectors/coinapi/coinapi_test.go @@ -4,12 +4,14 @@ package coinapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/coinbase/coinbase.go b/pkg/detectors/coinbase/coinbase.go index ab13f820a07a0..525859e466266 100644 --- a/pkg/detectors/coinbase/coinbase.go +++ b/pkg/detectors/coinbase/coinbase.go @@ -1,12 +1,13 @@ package coinbase import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/coinbase/coinbase_test.go b/pkg/detectors/coinbase/coinbase_test.go index 5bb99e1876e92..f07b911cd6e89 100644 --- a/pkg/detectors/coinbase/coinbase_test.go +++ b/pkg/detectors/coinbase/coinbase_test.go @@ -4,7 +4,7 @@ package coinbase // import ( -// "context" +// "github.com/trufflesecurity/trufflehog/v3/pkg/context" // "fmt" // "testing" // "time" diff --git a/pkg/detectors/coinbase_waas/coinbase_waas.go b/pkg/detectors/coinbase_waas/coinbase_waas.go index 383ed83258331..7d8b7fb59bd3d 100644 --- a/pkg/detectors/coinbase_waas/coinbase_waas.go +++ b/pkg/detectors/coinbase_waas/coinbase_waas.go @@ -1,7 +1,6 @@ package coinbase_waas import ( - "context" "crypto/ecdsa" "crypto/x509" "encoding/pem" @@ -10,6 +9,8 @@ import ( "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/coinbase/waas-client-library-go/auth" "github.com/coinbase/waas-client-library-go/clients" v1clients "github.com/coinbase/waas-client-library-go/clients/v1" diff --git a/pkg/detectors/coinbase_waas/coinbase_waas_test.go b/pkg/detectors/coinbase_waas/coinbase_waas_test.go index 2a493be5e934b..fa2c8f730f4f3 100644 --- a/pkg/detectors/coinbase_waas/coinbase_waas_test.go +++ b/pkg/detectors/coinbase_waas/coinbase_waas_test.go @@ -4,12 +4,13 @@ package coinbase_waas import ( - "context" "encoding/base64" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/coinlayer/coinlayer.go b/pkg/detectors/coinlayer/coinlayer.go index 161f571444493..ad5f9ed2ab5e2 100644 --- a/pkg/detectors/coinlayer/coinlayer.go +++ b/pkg/detectors/coinlayer/coinlayer.go @@ -1,13 +1,14 @@ package coinlayer import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/coinlayer/coinlayer_test.go b/pkg/detectors/coinlayer/coinlayer_test.go index 095501355744d..0d5209e8afcb4 100644 --- a/pkg/detectors/coinlayer/coinlayer_test.go +++ b/pkg/detectors/coinlayer/coinlayer_test.go @@ -4,12 +4,14 @@ package coinlayer import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/coinlib/coinlib.go b/pkg/detectors/coinlib/coinlib.go index 6f8d330412e86..d40b8f87e8d0b 100644 --- a/pkg/detectors/coinlib/coinlib.go +++ b/pkg/detectors/coinlib/coinlib.go @@ -1,12 +1,13 @@ package coinlib import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/coinlib/coinlib_test.go b/pkg/detectors/coinlib/coinlib_test.go index bdcc00c2b9adc..1aa327e7fab22 100644 --- a/pkg/detectors/coinlib/coinlib_test.go +++ b/pkg/detectors/coinlib/coinlib_test.go @@ -4,12 +4,14 @@ package coinlib import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/coinmarketcap/coinmarketcap.go b/pkg/detectors/coinmarketcap/coinmarketcap.go index bb75a27b037ab..f1ace62e7533b 100644 --- a/pkg/detectors/coinmarketcap/coinmarketcap.go +++ b/pkg/detectors/coinmarketcap/coinmarketcap.go @@ -1,11 +1,12 @@ package coinmarketcap import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/coinmarketcap/coinmarketcap_test.go b/pkg/detectors/coinmarketcap/coinmarketcap_test.go index a456ed9bb1264..dc6f44d4c8c35 100644 --- a/pkg/detectors/coinmarketcap/coinmarketcap_test.go +++ b/pkg/detectors/coinmarketcap/coinmarketcap_test.go @@ -4,12 +4,14 @@ package coinmarketcap import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/collect2/collect2.go b/pkg/detectors/collect2/collect2.go index 79bcb0b386081..cc5556a91ebfa 100644 --- a/pkg/detectors/collect2/collect2.go +++ b/pkg/detectors/collect2/collect2.go @@ -1,12 +1,13 @@ package collect2 import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/collect2/collect2_test.go b/pkg/detectors/collect2/collect2_test.go index 64f058a092509..bc96ba1405ce6 100644 --- a/pkg/detectors/collect2/collect2_test.go +++ b/pkg/detectors/collect2/collect2_test.go @@ -4,12 +4,14 @@ package collect2 import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/column/column.go b/pkg/detectors/column/column.go index 4c2ea840325a2..d96972d3a0d7c 100644 --- a/pkg/detectors/column/column.go +++ b/pkg/detectors/column/column.go @@ -1,7 +1,6 @@ package column import ( - "context" "encoding/base64" "fmt" "log" @@ -9,6 +8,8 @@ import ( "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/column/column_test.go b/pkg/detectors/column/column_test.go index 6e9b22e4f5ccc..3fce80b49348a 100644 --- a/pkg/detectors/column/column_test.go +++ b/pkg/detectors/column/column_test.go @@ -4,11 +4,12 @@ package column import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/commercejs/commercejs.go b/pkg/detectors/commercejs/commercejs.go index e1347cfa2dfe4..3d2cc14af5a06 100644 --- a/pkg/detectors/commercejs/commercejs.go +++ b/pkg/detectors/commercejs/commercejs.go @@ -1,11 +1,12 @@ package commercejs import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/commercejs/commercejs_test.go b/pkg/detectors/commercejs/commercejs_test.go index 0c39e067e92a8..05fa19d9cdbb3 100644 --- a/pkg/detectors/commercejs/commercejs_test.go +++ b/pkg/detectors/commercejs/commercejs_test.go @@ -4,12 +4,14 @@ package commercejs import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/commodities/commodities.go b/pkg/detectors/commodities/commodities.go index 527e1906319a5..4fa49abe491ae 100644 --- a/pkg/detectors/commodities/commodities.go +++ b/pkg/detectors/commodities/commodities.go @@ -1,13 +1,14 @@ package commodities import ( - "context" "io" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/commodities/commodities_test.go b/pkg/detectors/commodities/commodities_test.go index 0c0ef7c2dbc0c..5385eef762cd0 100644 --- a/pkg/detectors/commodities/commodities_test.go +++ b/pkg/detectors/commodities/commodities_test.go @@ -4,12 +4,14 @@ package commodities import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/companyhub/companyhub.go b/pkg/detectors/companyhub/companyhub.go index b7621bc8c660a..f38e3fb2a6229 100644 --- a/pkg/detectors/companyhub/companyhub.go +++ b/pkg/detectors/companyhub/companyhub.go @@ -1,12 +1,13 @@ package companyhub import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/companyhub/companyhub_test.go b/pkg/detectors/companyhub/companyhub_test.go index 877eef42e4e75..8e0fd08eebb35 100644 --- a/pkg/detectors/companyhub/companyhub_test.go +++ b/pkg/detectors/companyhub/companyhub_test.go @@ -4,12 +4,14 @@ package companyhub import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/confluent/confluent.go b/pkg/detectors/confluent/confluent.go index 0257c506c0c86..4f2eb6f493567 100644 --- a/pkg/detectors/confluent/confluent.go +++ b/pkg/detectors/confluent/confluent.go @@ -1,13 +1,14 @@ package confluent import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/confluent/confluent_test.go b/pkg/detectors/confluent/confluent_test.go index 91b535decaa57..276b9205ff0f7 100644 --- a/pkg/detectors/confluent/confluent_test.go +++ b/pkg/detectors/confluent/confluent_test.go @@ -4,12 +4,14 @@ package confluent import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go b/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go index b1557473808b9..c06e732ad10c0 100644 --- a/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go +++ b/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go @@ -1,8 +1,8 @@ package contentfulpersonalaccesstoken import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "net/http" "regexp" "strings" diff --git a/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken_test.go b/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken_test.go index f69286595b345..1af33456aecdc 100644 --- a/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken_test.go +++ b/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken_test.go @@ -4,12 +4,14 @@ package contentfulpersonalaccesstoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/conversiontools/conversiontools.go b/pkg/detectors/conversiontools/conversiontools.go index 64adf6ffe61e6..c3e73d3978665 100644 --- a/pkg/detectors/conversiontools/conversiontools.go +++ b/pkg/detectors/conversiontools/conversiontools.go @@ -1,12 +1,13 @@ package conversiontools import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/conversiontools/conversiontools_test.go b/pkg/detectors/conversiontools/conversiontools_test.go index 748c3567c5a7b..64e69bdca8758 100644 --- a/pkg/detectors/conversiontools/conversiontools_test.go +++ b/pkg/detectors/conversiontools/conversiontools_test.go @@ -4,12 +4,14 @@ package conversiontools import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/convertapi/convertapi.go b/pkg/detectors/convertapi/convertapi.go index 9513b6d620751..000aa85643594 100644 --- a/pkg/detectors/convertapi/convertapi.go +++ b/pkg/detectors/convertapi/convertapi.go @@ -1,12 +1,13 @@ package convertapi import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/convertapi/convertapi_test.go b/pkg/detectors/convertapi/convertapi_test.go index 89acb1db58235..ddd7a772d1aad 100644 --- a/pkg/detectors/convertapi/convertapi_test.go +++ b/pkg/detectors/convertapi/convertapi_test.go @@ -4,12 +4,14 @@ package convertapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/convertkit/convertkit.go b/pkg/detectors/convertkit/convertkit.go index 9f9dbbf2fb498..9b55d67197919 100644 --- a/pkg/detectors/convertkit/convertkit.go +++ b/pkg/detectors/convertkit/convertkit.go @@ -1,11 +1,12 @@ package convertkit import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/convertkit/convertkit_test.go b/pkg/detectors/convertkit/convertkit_test.go index 2b773d28c04ea..27f6975edaf04 100644 --- a/pkg/detectors/convertkit/convertkit_test.go +++ b/pkg/detectors/convertkit/convertkit_test.go @@ -4,12 +4,14 @@ package convertkit import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/convier/convier.go b/pkg/detectors/convier/convier.go index a0d2732ce5b6f..2e66e16abb70e 100644 --- a/pkg/detectors/convier/convier.go +++ b/pkg/detectors/convier/convier.go @@ -1,7 +1,6 @@ package convier import ( - "context" "fmt" "io" "net/http" @@ -9,6 +8,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/convier/convier_test.go b/pkg/detectors/convier/convier_test.go index 190274a00bf43..f1134c4bf5e35 100644 --- a/pkg/detectors/convier/convier_test.go +++ b/pkg/detectors/convier/convier_test.go @@ -4,11 +4,12 @@ package convier import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/copper/copper.go b/pkg/detectors/copper/copper.go index b25b23a0dc538..cf94ddf9da325 100644 --- a/pkg/detectors/copper/copper.go +++ b/pkg/detectors/copper/copper.go @@ -1,11 +1,12 @@ package copper import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/copper/copper_test.go b/pkg/detectors/copper/copper_test.go index cf7d9f02110f2..c6613b09bda7d 100644 --- a/pkg/detectors/copper/copper_test.go +++ b/pkg/detectors/copper/copper_test.go @@ -4,12 +4,14 @@ package copper import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/couchbase/couchbase.go b/pkg/detectors/couchbase/couchbase.go index 09a1a4379a0d7..84d48f8190e70 100644 --- a/pkg/detectors/couchbase/couchbase.go +++ b/pkg/detectors/couchbase/couchbase.go @@ -1,7 +1,6 @@ package couchbase import ( - "context" "fmt" "log" "regexp" @@ -9,7 +8,10 @@ import ( "time" "unicode" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/couchbase/gocb/v2" + "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/couchbase/couchbase_test.go b/pkg/detectors/couchbase/couchbase_test.go index 03b340879d9ac..dd34892d0bb71 100644 --- a/pkg/detectors/couchbase/couchbase_test.go +++ b/pkg/detectors/couchbase/couchbase_test.go @@ -4,12 +4,14 @@ package couchbase import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/countrylayer/countrylayer.go b/pkg/detectors/countrylayer/countrylayer.go index 6726c05361522..c63cbd05ae26d 100644 --- a/pkg/detectors/countrylayer/countrylayer.go +++ b/pkg/detectors/countrylayer/countrylayer.go @@ -1,12 +1,13 @@ package countrylayer import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/countrylayer/countrylayer_test.go b/pkg/detectors/countrylayer/countrylayer_test.go index c70dcc65ada03..5c8f52ee35e91 100644 --- a/pkg/detectors/countrylayer/countrylayer_test.go +++ b/pkg/detectors/countrylayer/countrylayer_test.go @@ -4,12 +4,14 @@ package countrylayer import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/courier/courier.go b/pkg/detectors/courier/courier.go index 84419ddf86901..450af7c26c478 100644 --- a/pkg/detectors/courier/courier.go +++ b/pkg/detectors/courier/courier.go @@ -1,12 +1,13 @@ package courier import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/courier/courier_test.go b/pkg/detectors/courier/courier_test.go index 2b6f818035751..fe91bc5074b46 100644 --- a/pkg/detectors/courier/courier_test.go +++ b/pkg/detectors/courier/courier_test.go @@ -4,12 +4,14 @@ package courier import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/coveralls/coveralls.go b/pkg/detectors/coveralls/coveralls.go index c03bfe6edd8f3..3dd504760ac80 100644 --- a/pkg/detectors/coveralls/coveralls.go +++ b/pkg/detectors/coveralls/coveralls.go @@ -1,12 +1,13 @@ package coveralls import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/coveralls/coveralls_test.go b/pkg/detectors/coveralls/coveralls_test.go index 2b20f8ecee3b3..a14326552dbcd 100644 --- a/pkg/detectors/coveralls/coveralls_test.go +++ b/pkg/detectors/coveralls/coveralls_test.go @@ -4,12 +4,14 @@ package coveralls import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/craftmypdf/craftmypdf.go b/pkg/detectors/craftmypdf/craftmypdf.go index 894d40bb89ba4..cc8e98676a66c 100644 --- a/pkg/detectors/craftmypdf/craftmypdf.go +++ b/pkg/detectors/craftmypdf/craftmypdf.go @@ -1,11 +1,12 @@ package craftmypdf import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/craftmypdf/craftmypdf_test.go b/pkg/detectors/craftmypdf/craftmypdf_test.go index b2952d2144085..b3bf41b465bd5 100644 --- a/pkg/detectors/craftmypdf/craftmypdf_test.go +++ b/pkg/detectors/craftmypdf/craftmypdf_test.go @@ -4,12 +4,14 @@ package craftmypdf import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go b/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go index 46ca3d55e8f5d..3d207e3e603e5 100644 --- a/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go +++ b/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go @@ -1,11 +1,12 @@ package crossbrowsertesting import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/crossbrowsertesting/crossbrowsertesting_test.go b/pkg/detectors/crossbrowsertesting/crossbrowsertesting_test.go index 03ffbffcb69bb..b201ae4ab7026 100644 --- a/pkg/detectors/crossbrowsertesting/crossbrowsertesting_test.go +++ b/pkg/detectors/crossbrowsertesting/crossbrowsertesting_test.go @@ -4,12 +4,14 @@ package crossbrowsertesting import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/crowdin/crowdin.go b/pkg/detectors/crowdin/crowdin.go index 1a742241d2131..1790b391c2b03 100644 --- a/pkg/detectors/crowdin/crowdin.go +++ b/pkg/detectors/crowdin/crowdin.go @@ -1,12 +1,13 @@ package crowdin import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/crowdin/crowdin_test.go b/pkg/detectors/crowdin/crowdin_test.go index 10a050d8cb044..6bd31ce4f698c 100644 --- a/pkg/detectors/crowdin/crowdin_test.go +++ b/pkg/detectors/crowdin/crowdin_test.go @@ -4,12 +4,14 @@ package crowdin import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cryptocompare/cryptocompare.go b/pkg/detectors/cryptocompare/cryptocompare.go index b10bc5eb0ad3b..a02fdf09c9f50 100644 --- a/pkg/detectors/cryptocompare/cryptocompare.go +++ b/pkg/detectors/cryptocompare/cryptocompare.go @@ -1,12 +1,13 @@ package cryptocompare import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/cryptocompare/cryptocompare_test.go b/pkg/detectors/cryptocompare/cryptocompare_test.go index 49f069a3c9930..251a33067d674 100644 --- a/pkg/detectors/cryptocompare/cryptocompare_test.go +++ b/pkg/detectors/cryptocompare/cryptocompare_test.go @@ -4,12 +4,14 @@ package cryptocompare import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/currencycloud/currencycloud.go b/pkg/detectors/currencycloud/currencycloud.go index 66c0d433a3ed2..e10a20f2fbe77 100644 --- a/pkg/detectors/currencycloud/currencycloud.go +++ b/pkg/detectors/currencycloud/currencycloud.go @@ -1,13 +1,14 @@ package currencycloud import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/currencycloud/currencycloud_test.go b/pkg/detectors/currencycloud/currencycloud_test.go index 72d4ff92f2885..18f697eb0542d 100644 --- a/pkg/detectors/currencycloud/currencycloud_test.go +++ b/pkg/detectors/currencycloud/currencycloud_test.go @@ -4,11 +4,12 @@ package currencycloud import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/currencyfreaks/currencyfreaks.go b/pkg/detectors/currencyfreaks/currencyfreaks.go index d796d4ab4b3b4..b71f2b6d318ad 100644 --- a/pkg/detectors/currencyfreaks/currencyfreaks.go +++ b/pkg/detectors/currencyfreaks/currencyfreaks.go @@ -1,11 +1,12 @@ package currencyfreaks import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/currencyfreaks/currencyfreaks_test.go b/pkg/detectors/currencyfreaks/currencyfreaks_test.go index e3daa56b1e71f..08607fe396ff0 100644 --- a/pkg/detectors/currencyfreaks/currencyfreaks_test.go +++ b/pkg/detectors/currencyfreaks/currencyfreaks_test.go @@ -4,12 +4,14 @@ package currencyfreaks import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/currencylayer/currencylayer.go b/pkg/detectors/currencylayer/currencylayer.go index 215dd737caa4a..c7955c97fd569 100644 --- a/pkg/detectors/currencylayer/currencylayer.go +++ b/pkg/detectors/currencylayer/currencylayer.go @@ -1,13 +1,14 @@ package currencylayer import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/currencylayer/currencylayer_test.go b/pkg/detectors/currencylayer/currencylayer_test.go index 5cc7958d85830..497e9fa9b0853 100644 --- a/pkg/detectors/currencylayer/currencylayer_test.go +++ b/pkg/detectors/currencylayer/currencylayer_test.go @@ -4,12 +4,14 @@ package currencylayer import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/currencyscoop/currencyscoop.go b/pkg/detectors/currencyscoop/currencyscoop.go index 8071d45c8c953..c88cf985dc708 100644 --- a/pkg/detectors/currencyscoop/currencyscoop.go +++ b/pkg/detectors/currencyscoop/currencyscoop.go @@ -1,12 +1,13 @@ package currencyscoop import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/currencyscoop/currencyscoop_test.go b/pkg/detectors/currencyscoop/currencyscoop_test.go index 378a11cff3ba7..2c1d4b78ebcee 100644 --- a/pkg/detectors/currencyscoop/currencyscoop_test.go +++ b/pkg/detectors/currencyscoop/currencyscoop_test.go @@ -4,12 +4,14 @@ package currencyscoop import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/currentsapi/currentsapi.go b/pkg/detectors/currentsapi/currentsapi.go index c3129989bab84..b0bbee240c37d 100644 --- a/pkg/detectors/currentsapi/currentsapi.go +++ b/pkg/detectors/currentsapi/currentsapi.go @@ -1,11 +1,12 @@ package currentsapi import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/currentsapi/currentsapi_test.go b/pkg/detectors/currentsapi/currentsapi_test.go index 63a8e8ed5e6b6..040fcda661046 100644 --- a/pkg/detectors/currentsapi/currentsapi_test.go +++ b/pkg/detectors/currentsapi/currentsapi_test.go @@ -4,12 +4,14 @@ package currentsapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/customerguru/customerguru.go b/pkg/detectors/customerguru/customerguru.go index 4347b9a85296d..949d39aa3ee5d 100644 --- a/pkg/detectors/customerguru/customerguru.go +++ b/pkg/detectors/customerguru/customerguru.go @@ -1,11 +1,12 @@ package customerguru import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/customerguru/customerguru_test.go b/pkg/detectors/customerguru/customerguru_test.go index 3c16c76aa8061..df8936a8c73f9 100644 --- a/pkg/detectors/customerguru/customerguru_test.go +++ b/pkg/detectors/customerguru/customerguru_test.go @@ -4,12 +4,14 @@ package customerguru import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/customerio/customerio.go b/pkg/detectors/customerio/customerio.go index 771d1260c6b3a..a612fa34efee1 100644 --- a/pkg/detectors/customerio/customerio.go +++ b/pkg/detectors/customerio/customerio.go @@ -1,13 +1,14 @@ package customerio import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/customerio/customerio_test.go b/pkg/detectors/customerio/customerio_test.go index a28613e0433b0..e4d907984cb2c 100644 --- a/pkg/detectors/customerio/customerio_test.go +++ b/pkg/detectors/customerio/customerio_test.go @@ -4,12 +4,14 @@ package customerio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/d7network/d7network.go b/pkg/detectors/d7network/d7network.go index a8d4608c9f1c6..c37dac89f9cd4 100644 --- a/pkg/detectors/d7network/d7network.go +++ b/pkg/detectors/d7network/d7network.go @@ -1,11 +1,12 @@ package d7network import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" ) diff --git a/pkg/detectors/d7network/d7network_test.go b/pkg/detectors/d7network/d7network_test.go index 737362aae3c6f..6711ea0f8b071 100644 --- a/pkg/detectors/d7network/d7network_test.go +++ b/pkg/detectors/d7network/d7network_test.go @@ -4,12 +4,14 @@ package d7network import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dailyco/dailyco.go b/pkg/detectors/dailyco/dailyco.go index 77de08308be99..2997c405365cf 100644 --- a/pkg/detectors/dailyco/dailyco.go +++ b/pkg/detectors/dailyco/dailyco.go @@ -1,12 +1,13 @@ package dailyco import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/dailyco/dailyco_test.go b/pkg/detectors/dailyco/dailyco_test.go index 8832457eb5c4a..3ae94bed8c1fc 100644 --- a/pkg/detectors/dailyco/dailyco_test.go +++ b/pkg/detectors/dailyco/dailyco_test.go @@ -4,12 +4,14 @@ package dailyco import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dandelion/dandelion.go b/pkg/detectors/dandelion/dandelion.go index 973db30138005..5f8bc22e14700 100644 --- a/pkg/detectors/dandelion/dandelion.go +++ b/pkg/detectors/dandelion/dandelion.go @@ -1,12 +1,13 @@ package dandelion import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/dandelion/dandelion_test.go b/pkg/detectors/dandelion/dandelion_test.go index 3f7f376312e48..7926bb458c775 100644 --- a/pkg/detectors/dandelion/dandelion_test.go +++ b/pkg/detectors/dandelion/dandelion_test.go @@ -4,12 +4,14 @@ package dandelion import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dareboost/dareboost.go b/pkg/detectors/dareboost/dareboost.go index fbb13093306d3..1a6b142465a0b 100644 --- a/pkg/detectors/dareboost/dareboost.go +++ b/pkg/detectors/dareboost/dareboost.go @@ -1,12 +1,13 @@ package dareboost import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/dareboost/dareboost_test.go b/pkg/detectors/dareboost/dareboost_test.go index 356ebace0d8fd..cb871721e9c39 100644 --- a/pkg/detectors/dareboost/dareboost_test.go +++ b/pkg/detectors/dareboost/dareboost_test.go @@ -4,12 +4,14 @@ package dareboost import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/databox/databox.go b/pkg/detectors/databox/databox.go index 4c36b7644d371..8b6066d9c57b9 100644 --- a/pkg/detectors/databox/databox.go +++ b/pkg/detectors/databox/databox.go @@ -1,13 +1,14 @@ package databox import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/databox/databox_test.go b/pkg/detectors/databox/databox_test.go index 4492d4cdb412b..f6fbaf9e75312 100644 --- a/pkg/detectors/databox/databox_test.go +++ b/pkg/detectors/databox/databox_test.go @@ -4,12 +4,14 @@ package databox import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/databrickstoken/databrickstoken.go b/pkg/detectors/databrickstoken/databrickstoken.go index 0429bdc74d708..8c2c8bc68405a 100644 --- a/pkg/detectors/databrickstoken/databrickstoken.go +++ b/pkg/detectors/databrickstoken/databrickstoken.go @@ -1,12 +1,13 @@ package databrickstoken import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/databrickstoken/databrickstoken_test.go b/pkg/detectors/databrickstoken/databrickstoken_test.go index 80274bdd8069a..9456520a7f685 100644 --- a/pkg/detectors/databrickstoken/databrickstoken_test.go +++ b/pkg/detectors/databrickstoken/databrickstoken_test.go @@ -4,11 +4,12 @@ package databrickstoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/datadogtoken/datadogtoken.go b/pkg/detectors/datadogtoken/datadogtoken.go index eeda41ae36c9c..52a3932f3c141 100644 --- a/pkg/detectors/datadogtoken/datadogtoken.go +++ b/pkg/detectors/datadogtoken/datadogtoken.go @@ -1,11 +1,12 @@ package datadogtoken import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/datadogtoken/datadogtoken_test.go b/pkg/detectors/datadogtoken/datadogtoken_test.go index 7a56810fde485..8e3b831f7b196 100644 --- a/pkg/detectors/datadogtoken/datadogtoken_test.go +++ b/pkg/detectors/datadogtoken/datadogtoken_test.go @@ -4,12 +4,14 @@ package datadogtoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/datagov/datagov.go b/pkg/detectors/datagov/datagov.go index 2bc2c06cb4ccd..487a52307b1d9 100644 --- a/pkg/detectors/datagov/datagov.go +++ b/pkg/detectors/datagov/datagov.go @@ -1,12 +1,13 @@ package datagov import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/datagov/datagov_test.go b/pkg/detectors/datagov/datagov_test.go index 41903fd76b2af..d4bcbc74f4396 100644 --- a/pkg/detectors/datagov/datagov_test.go +++ b/pkg/detectors/datagov/datagov_test.go @@ -4,12 +4,14 @@ package datagov import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/debounce/debounce.go b/pkg/detectors/debounce/debounce.go index f63e200ce3b25..740312a7a6775 100644 --- a/pkg/detectors/debounce/debounce.go +++ b/pkg/detectors/debounce/debounce.go @@ -1,11 +1,12 @@ package debounce import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/debounce/debounce_test.go b/pkg/detectors/debounce/debounce_test.go index 4d9cc1a3e6bf0..008d47de3f466 100644 --- a/pkg/detectors/debounce/debounce_test.go +++ b/pkg/detectors/debounce/debounce_test.go @@ -4,12 +4,14 @@ package debounce import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/deepai/deepai.go b/pkg/detectors/deepai/deepai.go index 390ddb4519752..acee666893192 100644 --- a/pkg/detectors/deepai/deepai.go +++ b/pkg/detectors/deepai/deepai.go @@ -2,13 +2,14 @@ package deepai import ( "bytes" - "context" "io" "mime/multipart" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/deepai/deepai_test.go b/pkg/detectors/deepai/deepai_test.go index a378bac3f63a4..b9c0c106e93d8 100644 --- a/pkg/detectors/deepai/deepai_test.go +++ b/pkg/detectors/deepai/deepai_test.go @@ -4,12 +4,14 @@ package deepai import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/deepgram/deepgram.go b/pkg/detectors/deepgram/deepgram.go index bdab52a9b1c5c..560e484d381c5 100644 --- a/pkg/detectors/deepgram/deepgram.go +++ b/pkg/detectors/deepgram/deepgram.go @@ -1,12 +1,13 @@ package deepgram import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/deepgram/deepgram_test.go b/pkg/detectors/deepgram/deepgram_test.go index 628164a6aea65..4551166acacbe 100644 --- a/pkg/detectors/deepgram/deepgram_test.go +++ b/pkg/detectors/deepgram/deepgram_test.go @@ -4,12 +4,14 @@ package deepgram import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/delighted/delighted.go b/pkg/detectors/delighted/delighted.go index 5aad8cf9e38f9..866b615ae33fb 100644 --- a/pkg/detectors/delighted/delighted.go +++ b/pkg/detectors/delighted/delighted.go @@ -1,13 +1,14 @@ package delighted import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/delighted/delighted_test.go b/pkg/detectors/delighted/delighted_test.go index 3e4c473c86093..78de29b7a8953 100644 --- a/pkg/detectors/delighted/delighted_test.go +++ b/pkg/detectors/delighted/delighted_test.go @@ -4,12 +4,14 @@ package delighted import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/demio/demio.go b/pkg/detectors/demio/demio.go index 22fce3ca29aea..fdad6598d02a5 100644 --- a/pkg/detectors/demio/demio.go +++ b/pkg/detectors/demio/demio.go @@ -1,12 +1,13 @@ package demio import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/demio/demio_test.go b/pkg/detectors/demio/demio_test.go index 67d24aa26227f..b66f7e0c20616 100644 --- a/pkg/detectors/demio/demio_test.go +++ b/pkg/detectors/demio/demio_test.go @@ -1,12 +1,14 @@ package demio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/deno/denodeploy.go b/pkg/detectors/deno/denodeploy.go index 5fc20bb453a1b..6133ef051bf5a 100644 --- a/pkg/detectors/deno/denodeploy.go +++ b/pkg/detectors/deno/denodeploy.go @@ -1,13 +1,14 @@ package denodeploy import ( - "context" "encoding/json" "fmt" "io" "net/http" "regexp" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/deno/denodeploy_test.go b/pkg/detectors/deno/denodeploy_test.go index 4b6189ba18c93..3f3c73a54a2f2 100644 --- a/pkg/detectors/deno/denodeploy_test.go +++ b/pkg/detectors/deno/denodeploy_test.go @@ -4,11 +4,12 @@ package denodeploy import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/deputy/deputy.go b/pkg/detectors/deputy/deputy.go index e9033c9cbe653..1d148d827eb1a 100644 --- a/pkg/detectors/deputy/deputy.go +++ b/pkg/detectors/deputy/deputy.go @@ -1,12 +1,13 @@ package deputy import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/deputy/deputy_test.go b/pkg/detectors/deputy/deputy_test.go index bbd6d038af700..7827b087c8059 100644 --- a/pkg/detectors/deputy/deputy_test.go +++ b/pkg/detectors/deputy/deputy_test.go @@ -4,12 +4,14 @@ package deputy import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/detectify/detectify.go b/pkg/detectors/detectify/detectify.go index d7896fdd87380..9fadb40949c03 100644 --- a/pkg/detectors/detectify/detectify.go +++ b/pkg/detectors/detectify/detectify.go @@ -1,11 +1,12 @@ package detectify import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/detectify/detectify_test.go b/pkg/detectors/detectify/detectify_test.go index 6fcebae6e5b45..e3ba668735782 100644 --- a/pkg/detectors/detectify/detectify_test.go +++ b/pkg/detectors/detectify/detectify_test.go @@ -4,12 +4,14 @@ package detectify import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/detectlanguage/detectlanguage.go b/pkg/detectors/detectlanguage/detectlanguage.go index 881e8336adc54..3f092e50a7613 100644 --- a/pkg/detectors/detectlanguage/detectlanguage.go +++ b/pkg/detectors/detectlanguage/detectlanguage.go @@ -1,12 +1,13 @@ package detectlanguage import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/detectlanguage/detectlanguage_test.go b/pkg/detectors/detectlanguage/detectlanguage_test.go index 26874b4aa39dd..a4b4272784e97 100644 --- a/pkg/detectors/detectlanguage/detectlanguage_test.go +++ b/pkg/detectors/detectlanguage/detectlanguage_test.go @@ -4,12 +4,14 @@ package detectlanguage import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/detectors.go b/pkg/detectors/detectors.go index ba50c9fbc82d6..359a3f4276e0e 100644 --- a/pkg/detectors/detectors.go +++ b/pkg/detectors/detectors.go @@ -1,15 +1,14 @@ package detectors import ( - "context" "crypto/rand" + "errors" "math/big" "net/url" "strings" "unicode" - "errors" - + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/source_metadatapb" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/sourcespb" diff --git a/pkg/detectors/dfuse/dfuse.go b/pkg/detectors/dfuse/dfuse.go index 8b170f8bab699..906c792a1621d 100644 --- a/pkg/detectors/dfuse/dfuse.go +++ b/pkg/detectors/dfuse/dfuse.go @@ -1,11 +1,12 @@ package dfuse import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/dfuse/dfuse_test.go b/pkg/detectors/dfuse/dfuse_test.go index 5f603318a9dca..de08ca2060697 100644 --- a/pkg/detectors/dfuse/dfuse_test.go +++ b/pkg/detectors/dfuse/dfuse_test.go @@ -4,12 +4,14 @@ package dfuse import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/diffbot/diffbot.go b/pkg/detectors/diffbot/diffbot.go index 47fb787f98d45..a34b3aa22acf6 100644 --- a/pkg/detectors/diffbot/diffbot.go +++ b/pkg/detectors/diffbot/diffbot.go @@ -1,7 +1,6 @@ package diffbot import ( - "context" "fmt" "io" "net/http" @@ -9,6 +8,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/diffbot/diffbot_test.go b/pkg/detectors/diffbot/diffbot_test.go index f0e7d6d9c4023..3f8e83a1c73e1 100644 --- a/pkg/detectors/diffbot/diffbot_test.go +++ b/pkg/detectors/diffbot/diffbot_test.go @@ -4,11 +4,12 @@ package diffbot import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/diggernaut/diggernaut.go b/pkg/detectors/diggernaut/diggernaut.go index 4b48f029d0020..38b3832aeb113 100644 --- a/pkg/detectors/diggernaut/diggernaut.go +++ b/pkg/detectors/diggernaut/diggernaut.go @@ -1,12 +1,13 @@ package diggernaut import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/diggernaut/diggernaut_test.go b/pkg/detectors/diggernaut/diggernaut_test.go index 46d49b0c22844..a9d650912fe2a 100644 --- a/pkg/detectors/diggernaut/diggernaut_test.go +++ b/pkg/detectors/diggernaut/diggernaut_test.go @@ -4,12 +4,14 @@ package diggernaut import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/digitaloceantoken/digitaloceantoken.go b/pkg/detectors/digitaloceantoken/digitaloceantoken.go index 869bdd3e593f3..fe6ac22eb8dd3 100644 --- a/pkg/detectors/digitaloceantoken/digitaloceantoken.go +++ b/pkg/detectors/digitaloceantoken/digitaloceantoken.go @@ -1,12 +1,13 @@ package digitaloceantoken import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/digitaloceantoken/digitaloceantoken_test.go b/pkg/detectors/digitaloceantoken/digitaloceantoken_test.go index d1ff858769526..eb5d17e6932fa 100644 --- a/pkg/detectors/digitaloceantoken/digitaloceantoken_test.go +++ b/pkg/detectors/digitaloceantoken/digitaloceantoken_test.go @@ -4,8 +4,8 @@ package digitaloceantoken import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/digitaloceanv2/digitaloceanv2.go b/pkg/detectors/digitaloceanv2/digitaloceanv2.go index bc0dd5c10edff..c5eda4d9679f2 100644 --- a/pkg/detectors/digitaloceanv2/digitaloceanv2.go +++ b/pkg/detectors/digitaloceanv2/digitaloceanv2.go @@ -1,13 +1,14 @@ package digitaloceanv2 import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/digitaloceanv2/digitaloceanv2_test.go b/pkg/detectors/digitaloceanv2/digitaloceanv2_test.go index 61c067d920a1e..1806945e305df 100644 --- a/pkg/detectors/digitaloceanv2/digitaloceanv2_test.go +++ b/pkg/detectors/digitaloceanv2/digitaloceanv2_test.go @@ -4,12 +4,14 @@ package digitaloceanv2 import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/discordbottoken/discordbottoken.go b/pkg/detectors/discordbottoken/discordbottoken.go index d126e384c79f9..7013cbb063fc6 100644 --- a/pkg/detectors/discordbottoken/discordbottoken.go +++ b/pkg/detectors/discordbottoken/discordbottoken.go @@ -1,12 +1,13 @@ package discordbottoken import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/discordbottoken/discordbottoken_test.go b/pkg/detectors/discordbottoken/discordbottoken_test.go index 400b7c933cac3..a1a5f67c6d93c 100644 --- a/pkg/detectors/discordbottoken/discordbottoken_test.go +++ b/pkg/detectors/discordbottoken/discordbottoken_test.go @@ -4,12 +4,14 @@ package discordbottoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/discordwebhook/discordwebhook.go b/pkg/detectors/discordwebhook/discordwebhook.go index 2db4f57d3a97f..27e60c433dbd9 100644 --- a/pkg/detectors/discordwebhook/discordwebhook.go +++ b/pkg/detectors/discordwebhook/discordwebhook.go @@ -1,11 +1,12 @@ package discordwebhook import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/discordwebhook/discordwebhook_test.go b/pkg/detectors/discordwebhook/discordwebhook_test.go index 50a8747154297..c4c3a630200d9 100644 --- a/pkg/detectors/discordwebhook/discordwebhook_test.go +++ b/pkg/detectors/discordwebhook/discordwebhook_test.go @@ -4,12 +4,14 @@ package discordwebhook import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/disqus/disqus.go b/pkg/detectors/disqus/disqus.go index 565753fed9789..121a0da04dac7 100644 --- a/pkg/detectors/disqus/disqus.go +++ b/pkg/detectors/disqus/disqus.go @@ -1,11 +1,12 @@ package disqus import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/disqus/disqus_test.go b/pkg/detectors/disqus/disqus_test.go index 2c8d073012d18..436518ddb2774 100644 --- a/pkg/detectors/disqus/disqus_test.go +++ b/pkg/detectors/disqus/disqus_test.go @@ -4,12 +4,14 @@ package disqus import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ditto/ditto.go b/pkg/detectors/ditto/ditto.go index 5ade311d555dc..1deb664431d65 100644 --- a/pkg/detectors/ditto/ditto.go +++ b/pkg/detectors/ditto/ditto.go @@ -1,12 +1,13 @@ package ditto import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ditto/ditto_test.go b/pkg/detectors/ditto/ditto_test.go index 5871fc377d3cd..2e0acfea236bb 100644 --- a/pkg/detectors/ditto/ditto_test.go +++ b/pkg/detectors/ditto/ditto_test.go @@ -4,12 +4,14 @@ package ditto import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dnscheck/dnscheck.go b/pkg/detectors/dnscheck/dnscheck.go index 9abb4540523f9..fb60e3f526df3 100644 --- a/pkg/detectors/dnscheck/dnscheck.go +++ b/pkg/detectors/dnscheck/dnscheck.go @@ -1,11 +1,12 @@ package dnscheck import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/dnscheck/dnscheck_test.go b/pkg/detectors/dnscheck/dnscheck_test.go index 4b547a8fc12a2..e64097149c055 100644 --- a/pkg/detectors/dnscheck/dnscheck_test.go +++ b/pkg/detectors/dnscheck/dnscheck_test.go @@ -4,12 +4,14 @@ package dnscheck import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dockerhub/dockerhub.go b/pkg/detectors/dockerhub/dockerhub.go index d304e3d3d2cf5..536fd9f00652e 100644 --- a/pkg/detectors/dockerhub/dockerhub.go +++ b/pkg/detectors/dockerhub/dockerhub.go @@ -1,13 +1,14 @@ package dockerhub import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/dockerhub/dockerhub_test.go b/pkg/detectors/dockerhub/dockerhub_test.go index b63a4e70fe226..b16ca281fa6e0 100644 --- a/pkg/detectors/dockerhub/dockerhub_test.go +++ b/pkg/detectors/dockerhub/dockerhub_test.go @@ -4,11 +4,12 @@ package dockerhub import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/docparser/docparser.go b/pkg/detectors/docparser/docparser.go index ce9a16fd5ef87..0a6eb8bc80034 100644 --- a/pkg/detectors/docparser/docparser.go +++ b/pkg/detectors/docparser/docparser.go @@ -1,12 +1,13 @@ package docparser import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/docparser/docparser_test.go b/pkg/detectors/docparser/docparser_test.go index 09b0ba5c54e54..4996bff459789 100644 --- a/pkg/detectors/docparser/docparser_test.go +++ b/pkg/detectors/docparser/docparser_test.go @@ -1,12 +1,14 @@ package docparser import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/documo/documo.go b/pkg/detectors/documo/documo.go index 7f0d0986be31f..379141305a9c4 100644 --- a/pkg/detectors/documo/documo.go +++ b/pkg/detectors/documo/documo.go @@ -1,12 +1,13 @@ package documo import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/documo/documo_test.go b/pkg/detectors/documo/documo_test.go index f4673755208f7..2387bc173824f 100644 --- a/pkg/detectors/documo/documo_test.go +++ b/pkg/detectors/documo/documo_test.go @@ -4,12 +4,14 @@ package documo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/docusign/docusign.go b/pkg/detectors/docusign/docusign.go index 92008dee46b3c..6ea975f12cb04 100644 --- a/pkg/detectors/docusign/docusign.go +++ b/pkg/detectors/docusign/docusign.go @@ -1,14 +1,16 @@ package docusign import ( - "context" "encoding/base64" "fmt" - "github.com/go-errors/errors" "net/http" "regexp" "strings" + "github.com/go-errors/errors" + + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/docusign/docusign_test.go b/pkg/detectors/docusign/docusign_test.go index c9531248a2769..ef99d65b49298 100644 --- a/pkg/detectors/docusign/docusign_test.go +++ b/pkg/detectors/docusign/docusign_test.go @@ -4,12 +4,14 @@ package docusign import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/doppler/doppler.go b/pkg/detectors/doppler/doppler.go index 654a1232246e1..2d209e1b295e6 100644 --- a/pkg/detectors/doppler/doppler.go +++ b/pkg/detectors/doppler/doppler.go @@ -1,11 +1,12 @@ package doppler import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/doppler/doppler_test.go b/pkg/detectors/doppler/doppler_test.go index dc7374b4278ef..f9502155f0cc2 100644 --- a/pkg/detectors/doppler/doppler_test.go +++ b/pkg/detectors/doppler/doppler_test.go @@ -4,12 +4,14 @@ package doppler import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dotmailer/dotmailer.go b/pkg/detectors/dotmailer/dotmailer.go index 77c9bd0b98549..b29a70015fda2 100644 --- a/pkg/detectors/dotmailer/dotmailer.go +++ b/pkg/detectors/dotmailer/dotmailer.go @@ -1,12 +1,13 @@ package dotmailer import ( - "context" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/dotmailer/dotmailer_test.go b/pkg/detectors/dotmailer/dotmailer_test.go index ea13358443ee4..91c8082571fc1 100644 --- a/pkg/detectors/dotmailer/dotmailer_test.go +++ b/pkg/detectors/dotmailer/dotmailer_test.go @@ -4,12 +4,14 @@ package dotmailer import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dovico/dovico.go b/pkg/detectors/dovico/dovico.go index 76d96816f3538..b55e37e4030ee 100644 --- a/pkg/detectors/dovico/dovico.go +++ b/pkg/detectors/dovico/dovico.go @@ -1,12 +1,13 @@ package dovico import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/dovico/dovico_test.go b/pkg/detectors/dovico/dovico_test.go index 38865f192be28..fa75ae42e74b1 100644 --- a/pkg/detectors/dovico/dovico_test.go +++ b/pkg/detectors/dovico/dovico_test.go @@ -4,12 +4,14 @@ package dovico import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dronahq/dronahq.go b/pkg/detectors/dronahq/dronahq.go index dff7a25ff0e3d..271d327ea5555 100644 --- a/pkg/detectors/dronahq/dronahq.go +++ b/pkg/detectors/dronahq/dronahq.go @@ -1,12 +1,13 @@ package dronahq import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/dronahq/dronahq_test.go b/pkg/detectors/dronahq/dronahq_test.go index afa6579da20a9..ff87dd074d3b7 100644 --- a/pkg/detectors/dronahq/dronahq_test.go +++ b/pkg/detectors/dronahq/dronahq_test.go @@ -4,12 +4,14 @@ package dronahq import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/droneci/droneci.go b/pkg/detectors/droneci/droneci.go index 4bbcc18e6eb8b..e5bb708870211 100644 --- a/pkg/detectors/droneci/droneci.go +++ b/pkg/detectors/droneci/droneci.go @@ -1,12 +1,13 @@ package droneci import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/droneci/droneci_test.go b/pkg/detectors/droneci/droneci_test.go index cd3d3195dc097..abb40ad91e281 100644 --- a/pkg/detectors/droneci/droneci_test.go +++ b/pkg/detectors/droneci/droneci_test.go @@ -4,12 +4,14 @@ package droneci import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dropbox/dropbox.go b/pkg/detectors/dropbox/dropbox.go index 6bd92a494c44b..3ae30a381a977 100644 --- a/pkg/detectors/dropbox/dropbox.go +++ b/pkg/detectors/dropbox/dropbox.go @@ -1,11 +1,12 @@ package dropbox import ( - "context" "fmt" "net/http" "regexp" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/dropbox/dropbox_test.go b/pkg/detectors/dropbox/dropbox_test.go index 8b2408f82964b..032a8c1eac929 100644 --- a/pkg/detectors/dropbox/dropbox_test.go +++ b/pkg/detectors/dropbox/dropbox_test.go @@ -4,12 +4,14 @@ package dropbox import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/duply/duply.go b/pkg/detectors/duply/duply.go index 23ee96710aab6..73cd5e3cde11f 100644 --- a/pkg/detectors/duply/duply.go +++ b/pkg/detectors/duply/duply.go @@ -1,12 +1,13 @@ package duply import ( - "context" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/duply/duply_test.go b/pkg/detectors/duply/duply_test.go index 50903f4cdfba5..10d88db5d7f48 100644 --- a/pkg/detectors/duply/duply_test.go +++ b/pkg/detectors/duply/duply_test.go @@ -1,12 +1,14 @@ package duply import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dwolla/dwolla.go b/pkg/detectors/dwolla/dwolla.go index fb738289f9278..a86e7712cf091 100644 --- a/pkg/detectors/dwolla/dwolla.go +++ b/pkg/detectors/dwolla/dwolla.go @@ -1,13 +1,14 @@ package dwolla import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/dwolla/dwolla_test.go b/pkg/detectors/dwolla/dwolla_test.go index 364b0fa85a6bf..de4314d973538 100644 --- a/pkg/detectors/dwolla/dwolla_test.go +++ b/pkg/detectors/dwolla/dwolla_test.go @@ -4,11 +4,12 @@ package dwolla import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dynalist/dynalist.go b/pkg/detectors/dynalist/dynalist.go index 1ba986802f0a1..8b88a6df469c2 100644 --- a/pkg/detectors/dynalist/dynalist.go +++ b/pkg/detectors/dynalist/dynalist.go @@ -1,13 +1,14 @@ package dynalist import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/dynalist/dynalist_test.go b/pkg/detectors/dynalist/dynalist_test.go index e16ee89d9ef86..3d93974e95842 100644 --- a/pkg/detectors/dynalist/dynalist_test.go +++ b/pkg/detectors/dynalist/dynalist_test.go @@ -4,12 +4,14 @@ package dynalist import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dyspatch/dyspatch.go b/pkg/detectors/dyspatch/dyspatch.go index 8f078345182fe..ecc653ae7bf8e 100644 --- a/pkg/detectors/dyspatch/dyspatch.go +++ b/pkg/detectors/dyspatch/dyspatch.go @@ -1,13 +1,14 @@ package dyspatch import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/dyspatch/dyspatch_test.go b/pkg/detectors/dyspatch/dyspatch_test.go index 7658fde191842..f2621a8a0015f 100644 --- a/pkg/detectors/dyspatch/dyspatch_test.go +++ b/pkg/detectors/dyspatch/dyspatch_test.go @@ -4,12 +4,14 @@ package dyspatch import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go b/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go index 3c3fd4e7bbdfb..9ee0d3998863e 100644 --- a/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go +++ b/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go @@ -1,12 +1,13 @@ package eagleeyenetworks import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/eagleeyenetworks/eagleeyenetworks_test.go b/pkg/detectors/eagleeyenetworks/eagleeyenetworks_test.go index e569e2840ab0c..63cce1d9e88b6 100644 --- a/pkg/detectors/eagleeyenetworks/eagleeyenetworks_test.go +++ b/pkg/detectors/eagleeyenetworks/eagleeyenetworks_test.go @@ -4,8 +4,8 @@ package eagleeyenetworks import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/easyinsight/easyinsight.go b/pkg/detectors/easyinsight/easyinsight.go index 7011dacd6b7b8..9ebd5d04f804b 100644 --- a/pkg/detectors/easyinsight/easyinsight.go +++ b/pkg/detectors/easyinsight/easyinsight.go @@ -1,13 +1,14 @@ package easyinsight import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/easyinsight/easyinsight_test.go b/pkg/detectors/easyinsight/easyinsight_test.go index 098b8a3a39540..a80a450c14020 100644 --- a/pkg/detectors/easyinsight/easyinsight_test.go +++ b/pkg/detectors/easyinsight/easyinsight_test.go @@ -4,11 +4,12 @@ package easyinsight import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ecostruxureit/ecostruxureit.go b/pkg/detectors/ecostruxureit/ecostruxureit.go index b4762cf53e1d3..162b9f6b02cee 100644 --- a/pkg/detectors/ecostruxureit/ecostruxureit.go +++ b/pkg/detectors/ecostruxureit/ecostruxureit.go @@ -1,12 +1,13 @@ package ecostruxureit import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ecostruxureit/ecostruxureit_test.go b/pkg/detectors/ecostruxureit/ecostruxureit_test.go index 019701cffadf3..3a13d7dac3304 100644 --- a/pkg/detectors/ecostruxureit/ecostruxureit_test.go +++ b/pkg/detectors/ecostruxureit/ecostruxureit_test.go @@ -1,12 +1,14 @@ package ecostruxureit import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/edamam/edamam.go b/pkg/detectors/edamam/edamam.go index 65773b15821bc..9c5b5c615a644 100644 --- a/pkg/detectors/edamam/edamam.go +++ b/pkg/detectors/edamam/edamam.go @@ -1,12 +1,13 @@ package edamam import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/edamam/edamam_test.go b/pkg/detectors/edamam/edamam_test.go index 1951a12ffaa7c..6eb8aa5a4dfc0 100644 --- a/pkg/detectors/edamam/edamam_test.go +++ b/pkg/detectors/edamam/edamam_test.go @@ -4,12 +4,14 @@ package edamam import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/edenai/edenai.go b/pkg/detectors/edenai/edenai.go index 9301fe6c62ec0..38ee77f0130fc 100644 --- a/pkg/detectors/edenai/edenai.go +++ b/pkg/detectors/edenai/edenai.go @@ -1,12 +1,13 @@ package edenai import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/edenai/edenai_test.go b/pkg/detectors/edenai/edenai_test.go index df8fff25e2191..e73c77a4b3b4f 100644 --- a/pkg/detectors/edenai/edenai_test.go +++ b/pkg/detectors/edenai/edenai_test.go @@ -4,12 +4,14 @@ package edenai import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/eightxeight/eightxeight.go b/pkg/detectors/eightxeight/eightxeight.go index 3e62e51f1394b..48a88aa893fc5 100644 --- a/pkg/detectors/eightxeight/eightxeight.go +++ b/pkg/detectors/eightxeight/eightxeight.go @@ -1,13 +1,14 @@ package eightxeight import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/eightxeight/eightxeight_test.go b/pkg/detectors/eightxeight/eightxeight_test.go index 91ba987cfdc00..4a687b1ffe8ce 100644 --- a/pkg/detectors/eightxeight/eightxeight_test.go +++ b/pkg/detectors/eightxeight/eightxeight_test.go @@ -4,11 +4,12 @@ package eightxeight import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/elasticemail/elasticemail.go b/pkg/detectors/elasticemail/elasticemail.go index 39289c95d972a..4f41f960f2f6e 100644 --- a/pkg/detectors/elasticemail/elasticemail.go +++ b/pkg/detectors/elasticemail/elasticemail.go @@ -1,13 +1,14 @@ package elasticemail import ( - "context" "encoding/json" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/elasticemail/elasticemail_test.go b/pkg/detectors/elasticemail/elasticemail_test.go index a33f76eb2a1f0..080eba2a0f722 100644 --- a/pkg/detectors/elasticemail/elasticemail_test.go +++ b/pkg/detectors/elasticemail/elasticemail_test.go @@ -4,11 +4,12 @@ package elasticemail import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/enablex/enablex.go b/pkg/detectors/enablex/enablex.go index 3242450798a3c..f9a4db72e431c 100644 --- a/pkg/detectors/enablex/enablex.go +++ b/pkg/detectors/enablex/enablex.go @@ -1,11 +1,12 @@ package enablex import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/enablex/enablex_test.go b/pkg/detectors/enablex/enablex_test.go index fc098a806a546..a16e9ee24d2cc 100644 --- a/pkg/detectors/enablex/enablex_test.go +++ b/pkg/detectors/enablex/enablex_test.go @@ -4,11 +4,12 @@ package enablex import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/enigma/enigma.go b/pkg/detectors/enigma/enigma.go index b201d355d27c7..21ed0dc8ec30d 100644 --- a/pkg/detectors/enigma/enigma.go +++ b/pkg/detectors/enigma/enigma.go @@ -1,11 +1,12 @@ package enigma import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/enigma/enigma_test.go b/pkg/detectors/enigma/enigma_test.go index e1389586d2288..ea132345e4075 100644 --- a/pkg/detectors/enigma/enigma_test.go +++ b/pkg/detectors/enigma/enigma_test.go @@ -4,12 +4,14 @@ package enigma import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/envoyapikey/envoyapikey.go b/pkg/detectors/envoyapikey/envoyapikey.go index 263fb44278c79..4b088ca887127 100644 --- a/pkg/detectors/envoyapikey/envoyapikey.go +++ b/pkg/detectors/envoyapikey/envoyapikey.go @@ -1,12 +1,13 @@ package envoyapikey import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/envoyapikey/envoyapikey_test.go b/pkg/detectors/envoyapikey/envoyapikey_test.go index 277fef073b52b..0fad7d9ab19c6 100644 --- a/pkg/detectors/envoyapikey/envoyapikey_test.go +++ b/pkg/detectors/envoyapikey/envoyapikey_test.go @@ -4,11 +4,12 @@ package envoyapikey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/etherscan/etherscan.go b/pkg/detectors/etherscan/etherscan.go index b34a6fa9d7ee2..b37266df9475a 100644 --- a/pkg/detectors/etherscan/etherscan.go +++ b/pkg/detectors/etherscan/etherscan.go @@ -1,12 +1,13 @@ package etherscan import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/etherscan/etherscan_test.go b/pkg/detectors/etherscan/etherscan_test.go index 80b278f35ba0e..b833d58bdd8a2 100644 --- a/pkg/detectors/etherscan/etherscan_test.go +++ b/pkg/detectors/etherscan/etherscan_test.go @@ -4,12 +4,14 @@ package etherscan import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ethplorer/ethplorer.go b/pkg/detectors/ethplorer/ethplorer.go index 93f3853c05f56..beca77e8a2d18 100644 --- a/pkg/detectors/ethplorer/ethplorer.go +++ b/pkg/detectors/ethplorer/ethplorer.go @@ -1,11 +1,12 @@ package ethplorer import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ethplorer/ethplorer_test.go b/pkg/detectors/ethplorer/ethplorer_test.go index eb1fd58c6a164..6cd6d4661f47b 100644 --- a/pkg/detectors/ethplorer/ethplorer_test.go +++ b/pkg/detectors/ethplorer/ethplorer_test.go @@ -4,12 +4,14 @@ package ethplorer import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/etsyapikey/etsyapikey.go b/pkg/detectors/etsyapikey/etsyapikey.go index f1a4d6e937d45..043ad2553adc7 100644 --- a/pkg/detectors/etsyapikey/etsyapikey.go +++ b/pkg/detectors/etsyapikey/etsyapikey.go @@ -1,11 +1,12 @@ package etsyapikey import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/etsyapikey/etsyapikey_test.go b/pkg/detectors/etsyapikey/etsyapikey_test.go index 21514928480fd..71912b8b51e3a 100644 --- a/pkg/detectors/etsyapikey/etsyapikey_test.go +++ b/pkg/detectors/etsyapikey/etsyapikey_test.go @@ -4,12 +4,14 @@ package etsyapikey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/eventbrite/eventbrite.go b/pkg/detectors/eventbrite/eventbrite.go index 43f2decc1f24a..d785742dc3098 100644 --- a/pkg/detectors/eventbrite/eventbrite.go +++ b/pkg/detectors/eventbrite/eventbrite.go @@ -1,12 +1,13 @@ package eventbrite import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/eventbrite/eventbrite_test.go b/pkg/detectors/eventbrite/eventbrite_test.go index 5ac973112c7bb..2320cfb09c26f 100644 --- a/pkg/detectors/eventbrite/eventbrite_test.go +++ b/pkg/detectors/eventbrite/eventbrite_test.go @@ -4,11 +4,12 @@ package eventbrite import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/everhour/everhour.go b/pkg/detectors/everhour/everhour.go index 8d7876bad77ab..fbee3ef6861a4 100644 --- a/pkg/detectors/everhour/everhour.go +++ b/pkg/detectors/everhour/everhour.go @@ -1,11 +1,12 @@ package everhour import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/everhour/everhour_test.go b/pkg/detectors/everhour/everhour_test.go index 7694c0082276c..a96565e166ef3 100644 --- a/pkg/detectors/everhour/everhour_test.go +++ b/pkg/detectors/everhour/everhour_test.go @@ -4,12 +4,14 @@ package everhour import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/exchangerateapi/exchangerateapi.go b/pkg/detectors/exchangerateapi/exchangerateapi.go index 39e7c1b6808b6..56433da549ce6 100644 --- a/pkg/detectors/exchangerateapi/exchangerateapi.go +++ b/pkg/detectors/exchangerateapi/exchangerateapi.go @@ -1,12 +1,13 @@ package exchangerateapi import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/exchangerateapi/exchangerateapi_test.go b/pkg/detectors/exchangerateapi/exchangerateapi_test.go index 89fa657ab99ab..1c587d7b6fd88 100644 --- a/pkg/detectors/exchangerateapi/exchangerateapi_test.go +++ b/pkg/detectors/exchangerateapi/exchangerateapi_test.go @@ -4,11 +4,12 @@ package exchangerateapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/exchangeratesapi/exchangeratesapi.go b/pkg/detectors/exchangeratesapi/exchangeratesapi.go index 3d8113779f2e8..69b119a6af2bf 100644 --- a/pkg/detectors/exchangeratesapi/exchangeratesapi.go +++ b/pkg/detectors/exchangeratesapi/exchangeratesapi.go @@ -1,8 +1,8 @@ package exchangeratesapi import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "net/http" "regexp" "strings" diff --git a/pkg/detectors/exchangeratesapi/exchangeratesapi_test.go b/pkg/detectors/exchangeratesapi/exchangeratesapi_test.go index 9dc1dc5d9f0ee..814fcc15d9c22 100644 --- a/pkg/detectors/exchangeratesapi/exchangeratesapi_test.go +++ b/pkg/detectors/exchangeratesapi/exchangeratesapi_test.go @@ -4,12 +4,14 @@ package exchangeratesapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/exportsdk/exportsdk.go b/pkg/detectors/exportsdk/exportsdk.go index 024184f657171..ba174f754529d 100644 --- a/pkg/detectors/exportsdk/exportsdk.go +++ b/pkg/detectors/exportsdk/exportsdk.go @@ -1,11 +1,12 @@ package exportsdk import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/exportsdk/exportsdk_test.go b/pkg/detectors/exportsdk/exportsdk_test.go index df8732ea0ca0c..34dd4d687ec53 100644 --- a/pkg/detectors/exportsdk/exportsdk_test.go +++ b/pkg/detectors/exportsdk/exportsdk_test.go @@ -4,12 +4,14 @@ package exportsdk import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/extractorapi/extractorapi.go b/pkg/detectors/extractorapi/extractorapi.go index 922e0a98f2eee..acb8f33cbbf28 100644 --- a/pkg/detectors/extractorapi/extractorapi.go +++ b/pkg/detectors/extractorapi/extractorapi.go @@ -1,11 +1,12 @@ package extractorapi import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/extractorapi/extractorapi_test.go b/pkg/detectors/extractorapi/extractorapi_test.go index dd3df82d2f56b..db652e233b9b4 100644 --- a/pkg/detectors/extractorapi/extractorapi_test.go +++ b/pkg/detectors/extractorapi/extractorapi_test.go @@ -4,12 +4,14 @@ package extractorapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/facebookoauth/facebookoauth.go b/pkg/detectors/facebookoauth/facebookoauth.go index 6fe5d2e80317d..2395d335b747c 100644 --- a/pkg/detectors/facebookoauth/facebookoauth.go +++ b/pkg/detectors/facebookoauth/facebookoauth.go @@ -1,12 +1,13 @@ package facebookoauth import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/facebookoauth/facebookoauth_test.go b/pkg/detectors/facebookoauth/facebookoauth_test.go index c8947b65b9b3f..84b5eb610a9bd 100644 --- a/pkg/detectors/facebookoauth/facebookoauth_test.go +++ b/pkg/detectors/facebookoauth/facebookoauth_test.go @@ -4,12 +4,14 @@ package facebookoauth import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/faceplusplus/faceplusplus.go b/pkg/detectors/faceplusplus/faceplusplus.go index d0163eaf5f9c1..fcf643fc8d886 100644 --- a/pkg/detectors/faceplusplus/faceplusplus.go +++ b/pkg/detectors/faceplusplus/faceplusplus.go @@ -1,12 +1,13 @@ package faceplusplus import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/faceplusplus/faceplusplus_test.go b/pkg/detectors/faceplusplus/faceplusplus_test.go index 544a0a736a2c2..843489821536c 100644 --- a/pkg/detectors/faceplusplus/faceplusplus_test.go +++ b/pkg/detectors/faceplusplus/faceplusplus_test.go @@ -4,12 +4,14 @@ package faceplusplus import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fastforex/fastforex.go b/pkg/detectors/fastforex/fastforex.go index 6d05255b92b41..7dd20a2d3f5d3 100644 --- a/pkg/detectors/fastforex/fastforex.go +++ b/pkg/detectors/fastforex/fastforex.go @@ -1,12 +1,13 @@ package fastforex import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/fastforex/fastforex_test.go b/pkg/detectors/fastforex/fastforex_test.go index 3902de7dff843..bbc87813822fc 100644 --- a/pkg/detectors/fastforex/fastforex_test.go +++ b/pkg/detectors/fastforex/fastforex_test.go @@ -4,12 +4,14 @@ package fastforex import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go b/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go index 9a2416a06020f..9a8d9d491d316 100644 --- a/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go +++ b/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go @@ -1,7 +1,6 @@ package fastlypersonaltoken import ( - "context" "encoding/json" "fmt" "io" @@ -9,6 +8,8 @@ import ( "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/fastlypersonaltoken/fastlypersonaltoken_test.go b/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken_test.go index cbf2c5426c623..0089fcdc29ad6 100644 --- a/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken_test.go +++ b/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken_test.go @@ -4,12 +4,14 @@ package fastlypersonaltoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/feedier/feedier.go b/pkg/detectors/feedier/feedier.go index 94b41d598704c..21bc0fdc501b6 100644 --- a/pkg/detectors/feedier/feedier.go +++ b/pkg/detectors/feedier/feedier.go @@ -1,12 +1,13 @@ package feedier import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/feedier/feedier_test.go b/pkg/detectors/feedier/feedier_test.go index 5c00d07a0a22d..e7e78bd2fb6a5 100644 --- a/pkg/detectors/feedier/feedier_test.go +++ b/pkg/detectors/feedier/feedier_test.go @@ -4,12 +4,14 @@ package feedier import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fetchrss/fetchrss.go b/pkg/detectors/fetchrss/fetchrss.go index 19490cfe286b4..7380d85fa6623 100644 --- a/pkg/detectors/fetchrss/fetchrss.go +++ b/pkg/detectors/fetchrss/fetchrss.go @@ -1,12 +1,13 @@ package fetchrss import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/fetchrss/fetchrss_test.go b/pkg/detectors/fetchrss/fetchrss_test.go index 59f4fca77985b..3e138ef5dac29 100644 --- a/pkg/detectors/fetchrss/fetchrss_test.go +++ b/pkg/detectors/fetchrss/fetchrss_test.go @@ -4,12 +4,14 @@ package fetchrss import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fibery/fibery.go b/pkg/detectors/fibery/fibery.go index 11f11eb313dab..2571db9a2c230 100644 --- a/pkg/detectors/fibery/fibery.go +++ b/pkg/detectors/fibery/fibery.go @@ -1,13 +1,14 @@ package fibery import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/fibery/fibery_test.go b/pkg/detectors/fibery/fibery_test.go index 3872c788de190..2dae1f20403ed 100644 --- a/pkg/detectors/fibery/fibery_test.go +++ b/pkg/detectors/fibery/fibery_test.go @@ -4,12 +4,14 @@ package fibery import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/figmapersonalaccesstoken/v1/figmapersonalaccesstoken.go b/pkg/detectors/figmapersonalaccesstoken/v1/figmapersonalaccesstoken.go index 4968b1e1ee050..d5ce0ca7d4910 100644 --- a/pkg/detectors/figmapersonalaccesstoken/v1/figmapersonalaccesstoken.go +++ b/pkg/detectors/figmapersonalaccesstoken/v1/figmapersonalaccesstoken.go @@ -1,12 +1,13 @@ package figmapersonalaccesstoken import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/figmapersonalaccesstoken/v1/figmapersonalaccesstoken_test.go b/pkg/detectors/figmapersonalaccesstoken/v1/figmapersonalaccesstoken_test.go index 1162ad3b8d7d3..5b25c24a1b91d 100644 --- a/pkg/detectors/figmapersonalaccesstoken/v1/figmapersonalaccesstoken_test.go +++ b/pkg/detectors/figmapersonalaccesstoken/v1/figmapersonalaccesstoken_test.go @@ -4,8 +4,8 @@ package figmapersonalaccesstoken import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/figmapersonalaccesstoken/v2/figmapersonalaccesstoken_v2.go b/pkg/detectors/figmapersonalaccesstoken/v2/figmapersonalaccesstoken_v2.go index 0fa7b4ecc2ea4..3e86d69d944ec 100644 --- a/pkg/detectors/figmapersonalaccesstoken/v2/figmapersonalaccesstoken_v2.go +++ b/pkg/detectors/figmapersonalaccesstoken/v2/figmapersonalaccesstoken_v2.go @@ -1,12 +1,13 @@ package figmapersonalaccesstoken import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/figmapersonalaccesstoken/v2/figmapersonalaccesstoken_v2_test.go b/pkg/detectors/figmapersonalaccesstoken/v2/figmapersonalaccesstoken_v2_test.go index a3604ce1bc82e..c4eb8500416cb 100644 --- a/pkg/detectors/figmapersonalaccesstoken/v2/figmapersonalaccesstoken_v2_test.go +++ b/pkg/detectors/figmapersonalaccesstoken/v2/figmapersonalaccesstoken_v2_test.go @@ -4,8 +4,8 @@ package figmapersonalaccesstoken import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/fileio/fileio.go b/pkg/detectors/fileio/fileio.go index 4bb6cdb8b3732..53da151148818 100644 --- a/pkg/detectors/fileio/fileio.go +++ b/pkg/detectors/fileio/fileio.go @@ -1,7 +1,6 @@ package fileio import ( - "context" "encoding/json" "fmt" "io" @@ -9,6 +8,8 @@ import ( "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/fileio/fileio_test.go b/pkg/detectors/fileio/fileio_test.go index 97f82c56c8f6a..a30b80967f17d 100644 --- a/pkg/detectors/fileio/fileio_test.go +++ b/pkg/detectors/fileio/fileio_test.go @@ -4,12 +4,14 @@ package fileio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/finage/finage.go b/pkg/detectors/finage/finage.go index 1901ed601a9d5..bea599fded601 100644 --- a/pkg/detectors/finage/finage.go +++ b/pkg/detectors/finage/finage.go @@ -1,12 +1,13 @@ package finage import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/finage/finage_test.go b/pkg/detectors/finage/finage_test.go index 6f3d2168feaff..80f7ce8ed999d 100644 --- a/pkg/detectors/finage/finage_test.go +++ b/pkg/detectors/finage/finage_test.go @@ -4,11 +4,12 @@ package finage import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/financialmodelingprep/financialmodelingprep.go b/pkg/detectors/financialmodelingprep/financialmodelingprep.go index cf7d7a17fc78a..c5ae733095898 100644 --- a/pkg/detectors/financialmodelingprep/financialmodelingprep.go +++ b/pkg/detectors/financialmodelingprep/financialmodelingprep.go @@ -1,8 +1,8 @@ package financialmodelingprep import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "io" "net/http" "regexp" diff --git a/pkg/detectors/financialmodelingprep/financialmodelingprep_test.go b/pkg/detectors/financialmodelingprep/financialmodelingprep_test.go index 66355a5265cbc..e1b19ebdbc118 100644 --- a/pkg/detectors/financialmodelingprep/financialmodelingprep_test.go +++ b/pkg/detectors/financialmodelingprep/financialmodelingprep_test.go @@ -4,12 +4,14 @@ package financialmodelingprep import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/findl/findl.go b/pkg/detectors/findl/findl.go index 323cd90c9fa09..ffa6205fdcf01 100644 --- a/pkg/detectors/findl/findl.go +++ b/pkg/detectors/findl/findl.go @@ -1,12 +1,13 @@ package findl import ( - "context" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/findl/findl_test.go b/pkg/detectors/findl/findl_test.go index 49c9edf0975d0..c3d30e1a9b9fc 100644 --- a/pkg/detectors/findl/findl_test.go +++ b/pkg/detectors/findl/findl_test.go @@ -4,12 +4,14 @@ package findl import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/finnhub/finnhub.go b/pkg/detectors/finnhub/finnhub.go index 57e0caaf7b638..be697822243e3 100644 --- a/pkg/detectors/finnhub/finnhub.go +++ b/pkg/detectors/finnhub/finnhub.go @@ -1,12 +1,13 @@ package finnhub import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/finnhub/finnhub_test.go b/pkg/detectors/finnhub/finnhub_test.go index 5366f8007920c..22cba70f31382 100644 --- a/pkg/detectors/finnhub/finnhub_test.go +++ b/pkg/detectors/finnhub/finnhub_test.go @@ -4,12 +4,14 @@ package finnhub import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fixerio/fixerio.go b/pkg/detectors/fixerio/fixerio.go index 17df2ef99f33a..0af40cd1fc417 100644 --- a/pkg/detectors/fixerio/fixerio.go +++ b/pkg/detectors/fixerio/fixerio.go @@ -1,12 +1,13 @@ package fixerio import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/fixerio/fixerio_test.go b/pkg/detectors/fixerio/fixerio_test.go index 67b4c1aef06d8..7a80850fbe7d0 100644 --- a/pkg/detectors/fixerio/fixerio_test.go +++ b/pkg/detectors/fixerio/fixerio_test.go @@ -4,12 +4,14 @@ package fixerio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/flatio/flatio.go b/pkg/detectors/flatio/flatio.go index bffb97a9fb94f..f9f6d775bc225 100644 --- a/pkg/detectors/flatio/flatio.go +++ b/pkg/detectors/flatio/flatio.go @@ -1,12 +1,13 @@ package flatio import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/flatio/flatio_test.go b/pkg/detectors/flatio/flatio_test.go index 3f6ada9d82cdc..8f86b4ffda27f 100644 --- a/pkg/detectors/flatio/flatio_test.go +++ b/pkg/detectors/flatio/flatio_test.go @@ -4,12 +4,14 @@ package flatio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fleetbase/fleetbase.go b/pkg/detectors/fleetbase/fleetbase.go index 0b5746efe282d..47c385b801b04 100644 --- a/pkg/detectors/fleetbase/fleetbase.go +++ b/pkg/detectors/fleetbase/fleetbase.go @@ -1,12 +1,13 @@ package fleetbase import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/fleetbase/fleetbase_test.go b/pkg/detectors/fleetbase/fleetbase_test.go index daa5443b0932c..81c407ea5b04c 100644 --- a/pkg/detectors/fleetbase/fleetbase_test.go +++ b/pkg/detectors/fleetbase/fleetbase_test.go @@ -4,12 +4,14 @@ package fleetbase import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/flickr/flickr.go b/pkg/detectors/flickr/flickr.go index 2eabda6093842..d0ab5f6d816ff 100644 --- a/pkg/detectors/flickr/flickr.go +++ b/pkg/detectors/flickr/flickr.go @@ -1,13 +1,14 @@ package flickr import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/flickr/flickr_test.go b/pkg/detectors/flickr/flickr_test.go index 8c78a2bc18cf3..b3cb9a989ada4 100644 --- a/pkg/detectors/flickr/flickr_test.go +++ b/pkg/detectors/flickr/flickr_test.go @@ -4,12 +4,14 @@ package flickr import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/flightapi/flightapi.go b/pkg/detectors/flightapi/flightapi.go index a6249c300a6b3..e339a8748f234 100644 --- a/pkg/detectors/flightapi/flightapi.go +++ b/pkg/detectors/flightapi/flightapi.go @@ -1,12 +1,13 @@ package flightapi import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/flightapi/flightapi_test.go b/pkg/detectors/flightapi/flightapi_test.go index f34732eff397e..b3a817612b434 100644 --- a/pkg/detectors/flightapi/flightapi_test.go +++ b/pkg/detectors/flightapi/flightapi_test.go @@ -4,12 +4,14 @@ package flightapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/flightlabs/flightlabs.go b/pkg/detectors/flightlabs/flightlabs.go index 18a3e390d93ce..009e37bb1ecf8 100644 --- a/pkg/detectors/flightlabs/flightlabs.go +++ b/pkg/detectors/flightlabs/flightlabs.go @@ -1,13 +1,14 @@ package flightlabs import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/flightlabs/flightlabs_test.go b/pkg/detectors/flightlabs/flightlabs_test.go index 54d90a8cabd4e..df171e61abdd2 100644 --- a/pkg/detectors/flightlabs/flightlabs_test.go +++ b/pkg/detectors/flightlabs/flightlabs_test.go @@ -1,12 +1,14 @@ package flightlabs import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/flightstats/flightstats.go b/pkg/detectors/flightstats/flightstats.go index 2d6253c904047..0be9b4bd161d8 100644 --- a/pkg/detectors/flightstats/flightstats.go +++ b/pkg/detectors/flightstats/flightstats.go @@ -1,13 +1,14 @@ package flightstats import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/flightstats/flightstats_test.go b/pkg/detectors/flightstats/flightstats_test.go index 018ae17b83ebc..629d08948c688 100644 --- a/pkg/detectors/flightstats/flightstats_test.go +++ b/pkg/detectors/flightstats/flightstats_test.go @@ -4,11 +4,12 @@ package flightstats import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/float/float.go b/pkg/detectors/float/float.go index 2119119320071..959609dac0a4a 100644 --- a/pkg/detectors/float/float.go +++ b/pkg/detectors/float/float.go @@ -1,12 +1,13 @@ package float import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/float/float_test.go b/pkg/detectors/float/float_test.go index e4b3acb0b73d0..f76a77ee7e95f 100644 --- a/pkg/detectors/float/float_test.go +++ b/pkg/detectors/float/float_test.go @@ -4,11 +4,12 @@ package float import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/flowdash/flowdash.go b/pkg/detectors/flowdash/flowdash.go index 2cc5d72fa5963..5aa0e1e4ffa09 100644 --- a/pkg/detectors/flowdash/flowdash.go +++ b/pkg/detectors/flowdash/flowdash.go @@ -1,12 +1,13 @@ package flowdash import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/flowdash/flowdash_test.go b/pkg/detectors/flowdash/flowdash_test.go index dbfbb23172a7e..7a5a1440ff007 100644 --- a/pkg/detectors/flowdash/flowdash_test.go +++ b/pkg/detectors/flowdash/flowdash_test.go @@ -4,12 +4,14 @@ package flowdash import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/flowflu/flowflu.go b/pkg/detectors/flowflu/flowflu.go index bc58079823a73..05351fb74d113 100644 --- a/pkg/detectors/flowflu/flowflu.go +++ b/pkg/detectors/flowflu/flowflu.go @@ -1,13 +1,14 @@ package flowflu import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/flowflu/flowflu_test.go b/pkg/detectors/flowflu/flowflu_test.go index 166e8383ba7a2..67f88805888cb 100644 --- a/pkg/detectors/flowflu/flowflu_test.go +++ b/pkg/detectors/flowflu/flowflu_test.go @@ -4,12 +4,14 @@ package flowflu import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/flutterwave/flutterwave.go b/pkg/detectors/flutterwave/flutterwave.go index bad763f7c8a96..213ed264845b8 100644 --- a/pkg/detectors/flutterwave/flutterwave.go +++ b/pkg/detectors/flutterwave/flutterwave.go @@ -1,12 +1,13 @@ package flutterwave import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/flutterwave/flutterwave_test.go b/pkg/detectors/flutterwave/flutterwave_test.go index 28e3644904b88..b73e61c278f21 100644 --- a/pkg/detectors/flutterwave/flutterwave_test.go +++ b/pkg/detectors/flutterwave/flutterwave_test.go @@ -4,12 +4,14 @@ package flutterwave import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fmfw/fmfw.go b/pkg/detectors/fmfw/fmfw.go index f406be1387e14..14449e01fd30e 100644 --- a/pkg/detectors/fmfw/fmfw.go +++ b/pkg/detectors/fmfw/fmfw.go @@ -1,12 +1,13 @@ package fmfw import ( - "context" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/fmfw/fmfw_test.go b/pkg/detectors/fmfw/fmfw_test.go index c6f5683b229ad..59f36176afec2 100644 --- a/pkg/detectors/fmfw/fmfw_test.go +++ b/pkg/detectors/fmfw/fmfw_test.go @@ -4,12 +4,14 @@ package fmfw import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/formbucket/formbucket.go b/pkg/detectors/formbucket/formbucket.go index 62ab3fd929d37..30ed802a3456d 100644 --- a/pkg/detectors/formbucket/formbucket.go +++ b/pkg/detectors/formbucket/formbucket.go @@ -1,13 +1,14 @@ package formbucket import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/formbucket/formbucket_test.go b/pkg/detectors/formbucket/formbucket_test.go index ea3a25404b60d..0e0b80217914d 100644 --- a/pkg/detectors/formbucket/formbucket_test.go +++ b/pkg/detectors/formbucket/formbucket_test.go @@ -4,11 +4,12 @@ package formbucket import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/formcraft/formcraft.go b/pkg/detectors/formcraft/formcraft.go index 1b040a17cfbc2..2f2a6c5702bda 100644 --- a/pkg/detectors/formcraft/formcraft.go +++ b/pkg/detectors/formcraft/formcraft.go @@ -1,13 +1,14 @@ package formcraft import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/formcraft/formcraft_test.go b/pkg/detectors/formcraft/formcraft_test.go index a4cb6bc77ee3e..25211c71934cd 100644 --- a/pkg/detectors/formcraft/formcraft_test.go +++ b/pkg/detectors/formcraft/formcraft_test.go @@ -4,12 +4,14 @@ package formcraft import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/formio/formio.go b/pkg/detectors/formio/formio.go index f843d6e9bd81c..e0d06d6f91181 100644 --- a/pkg/detectors/formio/formio.go +++ b/pkg/detectors/formio/formio.go @@ -1,11 +1,12 @@ package formio import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/formio/formio_test.go b/pkg/detectors/formio/formio_test.go index d9c2ec280f22e..c489372be5a7a 100644 --- a/pkg/detectors/formio/formio_test.go +++ b/pkg/detectors/formio/formio_test.go @@ -4,11 +4,12 @@ package formio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/formsite/formsite.go b/pkg/detectors/formsite/formsite.go index 38addb63a14d0..66d4c90a6fefb 100644 --- a/pkg/detectors/formsite/formsite.go +++ b/pkg/detectors/formsite/formsite.go @@ -1,12 +1,13 @@ package formsite import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/formsite/formsite_test.go b/pkg/detectors/formsite/formsite_test.go index 4f8bdf63402a0..26d1fb775d3fb 100644 --- a/pkg/detectors/formsite/formsite_test.go +++ b/pkg/detectors/formsite/formsite_test.go @@ -1,12 +1,14 @@ package formsite import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/foursquare/foursquare.go b/pkg/detectors/foursquare/foursquare.go index 6fbc66e03bc38..b5728b9f69014 100644 --- a/pkg/detectors/foursquare/foursquare.go +++ b/pkg/detectors/foursquare/foursquare.go @@ -1,12 +1,13 @@ package foursquare import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/foursquare/foursquare_test.go b/pkg/detectors/foursquare/foursquare_test.go index 3220efad04925..0cdc87490daa2 100644 --- a/pkg/detectors/foursquare/foursquare_test.go +++ b/pkg/detectors/foursquare/foursquare_test.go @@ -4,12 +4,14 @@ package foursquare import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/frameio/frameio.go b/pkg/detectors/frameio/frameio.go index 5c0d47d6eb1ee..641a8b006c129 100644 --- a/pkg/detectors/frameio/frameio.go +++ b/pkg/detectors/frameio/frameio.go @@ -1,12 +1,13 @@ package frameio import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/frameio/frameio_test.go b/pkg/detectors/frameio/frameio_test.go index a6dda60851376..13fd0cb143c40 100644 --- a/pkg/detectors/frameio/frameio_test.go +++ b/pkg/detectors/frameio/frameio_test.go @@ -4,12 +4,14 @@ package frameio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/freshbooks/freshbooks.go b/pkg/detectors/freshbooks/freshbooks.go index 271ec90725499..520a617adee7c 100644 --- a/pkg/detectors/freshbooks/freshbooks.go +++ b/pkg/detectors/freshbooks/freshbooks.go @@ -1,13 +1,14 @@ package freshbooks import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/freshbooks/freshbooks_test.go b/pkg/detectors/freshbooks/freshbooks_test.go index 136f2f3983891..e47cc9f5cba3b 100644 --- a/pkg/detectors/freshbooks/freshbooks_test.go +++ b/pkg/detectors/freshbooks/freshbooks_test.go @@ -4,11 +4,12 @@ package freshbooks import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/freshdesk/freshdesk.go b/pkg/detectors/freshdesk/freshdesk.go index a0f425b9ad913..b9238210ab0ed 100644 --- a/pkg/detectors/freshdesk/freshdesk.go +++ b/pkg/detectors/freshdesk/freshdesk.go @@ -1,13 +1,14 @@ package freshdesk import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/freshdesk/freshdesk_test.go b/pkg/detectors/freshdesk/freshdesk_test.go index d8727b6541954..49c26993e02b2 100644 --- a/pkg/detectors/freshdesk/freshdesk_test.go +++ b/pkg/detectors/freshdesk/freshdesk_test.go @@ -4,11 +4,12 @@ package freshdesk import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/front/front.go b/pkg/detectors/front/front.go index f059f41baf12a..460225279d395 100644 --- a/pkg/detectors/front/front.go +++ b/pkg/detectors/front/front.go @@ -1,12 +1,13 @@ package front import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/front/front_test.go b/pkg/detectors/front/front_test.go index 4cf649b7e7e29..8f835a97e2b0d 100644 --- a/pkg/detectors/front/front_test.go +++ b/pkg/detectors/front/front_test.go @@ -4,12 +4,14 @@ package front import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ftp/ftp.go b/pkg/detectors/ftp/ftp.go index 8d77f12f1b4af..22fc6c219a125 100644 --- a/pkg/detectors/ftp/ftp.go +++ b/pkg/detectors/ftp/ftp.go @@ -1,7 +1,6 @@ package ftp import ( - "context" "errors" "net/textproto" "net/url" @@ -9,6 +8,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/jlaffaye/ftp" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/ftp/ftp_test.go b/pkg/detectors/ftp/ftp_test.go index 80982dc07a5d7..0622d2f8bb414 100644 --- a/pkg/detectors/ftp/ftp_test.go +++ b/pkg/detectors/ftp/ftp_test.go @@ -4,10 +4,11 @@ package ftp import ( - "context" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/fulcrum/fulcrum.go b/pkg/detectors/fulcrum/fulcrum.go index eae2e44630523..42ef5869b1a0d 100644 --- a/pkg/detectors/fulcrum/fulcrum.go +++ b/pkg/detectors/fulcrum/fulcrum.go @@ -1,11 +1,12 @@ package fulcrum import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/fulcrum/fulcrum_test.go b/pkg/detectors/fulcrum/fulcrum_test.go index 06d83d4ea6cb5..8045cbed7d917 100644 --- a/pkg/detectors/fulcrum/fulcrum_test.go +++ b/pkg/detectors/fulcrum/fulcrum_test.go @@ -4,12 +4,14 @@ package fulcrum import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fullstory/fullstory.go b/pkg/detectors/fullstory/fullstory.go index 641080516a063..280eb2e182eed 100644 --- a/pkg/detectors/fullstory/fullstory.go +++ b/pkg/detectors/fullstory/fullstory.go @@ -1,12 +1,13 @@ package fullstory import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/fullstory/fullstory_test.go b/pkg/detectors/fullstory/fullstory_test.go index 3fe8305677737..18a05822b23da 100644 --- a/pkg/detectors/fullstory/fullstory_test.go +++ b/pkg/detectors/fullstory/fullstory_test.go @@ -4,12 +4,14 @@ package fullstory import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fullstory_v2/fullstory_v2.go b/pkg/detectors/fullstory_v2/fullstory_v2.go index 196d80d2c8cc0..d4fccbd3bf1cc 100644 --- a/pkg/detectors/fullstory_v2/fullstory_v2.go +++ b/pkg/detectors/fullstory_v2/fullstory_v2.go @@ -1,12 +1,13 @@ package fullstory_v2 import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/fullstory_v2/fullstory_v2_test.go b/pkg/detectors/fullstory_v2/fullstory_v2_test.go index 083ba2410e3df..56ec6340cbc72 100644 --- a/pkg/detectors/fullstory_v2/fullstory_v2_test.go +++ b/pkg/detectors/fullstory_v2/fullstory_v2_test.go @@ -4,12 +4,14 @@ package fullstory_v2 import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fusebill/fusebill.go b/pkg/detectors/fusebill/fusebill.go index 689db02698295..e71802660daef 100644 --- a/pkg/detectors/fusebill/fusebill.go +++ b/pkg/detectors/fusebill/fusebill.go @@ -1,12 +1,13 @@ package fusebill import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/fusebill/fusebill_test.go b/pkg/detectors/fusebill/fusebill_test.go index 4d825ed5b70dc..d0ec3c630c625 100644 --- a/pkg/detectors/fusebill/fusebill_test.go +++ b/pkg/detectors/fusebill/fusebill_test.go @@ -4,11 +4,12 @@ package fusebill import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fxmarket/fxmarket.go b/pkg/detectors/fxmarket/fxmarket.go index 5a229f99440ef..e885b23b88d89 100644 --- a/pkg/detectors/fxmarket/fxmarket.go +++ b/pkg/detectors/fxmarket/fxmarket.go @@ -1,12 +1,13 @@ package fxmarket import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/fxmarket/fxmarket_test.go b/pkg/detectors/fxmarket/fxmarket_test.go index 10fbd296dc7da..14b59c27911e4 100644 --- a/pkg/detectors/fxmarket/fxmarket_test.go +++ b/pkg/detectors/fxmarket/fxmarket_test.go @@ -4,12 +4,14 @@ package fxmarket import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gcp/gcp.go b/pkg/detectors/gcp/gcp.go index 8771fc252bb2b..0ada5eb825ffe 100644 --- a/pkg/detectors/gcp/gcp.go +++ b/pkg/detectors/gcp/gcp.go @@ -1,14 +1,16 @@ package gcp import ( - "context" "encoding/json" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + + "golang.org/x/oauth2/google" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" - "golang.org/x/oauth2/google" ) type Scanner struct{} diff --git a/pkg/detectors/gcp/gcp_test.go b/pkg/detectors/gcp/gcp_test.go index b2540dcba7a75..91415142dc83b 100644 --- a/pkg/detectors/gcp/gcp_test.go +++ b/pkg/detectors/gcp/gcp_test.go @@ -4,12 +4,14 @@ package gcp import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/geckoboard/geckoboard.go b/pkg/detectors/geckoboard/geckoboard.go index eda0bd430b743..aa8bb313ff541 100644 --- a/pkg/detectors/geckoboard/geckoboard.go +++ b/pkg/detectors/geckoboard/geckoboard.go @@ -1,12 +1,13 @@ package geckoboard import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/geckoboard/geckoboard_test.go b/pkg/detectors/geckoboard/geckoboard_test.go index 2788ecd24d43e..a0b862892ee5d 100644 --- a/pkg/detectors/geckoboard/geckoboard_test.go +++ b/pkg/detectors/geckoboard/geckoboard_test.go @@ -4,12 +4,14 @@ package geckoboard import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gemini/gemini.go b/pkg/detectors/gemini/gemini.go index 7e47f10a5b3a4..580bdfec748e4 100644 --- a/pkg/detectors/gemini/gemini.go +++ b/pkg/detectors/gemini/gemini.go @@ -2,7 +2,6 @@ package gemini import ( "bytes" - "context" "crypto/hmac" "crypto/sha512" "encoding/base64" @@ -13,6 +12,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/gemini/gemini_test.go b/pkg/detectors/gemini/gemini_test.go index 8e94ed6ce189e..30bd44be87a1a 100644 --- a/pkg/detectors/gemini/gemini_test.go +++ b/pkg/detectors/gemini/gemini_test.go @@ -4,11 +4,12 @@ package gemini import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/generic/generic.go b/pkg/detectors/generic/generic.go index 371e17878c9c7..f60b1658e0810 100644 --- a/pkg/detectors/generic/generic.go +++ b/pkg/detectors/generic/generic.go @@ -3,12 +3,13 @@ package generic // cat scanner/pkg/secrets/generic/top-1000.txt | awk 'length($0)>5' > scanner/pkg/secrets/generic/words.txt import ( - "context" "encoding/base64" "fmt" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" ) diff --git a/pkg/detectors/generic/generic_test.go b/pkg/detectors/generic/generic_test.go index 2ae5b4f3b89d1..f53a3e3f9f3ae 100644 --- a/pkg/detectors/generic/generic_test.go +++ b/pkg/detectors/generic/generic_test.go @@ -4,9 +4,10 @@ package generic import ( - "context" "testing" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" ) diff --git a/pkg/detectors/gengo/gengo.go b/pkg/detectors/gengo/gengo.go index e90e14fac5d3e..c290af0fddd9a 100644 --- a/pkg/detectors/gengo/gengo.go +++ b/pkg/detectors/gengo/gengo.go @@ -1,7 +1,6 @@ package gengo import ( - "context" "crypto/hmac" "crypto/sha1" "encoding/hex" @@ -14,6 +13,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/gengo/gengo_test.go b/pkg/detectors/gengo/gengo_test.go index 52a4000595eb3..34c67b8400081 100644 --- a/pkg/detectors/gengo/gengo_test.go +++ b/pkg/detectors/gengo/gengo_test.go @@ -4,12 +4,14 @@ package gengo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/geoapify/geoapify.go b/pkg/detectors/geoapify/geoapify.go index d20c890b85ec2..1b8a6f5ca2481 100644 --- a/pkg/detectors/geoapify/geoapify.go +++ b/pkg/detectors/geoapify/geoapify.go @@ -1,12 +1,13 @@ package geoapify import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/geoapify/geoapify_test.go b/pkg/detectors/geoapify/geoapify_test.go index aa232cba3ff28..ad4d38303367f 100644 --- a/pkg/detectors/geoapify/geoapify_test.go +++ b/pkg/detectors/geoapify/geoapify_test.go @@ -4,12 +4,14 @@ package geoapify import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/geocode/geocode.go b/pkg/detectors/geocode/geocode.go index 9b6bce1a4daa0..a27cf1480c928 100644 --- a/pkg/detectors/geocode/geocode.go +++ b/pkg/detectors/geocode/geocode.go @@ -1,13 +1,14 @@ package geocode import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/geocode/geocode_test.go b/pkg/detectors/geocode/geocode_test.go index 9c6f3ba974c57..f36d39fc2c8c1 100644 --- a/pkg/detectors/geocode/geocode_test.go +++ b/pkg/detectors/geocode/geocode_test.go @@ -4,12 +4,14 @@ package geocode import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/geocodify/geocodify.go b/pkg/detectors/geocodify/geocodify.go index e93dc296284ea..ab8bc88eea45e 100644 --- a/pkg/detectors/geocodify/geocodify.go +++ b/pkg/detectors/geocodify/geocodify.go @@ -1,11 +1,12 @@ package geocodify import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/geocodify/geocodify_test.go b/pkg/detectors/geocodify/geocodify_test.go index dbf21c0e42eb9..7883356d95125 100644 --- a/pkg/detectors/geocodify/geocodify_test.go +++ b/pkg/detectors/geocodify/geocodify_test.go @@ -4,11 +4,12 @@ package geocodify import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/geocodio/geocodio.go b/pkg/detectors/geocodio/geocodio.go index 21cbdb2f189f2..6ab1f34f9d4c0 100644 --- a/pkg/detectors/geocodio/geocodio.go +++ b/pkg/detectors/geocodio/geocodio.go @@ -1,12 +1,13 @@ package geocodio import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/geocodio/geocodio_test.go b/pkg/detectors/geocodio/geocodio_test.go index b243a8afec9bc..bbae9e2151d8e 100644 --- a/pkg/detectors/geocodio/geocodio_test.go +++ b/pkg/detectors/geocodio/geocodio_test.go @@ -4,12 +4,14 @@ package geocodio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/geoipifi/geoipifi.go b/pkg/detectors/geoipifi/geoipifi.go index 3a0d31464ebde..390c7c535e948 100644 --- a/pkg/detectors/geoipifi/geoipifi.go +++ b/pkg/detectors/geoipifi/geoipifi.go @@ -1,11 +1,12 @@ package geoipifi import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/geoipifi/geoipifi_test.go b/pkg/detectors/geoipifi/geoipifi_test.go index e9cd2b68aa6a3..649cc1da28ba8 100644 --- a/pkg/detectors/geoipifi/geoipifi_test.go +++ b/pkg/detectors/geoipifi/geoipifi_test.go @@ -4,12 +4,14 @@ package geoipifi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/getemail/getemail.go b/pkg/detectors/getemail/getemail.go index 4bf56ee19c401..4ed957dd2e09a 100644 --- a/pkg/detectors/getemail/getemail.go +++ b/pkg/detectors/getemail/getemail.go @@ -1,7 +1,6 @@ package getemail import ( - "context" "fmt" "io" "net/http" @@ -9,6 +8,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/getemail/getemail_test.go b/pkg/detectors/getemail/getemail_test.go index 774a828e5b55e..09c1d6bb0691e 100644 --- a/pkg/detectors/getemail/getemail_test.go +++ b/pkg/detectors/getemail/getemail_test.go @@ -4,11 +4,12 @@ package getemail import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/getemails/getemails.go b/pkg/detectors/getemails/getemails.go index 4d33a59ccb6e0..ff48fcfa27be6 100644 --- a/pkg/detectors/getemails/getemails.go +++ b/pkg/detectors/getemails/getemails.go @@ -1,11 +1,12 @@ package getemails import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/getemails/getemails_test.go b/pkg/detectors/getemails/getemails_test.go index 2a669b6faae09..8e93afa4a52c4 100644 --- a/pkg/detectors/getemails/getemails_test.go +++ b/pkg/detectors/getemails/getemails_test.go @@ -4,12 +4,14 @@ package getemails import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/getgeoapi/getgeoapi.go b/pkg/detectors/getgeoapi/getgeoapi.go index c3784f36b63c8..096476996c5bf 100644 --- a/pkg/detectors/getgeoapi/getgeoapi.go +++ b/pkg/detectors/getgeoapi/getgeoapi.go @@ -1,12 +1,13 @@ package getgeoapi import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/getgeoapi/getgeoapi_test.go b/pkg/detectors/getgeoapi/getgeoapi_test.go index ed5ee41ae5fd5..5d1bf20841370 100644 --- a/pkg/detectors/getgeoapi/getgeoapi_test.go +++ b/pkg/detectors/getgeoapi/getgeoapi_test.go @@ -4,12 +4,14 @@ package getgeoapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/getgist/getgist.go b/pkg/detectors/getgist/getgist.go index 3a0158bb3fab8..f19fd2e271551 100644 --- a/pkg/detectors/getgist/getgist.go +++ b/pkg/detectors/getgist/getgist.go @@ -1,12 +1,13 @@ package getgist import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/getgist/getgist_test.go b/pkg/detectors/getgist/getgist_test.go index d156f1f2f2faf..a1e203c869c48 100644 --- a/pkg/detectors/getgist/getgist_test.go +++ b/pkg/detectors/getgist/getgist_test.go @@ -4,12 +4,14 @@ package getgist import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/getresponse/getresponse.go b/pkg/detectors/getresponse/getresponse.go index 9e77cf0b75913..5c99a5d310622 100644 --- a/pkg/detectors/getresponse/getresponse.go +++ b/pkg/detectors/getresponse/getresponse.go @@ -1,12 +1,13 @@ package getresponse import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/getresponse/getresponse_test.go b/pkg/detectors/getresponse/getresponse_test.go index e14c9396883d5..4be4e32959012 100644 --- a/pkg/detectors/getresponse/getresponse_test.go +++ b/pkg/detectors/getresponse/getresponse_test.go @@ -1,12 +1,14 @@ package getresponse import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/getsandbox/getsandbox.go b/pkg/detectors/getsandbox/getsandbox.go index a45cc70c2eed9..042e4c2ce928c 100644 --- a/pkg/detectors/getsandbox/getsandbox.go +++ b/pkg/detectors/getsandbox/getsandbox.go @@ -1,12 +1,13 @@ package getsandbox import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/getsandbox/getsandbox_test.go b/pkg/detectors/getsandbox/getsandbox_test.go index ccee57000e343..da9c836123ea8 100644 --- a/pkg/detectors/getsandbox/getsandbox_test.go +++ b/pkg/detectors/getsandbox/getsandbox_test.go @@ -4,11 +4,12 @@ package getsandbox import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/github/github.go b/pkg/detectors/github/github.go index ad8346cd109bd..ff1be0b7376ee 100644 --- a/pkg/detectors/github/github.go +++ b/pkg/detectors/github/github.go @@ -1,12 +1,13 @@ package github import ( - "context" "encoding/json" "fmt" "net/http" "regexp" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" diff --git a/pkg/detectors/github/github_test.go b/pkg/detectors/github/github_test.go index 488c5e1360aff..160d8354f4644 100644 --- a/pkg/detectors/github/github_test.go +++ b/pkg/detectors/github/github_test.go @@ -4,12 +4,14 @@ package github import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/github_oauth2/github_oauth2.go b/pkg/detectors/github_oauth2/github_oauth2.go index a3678a3970e3c..9f942d6943867 100644 --- a/pkg/detectors/github_oauth2/github_oauth2.go +++ b/pkg/detectors/github_oauth2/github_oauth2.go @@ -1,14 +1,16 @@ package github_oauth2 import ( - "context" "regexp" "strings" - "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" - "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "golang.org/x/oauth2/clientcredentials" "golang.org/x/oauth2/github" + + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" + "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" ) type Scanner struct{ detectors.EndpointSetter } diff --git a/pkg/detectors/github_old/github_old.go b/pkg/detectors/github_old/github_old.go index b5edc1596d31b..a94824d8ef03d 100644 --- a/pkg/detectors/github_old/github_old.go +++ b/pkg/detectors/github_old/github_old.go @@ -1,12 +1,13 @@ package github_old import ( - "context" "encoding/json" "fmt" "net/http" "regexp" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/github_old/github_old_test.go b/pkg/detectors/github_old/github_old_test.go index f61847956943d..9f5f116b5ffdc 100644 --- a/pkg/detectors/github_old/github_old_test.go +++ b/pkg/detectors/github_old/github_old_test.go @@ -4,12 +4,14 @@ package github_old import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/githubapp/githubapp.go b/pkg/detectors/githubapp/githubapp.go index ec1c07588ff5f..43e29d2ba5d44 100644 --- a/pkg/detectors/githubapp/githubapp.go +++ b/pkg/detectors/githubapp/githubapp.go @@ -1,7 +1,7 @@ package githubapp import ( - "context" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" // b64 "encoding/base64" "fmt" @@ -11,6 +11,7 @@ import ( "time" "github.com/golang-jwt/jwt" + "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/githubapp/githubapp_test.go b/pkg/detectors/githubapp/githubapp_test.go index 714fe84f9c967..e00b748cc4d15 100644 --- a/pkg/detectors/githubapp/githubapp_test.go +++ b/pkg/detectors/githubapp/githubapp_test.go @@ -4,13 +4,15 @@ package githubapp import ( - "context" b64 "encoding/base64" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gitlab/gitlab.go b/pkg/detectors/gitlab/gitlab.go index 33ac756b7d93c..52d6a3f51dbb6 100644 --- a/pkg/detectors/gitlab/gitlab.go +++ b/pkg/detectors/gitlab/gitlab.go @@ -1,7 +1,6 @@ package gitlab import ( - "context" "encoding/json" "fmt" "io" @@ -9,6 +8,8 @@ import ( "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/gitlab/gitlab_v1_test.go b/pkg/detectors/gitlab/gitlab_v1_test.go index 05c2f8ffa0627..58086dd40a5bf 100644 --- a/pkg/detectors/gitlab/gitlab_v1_test.go +++ b/pkg/detectors/gitlab/gitlab_v1_test.go @@ -4,11 +4,12 @@ package gitlab import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/gitlab/gitlab_v2_test.go b/pkg/detectors/gitlab/gitlab_v2_test.go index 13063e1a5d596..052ab915c9182 100644 --- a/pkg/detectors/gitlab/gitlab_v2_test.go +++ b/pkg/detectors/gitlab/gitlab_v2_test.go @@ -4,13 +4,15 @@ package gitlab import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" + "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" ) diff --git a/pkg/detectors/gitlabv2/gitlab_v1_test.go b/pkg/detectors/gitlabv2/gitlab_v1_test.go index 930d6a8489e5d..83bb173fee7f8 100644 --- a/pkg/detectors/gitlabv2/gitlab_v1_test.go +++ b/pkg/detectors/gitlabv2/gitlab_v1_test.go @@ -4,11 +4,12 @@ package gitlabv2 import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/gitlabv2/gitlab_v2.go b/pkg/detectors/gitlabv2/gitlab_v2.go index 4c8c261504836..4529e11d2de96 100644 --- a/pkg/detectors/gitlabv2/gitlab_v2.go +++ b/pkg/detectors/gitlabv2/gitlab_v2.go @@ -1,12 +1,13 @@ package gitlabv2 import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/gitlabv2/gitlab_v2_test.go b/pkg/detectors/gitlabv2/gitlab_v2_test.go index ee6b8591ea31f..d964d16dac644 100644 --- a/pkg/detectors/gitlabv2/gitlab_v2_test.go +++ b/pkg/detectors/gitlabv2/gitlab_v2_test.go @@ -4,13 +4,15 @@ package gitlabv2 import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" + "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/gitter/gitter.go b/pkg/detectors/gitter/gitter.go index f190118e039ec..621620b88f83c 100644 --- a/pkg/detectors/gitter/gitter.go +++ b/pkg/detectors/gitter/gitter.go @@ -1,12 +1,13 @@ package gitter import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/gitter/gitter_test.go b/pkg/detectors/gitter/gitter_test.go index aaa480aaf5c85..17bd22fe31b07 100644 --- a/pkg/detectors/gitter/gitter_test.go +++ b/pkg/detectors/gitter/gitter_test.go @@ -4,12 +4,14 @@ package gitter import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/glassnode/glassnode.go b/pkg/detectors/glassnode/glassnode.go index b09e84870e291..3a3f62aabd534 100644 --- a/pkg/detectors/glassnode/glassnode.go +++ b/pkg/detectors/glassnode/glassnode.go @@ -1,11 +1,12 @@ package glassnode import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/glassnode/glassnode_test.go b/pkg/detectors/glassnode/glassnode_test.go index baa04ee22ffd2..4729caf0bdfa8 100644 --- a/pkg/detectors/glassnode/glassnode_test.go +++ b/pkg/detectors/glassnode/glassnode_test.go @@ -4,12 +4,14 @@ package glassnode import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gocanvas/gocanvas.go b/pkg/detectors/gocanvas/gocanvas.go index 00854e62a25e6..898e5ecc0c2cb 100644 --- a/pkg/detectors/gocanvas/gocanvas.go +++ b/pkg/detectors/gocanvas/gocanvas.go @@ -1,7 +1,6 @@ package gocanvas import ( - "context" "encoding/xml" "fmt" "io" @@ -10,6 +9,8 @@ import ( "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/gocanvas/gocanvas_test.go b/pkg/detectors/gocanvas/gocanvas_test.go index d6bf551feb6e0..fc87889438dbf 100644 --- a/pkg/detectors/gocanvas/gocanvas_test.go +++ b/pkg/detectors/gocanvas/gocanvas_test.go @@ -4,11 +4,12 @@ package gocanvas import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gocardless/gocardless.go b/pkg/detectors/gocardless/gocardless.go index 693911adb293b..7f789ed39c484 100644 --- a/pkg/detectors/gocardless/gocardless.go +++ b/pkg/detectors/gocardless/gocardless.go @@ -1,12 +1,13 @@ package gocardless import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/gocardless/gocardless_test.go b/pkg/detectors/gocardless/gocardless_test.go index e20a5276e23de..a724346df8b90 100644 --- a/pkg/detectors/gocardless/gocardless_test.go +++ b/pkg/detectors/gocardless/gocardless_test.go @@ -4,12 +4,14 @@ package gocardless import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/goodday/goodday.go b/pkg/detectors/goodday/goodday.go index 7523e3a0acaa3..1c0b354ae1ac1 100644 --- a/pkg/detectors/goodday/goodday.go +++ b/pkg/detectors/goodday/goodday.go @@ -1,11 +1,12 @@ package goodday import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/goodday/goodday_test.go b/pkg/detectors/goodday/goodday_test.go index 03ea6e6876587..645ec92c57ff9 100644 --- a/pkg/detectors/goodday/goodday_test.go +++ b/pkg/detectors/goodday/goodday_test.go @@ -4,11 +4,12 @@ package goodday import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/grafana/grafana.go b/pkg/detectors/grafana/grafana.go index 5bd7676ba71ec..42a8bbe6dff8d 100644 --- a/pkg/detectors/grafana/grafana.go +++ b/pkg/detectors/grafana/grafana.go @@ -1,12 +1,13 @@ package grafana import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/grafana/grafana_test.go b/pkg/detectors/grafana/grafana_test.go index 4e6002a83f97e..e58fd486e0ad9 100644 --- a/pkg/detectors/grafana/grafana_test.go +++ b/pkg/detectors/grafana/grafana_test.go @@ -4,11 +4,12 @@ package grafana import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/grafanaserviceaccount/grafanaserviceaccount.go b/pkg/detectors/grafanaserviceaccount/grafanaserviceaccount.go index 94c1771cf2087..c433f5b2477ee 100644 --- a/pkg/detectors/grafanaserviceaccount/grafanaserviceaccount.go +++ b/pkg/detectors/grafanaserviceaccount/grafanaserviceaccount.go @@ -1,8 +1,8 @@ package grafanaserviceaccount import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "net/http" "regexp" "strings" diff --git a/pkg/detectors/grafanaserviceaccount/grafanaserviceaccount_test.go b/pkg/detectors/grafanaserviceaccount/grafanaserviceaccount_test.go index c3572d809e820..83c064c630679 100644 --- a/pkg/detectors/grafanaserviceaccount/grafanaserviceaccount_test.go +++ b/pkg/detectors/grafanaserviceaccount/grafanaserviceaccount_test.go @@ -4,11 +4,12 @@ package grafanaserviceaccount import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/graphcms/graphcms.go b/pkg/detectors/graphcms/graphcms.go index 1059b7d3b2c8b..9ae4a50d54f85 100644 --- a/pkg/detectors/graphcms/graphcms.go +++ b/pkg/detectors/graphcms/graphcms.go @@ -1,12 +1,13 @@ package graphcms import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/graphcms/graphcms_test.go b/pkg/detectors/graphcms/graphcms_test.go index caf8424d5a27f..97a31b910a446 100644 --- a/pkg/detectors/graphcms/graphcms_test.go +++ b/pkg/detectors/graphcms/graphcms_test.go @@ -4,12 +4,14 @@ package graphcms import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/graphhopper/graphhopper.go b/pkg/detectors/graphhopper/graphhopper.go index b3e249613a31d..4c41cf7d9f282 100644 --- a/pkg/detectors/graphhopper/graphhopper.go +++ b/pkg/detectors/graphhopper/graphhopper.go @@ -1,12 +1,13 @@ package graphhopper import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/graphhopper/graphhopper_test.go b/pkg/detectors/graphhopper/graphhopper_test.go index 7531b2f37ab0f..1bb5468830982 100644 --- a/pkg/detectors/graphhopper/graphhopper_test.go +++ b/pkg/detectors/graphhopper/graphhopper_test.go @@ -4,12 +4,14 @@ package graphhopper import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/groovehq/groovehq.go b/pkg/detectors/groovehq/groovehq.go index ca5c7b7b81771..843309ce17b01 100644 --- a/pkg/detectors/groovehq/groovehq.go +++ b/pkg/detectors/groovehq/groovehq.go @@ -1,12 +1,13 @@ package groovehq import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/groovehq/groovehq_test.go b/pkg/detectors/groovehq/groovehq_test.go index 00f399b0c26f6..7788491231f1f 100644 --- a/pkg/detectors/groovehq/groovehq_test.go +++ b/pkg/detectors/groovehq/groovehq_test.go @@ -4,12 +4,14 @@ package groovehq import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gtmetrix/gtmetrix.go b/pkg/detectors/gtmetrix/gtmetrix.go index 7decbba1263b4..cfd8ee2d0e0a5 100644 --- a/pkg/detectors/gtmetrix/gtmetrix.go +++ b/pkg/detectors/gtmetrix/gtmetrix.go @@ -1,11 +1,12 @@ package gtmetrix import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/gtmetrix/gtmetrix_test.go b/pkg/detectors/gtmetrix/gtmetrix_test.go index 534a618a2aa40..d2e2fedcf0e43 100644 --- a/pkg/detectors/gtmetrix/gtmetrix_test.go +++ b/pkg/detectors/gtmetrix/gtmetrix_test.go @@ -1,12 +1,14 @@ package gtmetrix import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/guardianapi/guardianapi.go b/pkg/detectors/guardianapi/guardianapi.go index 0630f582dfc37..0fdab054ef666 100644 --- a/pkg/detectors/guardianapi/guardianapi.go +++ b/pkg/detectors/guardianapi/guardianapi.go @@ -1,11 +1,12 @@ package guardianapi import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/guardianapi/guardianapi_test.go b/pkg/detectors/guardianapi/guardianapi_test.go index 4860808636185..85f3a6fabc613 100644 --- a/pkg/detectors/guardianapi/guardianapi_test.go +++ b/pkg/detectors/guardianapi/guardianapi_test.go @@ -4,12 +4,14 @@ package guardianapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gumroad/gumroad.go b/pkg/detectors/gumroad/gumroad.go index 5725574c514c2..32559f8c85b0f 100644 --- a/pkg/detectors/gumroad/gumroad.go +++ b/pkg/detectors/gumroad/gumroad.go @@ -1,11 +1,12 @@ package gumroad import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/gumroad/gumroad_test.go b/pkg/detectors/gumroad/gumroad_test.go index 6b9ef5350a0cc..e178e59705a14 100644 --- a/pkg/detectors/gumroad/gumroad_test.go +++ b/pkg/detectors/gumroad/gumroad_test.go @@ -4,12 +4,14 @@ package gumroad import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/guru/guru.go b/pkg/detectors/guru/guru.go index 563a1fc9df017..bd6720a740164 100644 --- a/pkg/detectors/guru/guru.go +++ b/pkg/detectors/guru/guru.go @@ -1,13 +1,14 @@ package guru import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/guru/guru_test.go b/pkg/detectors/guru/guru_test.go index b2135a2614f64..79060aa67fb83 100644 --- a/pkg/detectors/guru/guru_test.go +++ b/pkg/detectors/guru/guru_test.go @@ -4,11 +4,12 @@ package guru import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gyazo/gyazo.go b/pkg/detectors/gyazo/gyazo.go index b52555071fd4e..ab26baeff53d5 100644 --- a/pkg/detectors/gyazo/gyazo.go +++ b/pkg/detectors/gyazo/gyazo.go @@ -1,11 +1,12 @@ package gyazo import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/gyazo/gyazo_test.go b/pkg/detectors/gyazo/gyazo_test.go index d3761c9774344..87fa1312c2f18 100644 --- a/pkg/detectors/gyazo/gyazo_test.go +++ b/pkg/detectors/gyazo/gyazo_test.go @@ -4,12 +4,14 @@ package gyazo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/happyscribe/happyscribe.go b/pkg/detectors/happyscribe/happyscribe.go index 354206563d90f..9b40d32bf6ee1 100644 --- a/pkg/detectors/happyscribe/happyscribe.go +++ b/pkg/detectors/happyscribe/happyscribe.go @@ -1,12 +1,13 @@ package happyscribe import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/happyscribe/happyscribe_test.go b/pkg/detectors/happyscribe/happyscribe_test.go index 8671dce225329..65cdb6d6ec69c 100644 --- a/pkg/detectors/happyscribe/happyscribe_test.go +++ b/pkg/detectors/happyscribe/happyscribe_test.go @@ -4,12 +4,14 @@ package happyscribe import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/harvest/harvest.go b/pkg/detectors/harvest/harvest.go index 10a38f7390c7e..2101012d6cf80 100644 --- a/pkg/detectors/harvest/harvest.go +++ b/pkg/detectors/harvest/harvest.go @@ -1,11 +1,12 @@ package harvest import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/harvest/harvest_test.go b/pkg/detectors/harvest/harvest_test.go index 6efae6187fd85..2447b22d47e93 100644 --- a/pkg/detectors/harvest/harvest_test.go +++ b/pkg/detectors/harvest/harvest_test.go @@ -4,12 +4,14 @@ package harvest import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/hellosign/hellosign.go b/pkg/detectors/hellosign/hellosign.go index 9b43595be541e..140827787dc6d 100644 --- a/pkg/detectors/hellosign/hellosign.go +++ b/pkg/detectors/hellosign/hellosign.go @@ -1,11 +1,12 @@ package hellosign import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/hellosign/hellosign_test.go b/pkg/detectors/hellosign/hellosign_test.go index a764ff549635b..543b8bb34dcb8 100644 --- a/pkg/detectors/hellosign/hellosign_test.go +++ b/pkg/detectors/hellosign/hellosign_test.go @@ -4,11 +4,12 @@ package hellosign import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/helpcrunch/helpcrunch.go b/pkg/detectors/helpcrunch/helpcrunch.go index 55a82a37a7594..20129ca57410e 100644 --- a/pkg/detectors/helpcrunch/helpcrunch.go +++ b/pkg/detectors/helpcrunch/helpcrunch.go @@ -1,12 +1,13 @@ package helpcrunch import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/helpcrunch/helpcrunch_test.go b/pkg/detectors/helpcrunch/helpcrunch_test.go index 01dfd5de6cd64..1b9b09bb72c2b 100644 --- a/pkg/detectors/helpcrunch/helpcrunch_test.go +++ b/pkg/detectors/helpcrunch/helpcrunch_test.go @@ -4,12 +4,14 @@ package helpcrunch import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/helpscout/helpscout.go b/pkg/detectors/helpscout/helpscout.go index ed139de335977..c57eaef4e77e9 100644 --- a/pkg/detectors/helpscout/helpscout.go +++ b/pkg/detectors/helpscout/helpscout.go @@ -1,11 +1,12 @@ package helpscout import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/helpscout/helpscout_test.go b/pkg/detectors/helpscout/helpscout_test.go index 7a3ab7b12f97a..f341b58b5ca68 100644 --- a/pkg/detectors/helpscout/helpscout_test.go +++ b/pkg/detectors/helpscout/helpscout_test.go @@ -4,12 +4,14 @@ package helpscout import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/hereapi/hereapi.go b/pkg/detectors/hereapi/hereapi.go index c6362a7b4755d..cd04cec6895a3 100644 --- a/pkg/detectors/hereapi/hereapi.go +++ b/pkg/detectors/hereapi/hereapi.go @@ -1,12 +1,13 @@ package hereapi import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/hereapi/hereapi_test.go b/pkg/detectors/hereapi/hereapi_test.go index 8955ceeacc90c..c399ffb7b77f8 100644 --- a/pkg/detectors/hereapi/hereapi_test.go +++ b/pkg/detectors/hereapi/hereapi_test.go @@ -4,12 +4,14 @@ package hereapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/heroku/heroku.go b/pkg/detectors/heroku/heroku.go index 2821fc7cb3195..f6dcee1c62348 100644 --- a/pkg/detectors/heroku/heroku.go +++ b/pkg/detectors/heroku/heroku.go @@ -1,12 +1,13 @@ package heroku import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/heroku/heroku_test.go b/pkg/detectors/heroku/heroku_test.go index ff4d3bf12c2bf..4449024528346 100644 --- a/pkg/detectors/heroku/heroku_test.go +++ b/pkg/detectors/heroku/heroku_test.go @@ -4,12 +4,14 @@ package heroku import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/hive/hive.go b/pkg/detectors/hive/hive.go index eecb74c86f8a9..29a1addcdc466 100644 --- a/pkg/detectors/hive/hive.go +++ b/pkg/detectors/hive/hive.go @@ -1,11 +1,12 @@ package hive import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/hive/hive_test.go b/pkg/detectors/hive/hive_test.go index 9d25915e11f90..57fe612736e0e 100644 --- a/pkg/detectors/hive/hive_test.go +++ b/pkg/detectors/hive/hive_test.go @@ -4,12 +4,14 @@ package hive import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/hiveage/hiveage.go b/pkg/detectors/hiveage/hiveage.go index 1f84e97ea22c5..e0dcfa1d296bb 100644 --- a/pkg/detectors/hiveage/hiveage.go +++ b/pkg/detectors/hiveage/hiveage.go @@ -1,13 +1,14 @@ package hiveage import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/hiveage/hiveage_test.go b/pkg/detectors/hiveage/hiveage_test.go index fe8c71f3a6060..14b84bd6296c4 100644 --- a/pkg/detectors/hiveage/hiveage_test.go +++ b/pkg/detectors/hiveage/hiveage_test.go @@ -4,12 +4,14 @@ package hiveage import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/holidayapi/holidayapi.go b/pkg/detectors/holidayapi/holidayapi.go index f22ee728ffc03..beb3d8e9aee4c 100644 --- a/pkg/detectors/holidayapi/holidayapi.go +++ b/pkg/detectors/holidayapi/holidayapi.go @@ -1,12 +1,13 @@ package holidayapi import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/holidayapi/holidayapi_test.go b/pkg/detectors/holidayapi/holidayapi_test.go index 33a92322277ca..80138382dfef4 100644 --- a/pkg/detectors/holidayapi/holidayapi_test.go +++ b/pkg/detectors/holidayapi/holidayapi_test.go @@ -4,12 +4,14 @@ package holidayapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/holistic/holistic.go b/pkg/detectors/holistic/holistic.go index 71160576acbd5..caf2cbbd59587 100644 --- a/pkg/detectors/holistic/holistic.go +++ b/pkg/detectors/holistic/holistic.go @@ -1,12 +1,13 @@ package holistic import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/holistic/holistic_test.go b/pkg/detectors/holistic/holistic_test.go index 1e6ab8c114a0c..1346d2bef8092 100644 --- a/pkg/detectors/holistic/holistic_test.go +++ b/pkg/detectors/holistic/holistic_test.go @@ -1,12 +1,14 @@ package holistic import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/honeycomb/honeycomb.go b/pkg/detectors/honeycomb/honeycomb.go index 08af012f4d641..36eac8a66e7c9 100644 --- a/pkg/detectors/honeycomb/honeycomb.go +++ b/pkg/detectors/honeycomb/honeycomb.go @@ -1,11 +1,12 @@ package honeycomb import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/honeycomb/honeycomb_test.go b/pkg/detectors/honeycomb/honeycomb_test.go index 50579d93470bf..5449e5a808b6d 100644 --- a/pkg/detectors/honeycomb/honeycomb_test.go +++ b/pkg/detectors/honeycomb/honeycomb_test.go @@ -4,12 +4,14 @@ package honeycomb import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/host/host.go b/pkg/detectors/host/host.go index 0ed0db805c258..aa14c7ed45bba 100644 --- a/pkg/detectors/host/host.go +++ b/pkg/detectors/host/host.go @@ -1,12 +1,13 @@ package host import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/host/host_test.go b/pkg/detectors/host/host_test.go index d1dc402f18b34..47f3a9550ac91 100644 --- a/pkg/detectors/host/host_test.go +++ b/pkg/detectors/host/host_test.go @@ -4,12 +4,14 @@ package host import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/html2pdf/html2pdf.go b/pkg/detectors/html2pdf/html2pdf.go index 5b0594af52ec7..e7981bca25885 100644 --- a/pkg/detectors/html2pdf/html2pdf.go +++ b/pkg/detectors/html2pdf/html2pdf.go @@ -2,12 +2,13 @@ package html2pdf import ( "bytes" - "context" "encoding/json" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" ) diff --git a/pkg/detectors/html2pdf/html2pdf_test.go b/pkg/detectors/html2pdf/html2pdf_test.go index a41f595b45340..2cb30f8b57292 100644 --- a/pkg/detectors/html2pdf/html2pdf_test.go +++ b/pkg/detectors/html2pdf/html2pdf_test.go @@ -4,12 +4,14 @@ package html2pdf import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/hubspotapikey/hubspotapikey.go b/pkg/detectors/hubspotapikey/hubspotapikey.go index 4adb62c76b16b..e5f43c4fda3c2 100644 --- a/pkg/detectors/hubspotapikey/hubspotapikey.go +++ b/pkg/detectors/hubspotapikey/hubspotapikey.go @@ -1,7 +1,7 @@ package hubspotapikey import ( - "context" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" // "log" "net/http" "regexp" diff --git a/pkg/detectors/hubspotapikey/hubspotapikey_test.go b/pkg/detectors/hubspotapikey/hubspotapikey_test.go index 8c8a819c498dd..29e29c78b307b 100644 --- a/pkg/detectors/hubspotapikey/hubspotapikey_test.go +++ b/pkg/detectors/hubspotapikey/hubspotapikey_test.go @@ -4,12 +4,14 @@ package hubspotapikey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/huggingface/huggingface.go b/pkg/detectors/huggingface/huggingface.go index 1d463e6f549ec..a001c10f35d4a 100644 --- a/pkg/detectors/huggingface/huggingface.go +++ b/pkg/detectors/huggingface/huggingface.go @@ -1,12 +1,13 @@ package huggingface import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/huggingface/huggingface_test.go b/pkg/detectors/huggingface/huggingface_test.go index 08bcf1f319280..696455093f2c7 100644 --- a/pkg/detectors/huggingface/huggingface_test.go +++ b/pkg/detectors/huggingface/huggingface_test.go @@ -4,11 +4,12 @@ package huggingface import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/humanity/humanity.go b/pkg/detectors/humanity/humanity.go index 879948606aa3a..d1226933f8786 100644 --- a/pkg/detectors/humanity/humanity.go +++ b/pkg/detectors/humanity/humanity.go @@ -1,12 +1,13 @@ package humanity import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/humanity/humanity_test.go b/pkg/detectors/humanity/humanity_test.go index 71f3268739a3b..2a1b6dc2fe9d3 100644 --- a/pkg/detectors/humanity/humanity_test.go +++ b/pkg/detectors/humanity/humanity_test.go @@ -4,12 +4,14 @@ package humanity import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/hunter/hunter.go b/pkg/detectors/hunter/hunter.go index c53fda8abdb8b..de609cf354e9e 100644 --- a/pkg/detectors/hunter/hunter.go +++ b/pkg/detectors/hunter/hunter.go @@ -1,7 +1,7 @@ package hunter import ( - "context" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" // "fmt" // "log" "net/http" diff --git a/pkg/detectors/hunter/hunter_test.go b/pkg/detectors/hunter/hunter_test.go index 4c21cde0f2b7d..54a27e1eaa3c0 100644 --- a/pkg/detectors/hunter/hunter_test.go +++ b/pkg/detectors/hunter/hunter_test.go @@ -4,11 +4,12 @@ package hunter import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/hybiscus/hybiscus.go b/pkg/detectors/hybiscus/hybiscus.go index 61c173bf3c04e..bb4012f27110c 100644 --- a/pkg/detectors/hybiscus/hybiscus.go +++ b/pkg/detectors/hybiscus/hybiscus.go @@ -1,11 +1,12 @@ package hybiscus import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/hybiscus/hybiscus_test.go b/pkg/detectors/hybiscus/hybiscus_test.go index 064e73e9a3db6..3345cb5e42004 100644 --- a/pkg/detectors/hybiscus/hybiscus_test.go +++ b/pkg/detectors/hybiscus/hybiscus_test.go @@ -4,12 +4,14 @@ package hybiscus import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/hypertrack/hypertrack.go b/pkg/detectors/hypertrack/hypertrack.go index 318bed544ee12..fc3374c288591 100644 --- a/pkg/detectors/hypertrack/hypertrack.go +++ b/pkg/detectors/hypertrack/hypertrack.go @@ -1,11 +1,12 @@ package hypertrack import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/hypertrack/hypertrack_test.go b/pkg/detectors/hypertrack/hypertrack_test.go index 4485281a0d79f..27b689c733aef 100644 --- a/pkg/detectors/hypertrack/hypertrack_test.go +++ b/pkg/detectors/hypertrack/hypertrack_test.go @@ -4,12 +4,14 @@ package hypertrack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go b/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go index d94f8942dbca2..b6d51a6107911 100644 --- a/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go +++ b/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go @@ -1,11 +1,12 @@ package ibmclouduserkey import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ibmclouduserkey/ibmclouduserkey_test.go b/pkg/detectors/ibmclouduserkey/ibmclouduserkey_test.go index d872fa905217c..5639850722267 100644 --- a/pkg/detectors/ibmclouduserkey/ibmclouduserkey_test.go +++ b/pkg/detectors/ibmclouduserkey/ibmclouduserkey_test.go @@ -4,12 +4,14 @@ package ibmclouduserkey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/iconfinder/iconfinder.go b/pkg/detectors/iconfinder/iconfinder.go index 60f27d796ec20..12a1b1f883903 100644 --- a/pkg/detectors/iconfinder/iconfinder.go +++ b/pkg/detectors/iconfinder/iconfinder.go @@ -1,12 +1,13 @@ package iconfinder import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/iconfinder/iconfinder_test.go b/pkg/detectors/iconfinder/iconfinder_test.go index 2f1fcdf149de2..f121aaa3c5ec9 100644 --- a/pkg/detectors/iconfinder/iconfinder_test.go +++ b/pkg/detectors/iconfinder/iconfinder_test.go @@ -4,12 +4,14 @@ package iconfinder import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/iexapis/iexapis.go b/pkg/detectors/iexapis/iexapis.go index dcc25865bae76..18816205eae77 100644 --- a/pkg/detectors/iexapis/iexapis.go +++ b/pkg/detectors/iexapis/iexapis.go @@ -1,11 +1,12 @@ package iexapis import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/iexapis/iexapis_test.go b/pkg/detectors/iexapis/iexapis_test.go index 10471c9b69b65..8697f501633e8 100644 --- a/pkg/detectors/iexapis/iexapis_test.go +++ b/pkg/detectors/iexapis/iexapis_test.go @@ -4,12 +4,14 @@ package iexapis import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/iexcloud/iexcloud.go b/pkg/detectors/iexcloud/iexcloud.go index 53ceff3d846cc..a9554481ae52c 100644 --- a/pkg/detectors/iexcloud/iexcloud.go +++ b/pkg/detectors/iexcloud/iexcloud.go @@ -1,12 +1,13 @@ package iexcloud import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/iexcloud/iexcloud_test.go b/pkg/detectors/iexcloud/iexcloud_test.go index 29285bc6a56e1..e2881913a2f96 100644 --- a/pkg/detectors/iexcloud/iexcloud_test.go +++ b/pkg/detectors/iexcloud/iexcloud_test.go @@ -4,12 +4,14 @@ package iexcloud import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/imagekit/imagekit.go b/pkg/detectors/imagekit/imagekit.go index b0f224d283d81..9f06bfa63dda1 100644 --- a/pkg/detectors/imagekit/imagekit.go +++ b/pkg/detectors/imagekit/imagekit.go @@ -1,11 +1,12 @@ package imagekit import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/imagekit/imagekit_test.go b/pkg/detectors/imagekit/imagekit_test.go index 50a5bb40e811d..17d9f4c8f0ccf 100644 --- a/pkg/detectors/imagekit/imagekit_test.go +++ b/pkg/detectors/imagekit/imagekit_test.go @@ -4,12 +4,14 @@ package imagekit import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/imagga/imagga.go b/pkg/detectors/imagga/imagga.go index 7ba883e2ff856..7208840e4b5ef 100644 --- a/pkg/detectors/imagga/imagga.go +++ b/pkg/detectors/imagga/imagga.go @@ -1,12 +1,13 @@ package imagga import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/imagga/imagga_test.go b/pkg/detectors/imagga/imagga_test.go index b46d71050bb74..e0c145403e994 100644 --- a/pkg/detectors/imagga/imagga_test.go +++ b/pkg/detectors/imagga/imagga_test.go @@ -4,12 +4,14 @@ package imagga import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/impala/impala.go b/pkg/detectors/impala/impala.go index e7dceeace9c3c..12f2626f99c11 100644 --- a/pkg/detectors/impala/impala.go +++ b/pkg/detectors/impala/impala.go @@ -1,11 +1,12 @@ package impala import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/impala/impala_test.go b/pkg/detectors/impala/impala_test.go index 1590112a97032..0fedeab85c24e 100644 --- a/pkg/detectors/impala/impala_test.go +++ b/pkg/detectors/impala/impala_test.go @@ -4,12 +4,14 @@ package impala import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/infura/infura.go b/pkg/detectors/infura/infura.go index 4ee17c7d9a094..833d091de1cc8 100644 --- a/pkg/detectors/infura/infura.go +++ b/pkg/detectors/infura/infura.go @@ -1,12 +1,13 @@ package infura import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/infura/infura_test.go b/pkg/detectors/infura/infura_test.go index 1e3864413cb01..bfaa516d080ad 100644 --- a/pkg/detectors/infura/infura_test.go +++ b/pkg/detectors/infura/infura_test.go @@ -4,12 +4,14 @@ package infura import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/insightly/insightly.go b/pkg/detectors/insightly/insightly.go index faaad14af0259..ad20cf7cd7300 100644 --- a/pkg/detectors/insightly/insightly.go +++ b/pkg/detectors/insightly/insightly.go @@ -1,11 +1,12 @@ package insightly import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/insightly/insightly_test.go b/pkg/detectors/insightly/insightly_test.go index bcaa17ae6763e..f9dde4a2f2edb 100644 --- a/pkg/detectors/insightly/insightly_test.go +++ b/pkg/detectors/insightly/insightly_test.go @@ -4,12 +4,14 @@ package insightly import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/instabot/instabot.go b/pkg/detectors/instabot/instabot.go index 0aa468e63ede5..c4c4874f50ee8 100644 --- a/pkg/detectors/instabot/instabot.go +++ b/pkg/detectors/instabot/instabot.go @@ -1,11 +1,12 @@ package instabot import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/instabot/instabot_test.go b/pkg/detectors/instabot/instabot_test.go index 82f593e154f1a..c9ede1a9fc2e3 100644 --- a/pkg/detectors/instabot/instabot_test.go +++ b/pkg/detectors/instabot/instabot_test.go @@ -4,12 +4,14 @@ package instabot import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/instamojo/instamojo.go b/pkg/detectors/instamojo/instamojo.go index 42ba954b55b91..909c1e51c11a3 100644 --- a/pkg/detectors/instamojo/instamojo.go +++ b/pkg/detectors/instamojo/instamojo.go @@ -1,13 +1,14 @@ package instamojo import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/instamojo/instamojo_test.go b/pkg/detectors/instamojo/instamojo_test.go index 81bacaaac9073..e55c0a6ffbede 100644 --- a/pkg/detectors/instamojo/instamojo_test.go +++ b/pkg/detectors/instamojo/instamojo_test.go @@ -4,12 +4,14 @@ package instamojo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/integromat/integromat.go b/pkg/detectors/integromat/integromat.go index a7476113b236b..c2d9dbc3b72c9 100644 --- a/pkg/detectors/integromat/integromat.go +++ b/pkg/detectors/integromat/integromat.go @@ -1,12 +1,13 @@ package integromat import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/integromat/integromat_test.go b/pkg/detectors/integromat/integromat_test.go index 0f48d4d7b4e9e..3c10e46eb08e4 100644 --- a/pkg/detectors/integromat/integromat_test.go +++ b/pkg/detectors/integromat/integromat_test.go @@ -4,12 +4,14 @@ package integromat import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/intercom/intercom.go b/pkg/detectors/intercom/intercom.go index ae4185f70b0b3..e8b318947add4 100644 --- a/pkg/detectors/intercom/intercom.go +++ b/pkg/detectors/intercom/intercom.go @@ -1,12 +1,13 @@ package intercom import ( - "context" "encoding/base64" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/intercom/intercom_test.go b/pkg/detectors/intercom/intercom_test.go index 1c738cbf5f50a..ac558fb42face 100644 --- a/pkg/detectors/intercom/intercom_test.go +++ b/pkg/detectors/intercom/intercom_test.go @@ -4,12 +4,14 @@ package intercom import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/interseller/interseller.go b/pkg/detectors/interseller/interseller.go index cf2e5c77bb501..2298d60faba0d 100644 --- a/pkg/detectors/interseller/interseller.go +++ b/pkg/detectors/interseller/interseller.go @@ -1,11 +1,12 @@ package interseller import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/interseller/interseller_test.go b/pkg/detectors/interseller/interseller_test.go index 58d662e57607f..4a90bb3338f08 100644 --- a/pkg/detectors/interseller/interseller_test.go +++ b/pkg/detectors/interseller/interseller_test.go @@ -4,12 +4,14 @@ package interseller import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/intrinio/intrinio.go b/pkg/detectors/intrinio/intrinio.go index 7792e5f1a022e..99e6aa74c1a72 100644 --- a/pkg/detectors/intrinio/intrinio.go +++ b/pkg/detectors/intrinio/intrinio.go @@ -1,12 +1,13 @@ package intrinio import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/intrinio/intrinio_test.go b/pkg/detectors/intrinio/intrinio_test.go index 3b68683ca0122..e13c55457893a 100644 --- a/pkg/detectors/intrinio/intrinio_test.go +++ b/pkg/detectors/intrinio/intrinio_test.go @@ -4,12 +4,14 @@ package intrinio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/invoiceocean/invoiceocean.go b/pkg/detectors/invoiceocean/invoiceocean.go index c2a10462fd17c..903104a8b1892 100644 --- a/pkg/detectors/invoiceocean/invoiceocean.go +++ b/pkg/detectors/invoiceocean/invoiceocean.go @@ -1,12 +1,13 @@ package invoiceocean import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/invoiceocean/invoiceocean_test.go b/pkg/detectors/invoiceocean/invoiceocean_test.go index 0631669aac5bc..b7566d3e61d9a 100644 --- a/pkg/detectors/invoiceocean/invoiceocean_test.go +++ b/pkg/detectors/invoiceocean/invoiceocean_test.go @@ -4,12 +4,14 @@ package invoiceocean import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ip2location/ip2location.go b/pkg/detectors/ip2location/ip2location.go index 04537e43a2430..7f9c07329ed50 100644 --- a/pkg/detectors/ip2location/ip2location.go +++ b/pkg/detectors/ip2location/ip2location.go @@ -1,12 +1,13 @@ package ip2location import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ip2location/ip2location_test.go b/pkg/detectors/ip2location/ip2location_test.go index 2e40cdefdfcce..d57bfbbdec3c7 100644 --- a/pkg/detectors/ip2location/ip2location_test.go +++ b/pkg/detectors/ip2location/ip2location_test.go @@ -4,11 +4,12 @@ package ip2location import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/ipapi/ipapi.go b/pkg/detectors/ipapi/ipapi.go index 3205b27061d68..2f507906f000f 100644 --- a/pkg/detectors/ipapi/ipapi.go +++ b/pkg/detectors/ipapi/ipapi.go @@ -1,13 +1,14 @@ package ipapi import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ipapi/ipapi_test.go b/pkg/detectors/ipapi/ipapi_test.go index 4750a530b76c6..0f4d244a1d95f 100644 --- a/pkg/detectors/ipapi/ipapi_test.go +++ b/pkg/detectors/ipapi/ipapi_test.go @@ -4,12 +4,14 @@ package ipapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ipgeolocation/ipgeolocation.go b/pkg/detectors/ipgeolocation/ipgeolocation.go index 29cadae88eaf5..f6c1b4e15cf46 100644 --- a/pkg/detectors/ipgeolocation/ipgeolocation.go +++ b/pkg/detectors/ipgeolocation/ipgeolocation.go @@ -1,12 +1,13 @@ package ipgeolocation import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ipgeolocation/ipgeolocation_test.go b/pkg/detectors/ipgeolocation/ipgeolocation_test.go index 374d290f196f4..688b2b292ab19 100644 --- a/pkg/detectors/ipgeolocation/ipgeolocation_test.go +++ b/pkg/detectors/ipgeolocation/ipgeolocation_test.go @@ -4,12 +4,14 @@ package ipgeolocation import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ipify/ipify.go b/pkg/detectors/ipify/ipify.go index 3f288075295bb..2c33997d8ed05 100644 --- a/pkg/detectors/ipify/ipify.go +++ b/pkg/detectors/ipify/ipify.go @@ -1,13 +1,14 @@ package ipify import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ipify/ipify_test.go b/pkg/detectors/ipify/ipify_test.go index 82344afa01b98..1315d24882969 100644 --- a/pkg/detectors/ipify/ipify_test.go +++ b/pkg/detectors/ipify/ipify_test.go @@ -4,12 +4,14 @@ package ipify import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ipinfo/ipinfo.go b/pkg/detectors/ipinfo/ipinfo.go index 3b1761c9cccb3..a7d6229474535 100644 --- a/pkg/detectors/ipinfo/ipinfo.go +++ b/pkg/detectors/ipinfo/ipinfo.go @@ -1,12 +1,13 @@ package ipinfo import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ipinfo/ipinfo_test.go b/pkg/detectors/ipinfo/ipinfo_test.go index abdcac517986a..c99e65a99791c 100644 --- a/pkg/detectors/ipinfo/ipinfo_test.go +++ b/pkg/detectors/ipinfo/ipinfo_test.go @@ -4,11 +4,12 @@ package ipinfo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/ipinfodb/ipinfodb.go b/pkg/detectors/ipinfodb/ipinfodb.go index 1ec4bd72d6d75..a7870e6716e2b 100644 --- a/pkg/detectors/ipinfodb/ipinfodb.go +++ b/pkg/detectors/ipinfodb/ipinfodb.go @@ -1,13 +1,14 @@ package ipinfodb import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ipinfodb/ipinfodb_test.go b/pkg/detectors/ipinfodb/ipinfodb_test.go index 14c2ec5bf10a1..38d1210fd19c3 100644 --- a/pkg/detectors/ipinfodb/ipinfodb_test.go +++ b/pkg/detectors/ipinfodb/ipinfodb_test.go @@ -4,12 +4,14 @@ package ipinfodb import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ipquality/ipquality.go b/pkg/detectors/ipquality/ipquality.go index 6288e6f5b2027..ee20886a42247 100644 --- a/pkg/detectors/ipquality/ipquality.go +++ b/pkg/detectors/ipquality/ipquality.go @@ -1,13 +1,14 @@ package ipquality import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ipquality/ipquality_test.go b/pkg/detectors/ipquality/ipquality_test.go index 237e024efd8fb..bb0c50aa14821 100644 --- a/pkg/detectors/ipquality/ipquality_test.go +++ b/pkg/detectors/ipquality/ipquality_test.go @@ -4,12 +4,14 @@ package ipquality import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ipstack/ipstack.go b/pkg/detectors/ipstack/ipstack.go index bfc9a3e5f9a23..90e71c2a78104 100644 --- a/pkg/detectors/ipstack/ipstack.go +++ b/pkg/detectors/ipstack/ipstack.go @@ -1,12 +1,13 @@ package ipstack import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ipstack/ipstack_test.go b/pkg/detectors/ipstack/ipstack_test.go index 6d64f772a9213..1bb0eba3a8d86 100644 --- a/pkg/detectors/ipstack/ipstack_test.go +++ b/pkg/detectors/ipstack/ipstack_test.go @@ -4,12 +4,14 @@ package ipstack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/jdbc/jdbc.go b/pkg/detectors/jdbc/jdbc.go index cc69851d4072d..c6b4947ec5cc5 100644 --- a/pkg/detectors/jdbc/jdbc.go +++ b/pkg/detectors/jdbc/jdbc.go @@ -1,7 +1,6 @@ package jdbc import ( - "context" "database/sql" "errors" "fmt" @@ -9,6 +8,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" ) diff --git a/pkg/detectors/jdbc/jdbc_integration_test.go b/pkg/detectors/jdbc/jdbc_integration_test.go index 9ce26d50d70e4..bec72cfddec35 100644 --- a/pkg/detectors/jdbc/jdbc_integration_test.go +++ b/pkg/detectors/jdbc/jdbc_integration_test.go @@ -4,7 +4,6 @@ package jdbc import ( - "context" "fmt" "os" "os/exec" @@ -12,8 +11,11 @@ import ( "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/stretchr/testify/assert" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" ) diff --git a/pkg/detectors/jdbc/jdbc_test.go b/pkg/detectors/jdbc/jdbc_test.go index 6739e7b25b872..6b7d76cb03a98 100644 --- a/pkg/detectors/jdbc/jdbc_test.go +++ b/pkg/detectors/jdbc/jdbc_test.go @@ -4,12 +4,15 @@ package jdbc import ( - "context" - "github.com/stretchr/testify/assert" "os" "testing" + "github.com/stretchr/testify/assert" + + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" ) diff --git a/pkg/detectors/jdbc/mysql.go b/pkg/detectors/jdbc/mysql.go index f21662ec99d34..91c549460811e 100644 --- a/pkg/detectors/jdbc/mysql.go +++ b/pkg/detectors/jdbc/mysql.go @@ -1,10 +1,12 @@ package jdbc import ( - "context" "errors" - "github.com/go-sql-driver/mysql" "strings" + + "github.com/go-sql-driver/mysql" + + "github.com/trufflesecurity/trufflehog/v3/pkg/context" ) type mysqlJDBC struct { diff --git a/pkg/detectors/jdbc/mysql_integration_test.go b/pkg/detectors/jdbc/mysql_integration_test.go index cbc64284127f3..62d751c783b5f 100644 --- a/pkg/detectors/jdbc/mysql_integration_test.go +++ b/pkg/detectors/jdbc/mysql_integration_test.go @@ -5,12 +5,13 @@ package jdbc import ( "bytes" - "context" "errors" "os/exec" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/stretchr/testify/assert" ) diff --git a/pkg/detectors/jdbc/postgres.go b/pkg/detectors/jdbc/postgres.go index 66e86b60d12b1..33831d4334145 100644 --- a/pkg/detectors/jdbc/postgres.go +++ b/pkg/detectors/jdbc/postgres.go @@ -1,11 +1,12 @@ package jdbc import ( - "context" "errors" "fmt" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/lib/pq" ) diff --git a/pkg/detectors/jdbc/postgres_integration_test.go b/pkg/detectors/jdbc/postgres_integration_test.go index 4c80ff88cdc38..8d804ce5f7be9 100644 --- a/pkg/detectors/jdbc/postgres_integration_test.go +++ b/pkg/detectors/jdbc/postgres_integration_test.go @@ -5,13 +5,14 @@ package jdbc import ( "bytes" - "context" "errors" "fmt" "os/exec" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/stretchr/testify/assert" ) diff --git a/pkg/detectors/jdbc/sqlite.go b/pkg/detectors/jdbc/sqlite.go index 7268888ad96f4..51745c73b37a1 100644 --- a/pkg/detectors/jdbc/sqlite.go +++ b/pkg/detectors/jdbc/sqlite.go @@ -1,10 +1,11 @@ package jdbc import ( - "context" "errors" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + _ "github.com/mattn/go-sqlite3" ) diff --git a/pkg/detectors/jdbc/sqlite_test.go b/pkg/detectors/jdbc/sqlite_test.go index 3778083867226..6bacc7a3d2eab 100644 --- a/pkg/detectors/jdbc/sqlite_test.go +++ b/pkg/detectors/jdbc/sqlite_test.go @@ -4,9 +4,10 @@ package jdbc import ( - "context" "testing" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/stretchr/testify/assert" ) diff --git a/pkg/detectors/jdbc/sqlserver.go b/pkg/detectors/jdbc/sqlserver.go index 3a092e5a13c37..280c4f4da1a9b 100644 --- a/pkg/detectors/jdbc/sqlserver.go +++ b/pkg/detectors/jdbc/sqlserver.go @@ -1,10 +1,12 @@ package jdbc import ( - "context" "errors" - mssql "github.com/denisenkom/go-mssqldb" "strings" + + mssql "github.com/denisenkom/go-mssqldb" + + "github.com/trufflesecurity/trufflehog/v3/pkg/context" ) type sqlServerJDBC struct { diff --git a/pkg/detectors/jdbc/sqlserver_integration_test.go b/pkg/detectors/jdbc/sqlserver_integration_test.go index a43d4df09b712..57f51236707df 100644 --- a/pkg/detectors/jdbc/sqlserver_integration_test.go +++ b/pkg/detectors/jdbc/sqlserver_integration_test.go @@ -5,12 +5,13 @@ package jdbc import ( "bytes" - "context" "errors" "os/exec" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/stretchr/testify/assert" ) diff --git a/pkg/detectors/jiratoken/jiratoken.go b/pkg/detectors/jiratoken/jiratoken.go index ddae96f469df9..d3ae4fe8617c8 100644 --- a/pkg/detectors/jiratoken/jiratoken.go +++ b/pkg/detectors/jiratoken/jiratoken.go @@ -1,13 +1,14 @@ package jiratoken import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/jiratoken/jiratoken_test.go b/pkg/detectors/jiratoken/jiratoken_test.go index b9f6579f4a107..90031ad9d319d 100644 --- a/pkg/detectors/jiratoken/jiratoken_test.go +++ b/pkg/detectors/jiratoken/jiratoken_test.go @@ -4,13 +4,15 @@ package jiratoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/jiratoken_v2/jiratoken_v2.go b/pkg/detectors/jiratoken_v2/jiratoken_v2.go index 5753dc10ae883..065e8345c2fc2 100644 --- a/pkg/detectors/jiratoken_v2/jiratoken_v2.go +++ b/pkg/detectors/jiratoken_v2/jiratoken_v2.go @@ -1,13 +1,14 @@ package jiratoken_v2 import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/jiratoken_v2/jiratoken_v2_test.go b/pkg/detectors/jiratoken_v2/jiratoken_v2_test.go index 3fec014b7c5e9..47864662edf0b 100644 --- a/pkg/detectors/jiratoken_v2/jiratoken_v2_test.go +++ b/pkg/detectors/jiratoken_v2/jiratoken_v2_test.go @@ -4,13 +4,15 @@ package jiratoken_v2 import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/jotform/jotform.go b/pkg/detectors/jotform/jotform.go index 513b4ac09d22e..e69f3dddc5f39 100644 --- a/pkg/detectors/jotform/jotform.go +++ b/pkg/detectors/jotform/jotform.go @@ -1,11 +1,12 @@ package jotform import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/jotform/jotform_test.go b/pkg/detectors/jotform/jotform_test.go index 5f2674932c0d3..6eb41c32f9f4f 100644 --- a/pkg/detectors/jotform/jotform_test.go +++ b/pkg/detectors/jotform/jotform_test.go @@ -4,12 +4,14 @@ package jotform import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/jumpcloud/jumpcloud.go b/pkg/detectors/jumpcloud/jumpcloud.go index 35b9af0d76843..d66146875be10 100644 --- a/pkg/detectors/jumpcloud/jumpcloud.go +++ b/pkg/detectors/jumpcloud/jumpcloud.go @@ -1,11 +1,12 @@ package jumpcloud import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/jumpcloud/jumpcloud_test.go b/pkg/detectors/jumpcloud/jumpcloud_test.go index fe9dfbc0487f9..23c44ddc876cc 100644 --- a/pkg/detectors/jumpcloud/jumpcloud_test.go +++ b/pkg/detectors/jumpcloud/jumpcloud_test.go @@ -4,12 +4,14 @@ package jumpcloud import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/juro/juro.go b/pkg/detectors/juro/juro.go index 09357911ca72c..e10714fca9fae 100644 --- a/pkg/detectors/juro/juro.go +++ b/pkg/detectors/juro/juro.go @@ -1,11 +1,12 @@ package juro import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/juro/juro_test.go b/pkg/detectors/juro/juro_test.go index 682aed80ed00e..1d743c24208f5 100644 --- a/pkg/detectors/juro/juro_test.go +++ b/pkg/detectors/juro/juro_test.go @@ -4,12 +4,14 @@ package juro import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/kanban/kanban.go b/pkg/detectors/kanban/kanban.go index f05a3a8c5aa74..9ad8a570af137 100644 --- a/pkg/detectors/kanban/kanban.go +++ b/pkg/detectors/kanban/kanban.go @@ -1,12 +1,13 @@ package kanban import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/kanban/kanban_test.go b/pkg/detectors/kanban/kanban_test.go index 7f3bc6c107043..677e43f52bec9 100644 --- a/pkg/detectors/kanban/kanban_test.go +++ b/pkg/detectors/kanban/kanban_test.go @@ -4,12 +4,14 @@ package kanban import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/kanbantool/kanbantool.go b/pkg/detectors/kanbantool/kanbantool.go index 36a49c7466eed..bf364657d19ee 100644 --- a/pkg/detectors/kanbantool/kanbantool.go +++ b/pkg/detectors/kanbantool/kanbantool.go @@ -1,12 +1,13 @@ package kanbantool import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/kanbantool/kanbantool_test.go b/pkg/detectors/kanbantool/kanbantool_test.go index 12afd2958f872..105d3664016b8 100644 --- a/pkg/detectors/kanbantool/kanbantool_test.go +++ b/pkg/detectors/kanbantool/kanbantool_test.go @@ -1,11 +1,12 @@ package kanbantool import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/karmacrm/karmacrm.go b/pkg/detectors/karmacrm/karmacrm.go index 5a3e615438789..8ba4e10294879 100644 --- a/pkg/detectors/karmacrm/karmacrm.go +++ b/pkg/detectors/karmacrm/karmacrm.go @@ -1,12 +1,13 @@ package karmacrm import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/karmacrm/karmacrm_test.go b/pkg/detectors/karmacrm/karmacrm_test.go index f072a58c0b378..942b1e301de5f 100644 --- a/pkg/detectors/karmacrm/karmacrm_test.go +++ b/pkg/detectors/karmacrm/karmacrm_test.go @@ -4,12 +4,14 @@ package karmacrm import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/keenio/keenio.go b/pkg/detectors/keenio/keenio.go index 0637cb6925cf6..c867756aeece8 100644 --- a/pkg/detectors/keenio/keenio.go +++ b/pkg/detectors/keenio/keenio.go @@ -1,11 +1,12 @@ package keenio import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/keenio/keenio_test.go b/pkg/detectors/keenio/keenio_test.go index 4275158c0017c..8203eb14f5c04 100644 --- a/pkg/detectors/keenio/keenio_test.go +++ b/pkg/detectors/keenio/keenio_test.go @@ -4,12 +4,14 @@ package keenio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/kickbox/kickbox.go b/pkg/detectors/kickbox/kickbox.go index 4578bad575da9..6ef0044bd89e2 100644 --- a/pkg/detectors/kickbox/kickbox.go +++ b/pkg/detectors/kickbox/kickbox.go @@ -1,11 +1,12 @@ package kickbox import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/kickbox/kickbox_test.go b/pkg/detectors/kickbox/kickbox_test.go index 9827199929f8a..8939ceb1a67dd 100644 --- a/pkg/detectors/kickbox/kickbox_test.go +++ b/pkg/detectors/kickbox/kickbox_test.go @@ -4,12 +4,14 @@ package kickbox import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/klaviyo/klaviyo.go b/pkg/detectors/klaviyo/klaviyo.go index 51f17fc033e31..6cd2ecf689ead 100644 --- a/pkg/detectors/klaviyo/klaviyo.go +++ b/pkg/detectors/klaviyo/klaviyo.go @@ -1,13 +1,14 @@ package klaviyo import ( - "context" "encoding/json" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/klaviyo/klaviyo_test.go b/pkg/detectors/klaviyo/klaviyo_test.go index 1ade9e751f82f..cb92ad8dcffc1 100644 --- a/pkg/detectors/klaviyo/klaviyo_test.go +++ b/pkg/detectors/klaviyo/klaviyo_test.go @@ -4,11 +4,12 @@ package klaviyo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/klipfolio/klipfolio.go b/pkg/detectors/klipfolio/klipfolio.go index 478d1dfa6f2ec..17c468a0985b4 100644 --- a/pkg/detectors/klipfolio/klipfolio.go +++ b/pkg/detectors/klipfolio/klipfolio.go @@ -1,11 +1,12 @@ package klipfolio import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/klipfolio/klipfolio_test.go b/pkg/detectors/klipfolio/klipfolio_test.go index 5cde6d3458f0b..d79681f8edff9 100644 --- a/pkg/detectors/klipfolio/klipfolio_test.go +++ b/pkg/detectors/klipfolio/klipfolio_test.go @@ -4,11 +4,12 @@ package klipfolio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/knapsackpro/knapsackpro.go b/pkg/detectors/knapsackpro/knapsackpro.go index 721d81f9796f2..62a54b7b4bee8 100644 --- a/pkg/detectors/knapsackpro/knapsackpro.go +++ b/pkg/detectors/knapsackpro/knapsackpro.go @@ -1,11 +1,12 @@ package knapsackpro import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/knapsackpro/knapsackpro_test.go b/pkg/detectors/knapsackpro/knapsackpro_test.go index 84f746efe10bd..91d62ad3795da 100644 --- a/pkg/detectors/knapsackpro/knapsackpro_test.go +++ b/pkg/detectors/knapsackpro/knapsackpro_test.go @@ -4,12 +4,14 @@ package knapsackpro import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/kontent/kontent.go b/pkg/detectors/kontent/kontent.go index ec1316ed7783c..22cd58dce0c22 100644 --- a/pkg/detectors/kontent/kontent.go +++ b/pkg/detectors/kontent/kontent.go @@ -1,12 +1,13 @@ package kontent import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/kontent/kontent_test.go b/pkg/detectors/kontent/kontent_test.go index 66f2c20f10eae..fd40b957dc423 100644 --- a/pkg/detectors/kontent/kontent_test.go +++ b/pkg/detectors/kontent/kontent_test.go @@ -4,12 +4,14 @@ package kontent import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/kraken/kraken.go b/pkg/detectors/kraken/kraken.go index 000c9811c0be6..f5555456ca052 100644 --- a/pkg/detectors/kraken/kraken.go +++ b/pkg/detectors/kraken/kraken.go @@ -1,7 +1,6 @@ package kraken import ( - "context" "crypto/hmac" "crypto/sha256" "crypto/sha512" @@ -14,6 +13,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/kraken/kraken_test.go b/pkg/detectors/kraken/kraken_test.go index 2a6de9a01625e..6e453b9adc0f4 100644 --- a/pkg/detectors/kraken/kraken_test.go +++ b/pkg/detectors/kraken/kraken_test.go @@ -4,12 +4,14 @@ package kraken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/kucoin/kucoin.go b/pkg/detectors/kucoin/kucoin.go index a97bc6594dd69..17844f87fdd58 100644 --- a/pkg/detectors/kucoin/kucoin.go +++ b/pkg/detectors/kucoin/kucoin.go @@ -1,7 +1,6 @@ package kucoin import ( - "context" "crypto/hmac" "crypto/sha256" "encoding/base64" @@ -11,6 +10,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/kucoin/kucoin_test.go b/pkg/detectors/kucoin/kucoin_test.go index a6e833b7a74d1..dc715254c424f 100644 --- a/pkg/detectors/kucoin/kucoin_test.go +++ b/pkg/detectors/kucoin/kucoin_test.go @@ -4,11 +4,12 @@ package kucoin import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/kylas/kylas.go b/pkg/detectors/kylas/kylas.go index 3a01c15a9a2d1..f85447d090c34 100644 --- a/pkg/detectors/kylas/kylas.go +++ b/pkg/detectors/kylas/kylas.go @@ -1,11 +1,12 @@ package kylas import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/kylas/kylas_test.go b/pkg/detectors/kylas/kylas_test.go index 613363dcf4c9a..f75fb86a3bb10 100644 --- a/pkg/detectors/kylas/kylas_test.go +++ b/pkg/detectors/kylas/kylas_test.go @@ -4,12 +4,14 @@ package kylas import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/languagelayer/languagelayer.go b/pkg/detectors/languagelayer/languagelayer.go index 7368a28b47bca..5508795d9aab9 100644 --- a/pkg/detectors/languagelayer/languagelayer.go +++ b/pkg/detectors/languagelayer/languagelayer.go @@ -1,13 +1,14 @@ package languagelayer import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/languagelayer/languagelayer_test.go b/pkg/detectors/languagelayer/languagelayer_test.go index 56083fa13d244..19813031558f5 100644 --- a/pkg/detectors/languagelayer/languagelayer_test.go +++ b/pkg/detectors/languagelayer/languagelayer_test.go @@ -4,12 +4,14 @@ package languagelayer import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/lastfm/lastfm.go b/pkg/detectors/lastfm/lastfm.go index 7b71caef5d14e..a7d763f33a720 100644 --- a/pkg/detectors/lastfm/lastfm.go +++ b/pkg/detectors/lastfm/lastfm.go @@ -1,11 +1,12 @@ package lastfm import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/lastfm/lastfm_test.go b/pkg/detectors/lastfm/lastfm_test.go index 458d9671515f6..41c4697017c0f 100644 --- a/pkg/detectors/lastfm/lastfm_test.go +++ b/pkg/detectors/lastfm/lastfm_test.go @@ -4,12 +4,14 @@ package lastfm import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/launchdarkly/launchdarkly.go b/pkg/detectors/launchdarkly/launchdarkly.go index bcb2c95f967f1..5a1c616550788 100644 --- a/pkg/detectors/launchdarkly/launchdarkly.go +++ b/pkg/detectors/launchdarkly/launchdarkly.go @@ -1,7 +1,6 @@ package launchdarkly import ( - "context" "errors" "fmt" "net/http" @@ -9,6 +8,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/launchdarkly/launchdarkly_test.go b/pkg/detectors/launchdarkly/launchdarkly_test.go index 2f269462f5bd9..66e56ecd68711 100644 --- a/pkg/detectors/launchdarkly/launchdarkly_test.go +++ b/pkg/detectors/launchdarkly/launchdarkly_test.go @@ -4,12 +4,14 @@ package launchdarkly import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ldap/ldap.go b/pkg/detectors/ldap/ldap.go index 996ed0532e709..4dd2fd76a8f9c 100644 --- a/pkg/detectors/ldap/ldap.go +++ b/pkg/detectors/ldap/ldap.go @@ -1,7 +1,6 @@ package ldap import ( - "context" "crypto/tls" "fmt" "net" @@ -10,7 +9,10 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/go-ldap/ldap/v3" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" ) diff --git a/pkg/detectors/ldap/ldap_integration_test.go b/pkg/detectors/ldap/ldap_integration_test.go index 0927fcce502c0..bf61f9baffc13 100644 --- a/pkg/detectors/ldap/ldap_integration_test.go +++ b/pkg/detectors/ldap/ldap_integration_test.go @@ -5,7 +5,6 @@ package ldap import ( "bytes" - "context" "errors" "os" "os/exec" @@ -13,6 +12,8 @@ import ( "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/ldap/ldap_test.go b/pkg/detectors/ldap/ldap_test.go index 91ac4ec4088f6..bc1fdfead1b2b 100644 --- a/pkg/detectors/ldap/ldap_test.go +++ b/pkg/detectors/ldap/ldap_test.go @@ -4,10 +4,12 @@ package ldap import ( - "context" "testing" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" diff --git a/pkg/detectors/leadfeeder/leadfeeder.go b/pkg/detectors/leadfeeder/leadfeeder.go index 0b073b34cbe1a..d9ad55cb25632 100644 --- a/pkg/detectors/leadfeeder/leadfeeder.go +++ b/pkg/detectors/leadfeeder/leadfeeder.go @@ -1,12 +1,13 @@ package leadfeeder import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/leadfeeder/leadfeeder_test.go b/pkg/detectors/leadfeeder/leadfeeder_test.go index 7af05a73a15c6..c8c00f0fda318 100644 --- a/pkg/detectors/leadfeeder/leadfeeder_test.go +++ b/pkg/detectors/leadfeeder/leadfeeder_test.go @@ -4,12 +4,14 @@ package leadfeeder import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/lemlist/lemlist.go b/pkg/detectors/lemlist/lemlist.go index 37954f4df6236..a69da29214087 100644 --- a/pkg/detectors/lemlist/lemlist.go +++ b/pkg/detectors/lemlist/lemlist.go @@ -1,13 +1,14 @@ package lemlist import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/lemlist/lemlist_test.go b/pkg/detectors/lemlist/lemlist_test.go index 772dfb0135fdc..27ce532e6f111 100644 --- a/pkg/detectors/lemlist/lemlist_test.go +++ b/pkg/detectors/lemlist/lemlist_test.go @@ -1,12 +1,14 @@ package lemlist import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/lemonsqueezy/lemonsqueezy.go b/pkg/detectors/lemonsqueezy/lemonsqueezy.go index c6914ffa9d1af..38a54f0eb32aa 100644 --- a/pkg/detectors/lemonsqueezy/lemonsqueezy.go +++ b/pkg/detectors/lemonsqueezy/lemonsqueezy.go @@ -1,12 +1,13 @@ package lemonsqueezy import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/lemonsqueezy/lemonsqueezy_test.go b/pkg/detectors/lemonsqueezy/lemonsqueezy_test.go index 4152f7e1f7724..b9a6d10cd24c7 100644 --- a/pkg/detectors/lemonsqueezy/lemonsqueezy_test.go +++ b/pkg/detectors/lemonsqueezy/lemonsqueezy_test.go @@ -4,11 +4,12 @@ package lemonsqueezy import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/lendflow/lendflow.go b/pkg/detectors/lendflow/lendflow.go index 9503f6eb6d44a..35453d8163856 100644 --- a/pkg/detectors/lendflow/lendflow.go +++ b/pkg/detectors/lendflow/lendflow.go @@ -1,13 +1,14 @@ package lendflow import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/lendflow/lendflow_test.go b/pkg/detectors/lendflow/lendflow_test.go index b98272467ef5f..3a503c5cc45ca 100644 --- a/pkg/detectors/lendflow/lendflow_test.go +++ b/pkg/detectors/lendflow/lendflow_test.go @@ -4,11 +4,12 @@ package lendflow import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go b/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go index 06ec4ff2ec58b..608f23df1aa9b 100644 --- a/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go +++ b/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go @@ -1,12 +1,13 @@ package lessannoyingcrm import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/lessannoyingcrm/lessannoyingcrm_test.go b/pkg/detectors/lessannoyingcrm/lessannoyingcrm_test.go index f4e7540caa40f..6bffd18414668 100644 --- a/pkg/detectors/lessannoyingcrm/lessannoyingcrm_test.go +++ b/pkg/detectors/lessannoyingcrm/lessannoyingcrm_test.go @@ -4,8 +4,8 @@ package lessannoyingcrm import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/lexigram/lexigram.go b/pkg/detectors/lexigram/lexigram.go index b807ac8c59b99..767a5193a15c9 100644 --- a/pkg/detectors/lexigram/lexigram.go +++ b/pkg/detectors/lexigram/lexigram.go @@ -1,12 +1,13 @@ package lexigram import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/lexigram/lexigram_test.go b/pkg/detectors/lexigram/lexigram_test.go index 2ce5b9aaa45d5..c50e4fe87c837 100644 --- a/pkg/detectors/lexigram/lexigram_test.go +++ b/pkg/detectors/lexigram/lexigram_test.go @@ -4,12 +4,14 @@ package lexigram import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/linearapi/linearapi.go b/pkg/detectors/linearapi/linearapi.go index c441c9277e912..f16ca07870b14 100644 --- a/pkg/detectors/linearapi/linearapi.go +++ b/pkg/detectors/linearapi/linearapi.go @@ -1,12 +1,13 @@ package linearapi import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/linearapi/linearapi_test.go b/pkg/detectors/linearapi/linearapi_test.go index fee39c012dcc0..86c0ca13f4648 100644 --- a/pkg/detectors/linearapi/linearapi_test.go +++ b/pkg/detectors/linearapi/linearapi_test.go @@ -4,12 +4,14 @@ package linearapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/linemessaging/linemessaging.go b/pkg/detectors/linemessaging/linemessaging.go index 477d2b3203238..130051346dd09 100644 --- a/pkg/detectors/linemessaging/linemessaging.go +++ b/pkg/detectors/linemessaging/linemessaging.go @@ -1,12 +1,13 @@ package linemessaging import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/linemessaging/linemessaging_test.go b/pkg/detectors/linemessaging/linemessaging_test.go index fe92c70a03ff4..2f4e7fd5be9d7 100644 --- a/pkg/detectors/linemessaging/linemessaging_test.go +++ b/pkg/detectors/linemessaging/linemessaging_test.go @@ -4,12 +4,14 @@ package linemessaging import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/linenotify/linenotify.go b/pkg/detectors/linenotify/linenotify.go index 74c42255acdc1..0b1504221b6c7 100644 --- a/pkg/detectors/linenotify/linenotify.go +++ b/pkg/detectors/linenotify/linenotify.go @@ -1,12 +1,13 @@ package linenotify import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/linenotify/linenotify_test.go b/pkg/detectors/linenotify/linenotify_test.go index f9e31453f7486..4729d9b73adf1 100644 --- a/pkg/detectors/linenotify/linenotify_test.go +++ b/pkg/detectors/linenotify/linenotify_test.go @@ -4,12 +4,14 @@ package linenotify import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/linkpreview/linkpreview.go b/pkg/detectors/linkpreview/linkpreview.go index 9e8aeca43c49c..eee3e20f6dd94 100644 --- a/pkg/detectors/linkpreview/linkpreview.go +++ b/pkg/detectors/linkpreview/linkpreview.go @@ -1,12 +1,13 @@ package linkpreview import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/linkpreview/linkpreview_test.go b/pkg/detectors/linkpreview/linkpreview_test.go index a19aafae0fa26..0ad7ccde866a8 100644 --- a/pkg/detectors/linkpreview/linkpreview_test.go +++ b/pkg/detectors/linkpreview/linkpreview_test.go @@ -4,12 +4,14 @@ package linkpreview import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/liveagent/liveagent.go b/pkg/detectors/liveagent/liveagent.go index e12ca56a3edca..b82c235a43b66 100644 --- a/pkg/detectors/liveagent/liveagent.go +++ b/pkg/detectors/liveagent/liveagent.go @@ -1,12 +1,13 @@ package liveagent import ( - "context" "encoding/json" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/liveagent/liveagent_test.go b/pkg/detectors/liveagent/liveagent_test.go index 083387f181009..49acc045527cf 100644 --- a/pkg/detectors/liveagent/liveagent_test.go +++ b/pkg/detectors/liveagent/liveagent_test.go @@ -4,13 +4,15 @@ package liveagent import ( - "context" "fmt" "net/url" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/livestorm/livestorm.go b/pkg/detectors/livestorm/livestorm.go index c00e6023336a6..3f3f9027e7513 100644 --- a/pkg/detectors/livestorm/livestorm.go +++ b/pkg/detectors/livestorm/livestorm.go @@ -1,11 +1,12 @@ package livestorm import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/livestorm/livestorm_test.go b/pkg/detectors/livestorm/livestorm_test.go index a922a225ff3b5..4c1db5eba78cb 100644 --- a/pkg/detectors/livestorm/livestorm_test.go +++ b/pkg/detectors/livestorm/livestorm_test.go @@ -4,11 +4,12 @@ package livestorm import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/loadmill/loadmill.go b/pkg/detectors/loadmill/loadmill.go index 7052e3215b3cb..fc5af50ca005f 100644 --- a/pkg/detectors/loadmill/loadmill.go +++ b/pkg/detectors/loadmill/loadmill.go @@ -1,12 +1,13 @@ package loadmill import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/loadmill/loadmill_test.go b/pkg/detectors/loadmill/loadmill_test.go index a06fa98c739f4..8f41449743d6b 100644 --- a/pkg/detectors/loadmill/loadmill_test.go +++ b/pkg/detectors/loadmill/loadmill_test.go @@ -4,12 +4,14 @@ package loadmill import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/lob/lob.go b/pkg/detectors/lob/lob.go index a482c13ef0768..b79a07b6a9540 100644 --- a/pkg/detectors/lob/lob.go +++ b/pkg/detectors/lob/lob.go @@ -1,11 +1,12 @@ package lob import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/lob/lob_test.go b/pkg/detectors/lob/lob_test.go index d51ab8d496367..d9d60ce84932f 100644 --- a/pkg/detectors/lob/lob_test.go +++ b/pkg/detectors/lob/lob_test.go @@ -4,12 +4,14 @@ package lob import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/locationiq/locationiq.go b/pkg/detectors/locationiq/locationiq.go index 918a1a426453c..009466d0998a5 100644 --- a/pkg/detectors/locationiq/locationiq.go +++ b/pkg/detectors/locationiq/locationiq.go @@ -1,11 +1,12 @@ package locationiq import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/locationiq/locationiq_test.go b/pkg/detectors/locationiq/locationiq_test.go index d3f9e2a4c28b5..be4213b5abc96 100644 --- a/pkg/detectors/locationiq/locationiq_test.go +++ b/pkg/detectors/locationiq/locationiq_test.go @@ -4,12 +4,14 @@ package locationiq import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/loggly/loggly.go b/pkg/detectors/loggly/loggly.go index 3ef5bf01215d0..aa0fa3dcc3300 100644 --- a/pkg/detectors/loggly/loggly.go +++ b/pkg/detectors/loggly/loggly.go @@ -1,12 +1,13 @@ package loggly import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/loggly/loggly_test.go b/pkg/detectors/loggly/loggly_test.go index 7c37d6b2f0967..c3613acc3d576 100644 --- a/pkg/detectors/loggly/loggly_test.go +++ b/pkg/detectors/loggly/loggly_test.go @@ -4,11 +4,12 @@ package loggly import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/loginradius/loginradius.go b/pkg/detectors/loginradius/loginradius.go index e50b3b021445c..394bd582cef08 100644 --- a/pkg/detectors/loginradius/loginradius.go +++ b/pkg/detectors/loginradius/loginradius.go @@ -1,11 +1,12 @@ package loginradius import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/loginradius/loginradius_test.go b/pkg/detectors/loginradius/loginradius_test.go index 4d124751d9e68..e8f5cf4e75008 100644 --- a/pkg/detectors/loginradius/loginradius_test.go +++ b/pkg/detectors/loginradius/loginradius_test.go @@ -4,12 +4,14 @@ package loginradius import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/logzio/logzio.go b/pkg/detectors/logzio/logzio.go index cc77dd4cffec5..5ce95ea092d76 100644 --- a/pkg/detectors/logzio/logzio.go +++ b/pkg/detectors/logzio/logzio.go @@ -1,12 +1,13 @@ package logzio import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/logzio/logzio_test.go b/pkg/detectors/logzio/logzio_test.go index a4f6c53c37092..58bc9d02735c5 100644 --- a/pkg/detectors/logzio/logzio_test.go +++ b/pkg/detectors/logzio/logzio_test.go @@ -4,11 +4,12 @@ package logzio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/lokalisetoken/lokalisetoken.go b/pkg/detectors/lokalisetoken/lokalisetoken.go index 7b9ca3baa7f36..cc414d9e9dd8e 100644 --- a/pkg/detectors/lokalisetoken/lokalisetoken.go +++ b/pkg/detectors/lokalisetoken/lokalisetoken.go @@ -1,11 +1,12 @@ package lokalisetoken import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/lokalisetoken/lokalisetoken_test.go b/pkg/detectors/lokalisetoken/lokalisetoken_test.go index e02d9ccbaeaaa..2a21f5e33967c 100644 --- a/pkg/detectors/lokalisetoken/lokalisetoken_test.go +++ b/pkg/detectors/lokalisetoken/lokalisetoken_test.go @@ -4,12 +4,14 @@ package lokalisetoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/loyverse/loyverse.go b/pkg/detectors/loyverse/loyverse.go index 7654ffebbdde9..016872979afa3 100644 --- a/pkg/detectors/loyverse/loyverse.go +++ b/pkg/detectors/loyverse/loyverse.go @@ -1,12 +1,13 @@ package loyverse import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/loyverse/loyverse_test.go b/pkg/detectors/loyverse/loyverse_test.go index 064b6aa48b4b7..c76412638eab7 100644 --- a/pkg/detectors/loyverse/loyverse_test.go +++ b/pkg/detectors/loyverse/loyverse_test.go @@ -4,12 +4,14 @@ package loyverse import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/lunchmoney/lunchmoney.go b/pkg/detectors/lunchmoney/lunchmoney.go index 778801793dbac..192772a16fb74 100644 --- a/pkg/detectors/lunchmoney/lunchmoney.go +++ b/pkg/detectors/lunchmoney/lunchmoney.go @@ -1,12 +1,13 @@ package lunchmoney import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/lunchmoney/lunchmoney_test.go b/pkg/detectors/lunchmoney/lunchmoney_test.go index 43695e6cc2a48..05ef56eed2a33 100644 --- a/pkg/detectors/lunchmoney/lunchmoney_test.go +++ b/pkg/detectors/lunchmoney/lunchmoney_test.go @@ -4,12 +4,14 @@ package lunchmoney import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/luno/luno.go b/pkg/detectors/luno/luno.go index be80eb81bb9b8..e07382876adde 100644 --- a/pkg/detectors/luno/luno.go +++ b/pkg/detectors/luno/luno.go @@ -1,11 +1,12 @@ package luno import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/luno/luno_test.go b/pkg/detectors/luno/luno_test.go index 7417286672bc3..64371886fe5db 100644 --- a/pkg/detectors/luno/luno_test.go +++ b/pkg/detectors/luno/luno_test.go @@ -4,12 +4,14 @@ package luno import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/m3o/m3o.go b/pkg/detectors/m3o/m3o.go index 5c5c78f019d38..9dd4371ddace7 100644 --- a/pkg/detectors/m3o/m3o.go +++ b/pkg/detectors/m3o/m3o.go @@ -1,12 +1,13 @@ package m3o import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/m3o/m3o_test.go b/pkg/detectors/m3o/m3o_test.go index 14fc9f2871cd9..649c11b6557ca 100644 --- a/pkg/detectors/m3o/m3o_test.go +++ b/pkg/detectors/m3o/m3o_test.go @@ -4,12 +4,14 @@ package m3o import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/macaddress/macaddress.go b/pkg/detectors/macaddress/macaddress.go index 74d26b1dd515f..62323dec92beb 100644 --- a/pkg/detectors/macaddress/macaddress.go +++ b/pkg/detectors/macaddress/macaddress.go @@ -1,12 +1,13 @@ package macaddress import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/macaddress/macaddress_test.go b/pkg/detectors/macaddress/macaddress_test.go index e1ee91a23442b..1b8962c79d4bd 100644 --- a/pkg/detectors/macaddress/macaddress_test.go +++ b/pkg/detectors/macaddress/macaddress_test.go @@ -4,12 +4,14 @@ package macaddress import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/madkudu/madkudu.go b/pkg/detectors/madkudu/madkudu.go index 1256ecd0beae1..4f192ec030732 100644 --- a/pkg/detectors/madkudu/madkudu.go +++ b/pkg/detectors/madkudu/madkudu.go @@ -1,11 +1,12 @@ package madkudu import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/madkudu/madkudu_test.go b/pkg/detectors/madkudu/madkudu_test.go index 4e66763317a41..15c1eb5f7ff34 100644 --- a/pkg/detectors/madkudu/madkudu_test.go +++ b/pkg/detectors/madkudu/madkudu_test.go @@ -4,11 +4,12 @@ package madkudu import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/magicbell/magicbell.go b/pkg/detectors/magicbell/magicbell.go index 84d2666dc7024..075a5e1b0a1ab 100644 --- a/pkg/detectors/magicbell/magicbell.go +++ b/pkg/detectors/magicbell/magicbell.go @@ -1,11 +1,12 @@ package magicbell import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/magicbell/magicbell_test.go b/pkg/detectors/magicbell/magicbell_test.go index ad8b34a18a6bd..783f99fa228bd 100644 --- a/pkg/detectors/magicbell/magicbell_test.go +++ b/pkg/detectors/magicbell/magicbell_test.go @@ -4,12 +4,14 @@ package magicbell import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/magnetic/magnetic.go b/pkg/detectors/magnetic/magnetic.go index 40b7f21a51215..26584c3185d11 100644 --- a/pkg/detectors/magnetic/magnetic.go +++ b/pkg/detectors/magnetic/magnetic.go @@ -1,11 +1,12 @@ package magnetic import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/magnetic/magnetic_test.go b/pkg/detectors/magnetic/magnetic_test.go index 86386b8179f64..9a0275ff8d957 100644 --- a/pkg/detectors/magnetic/magnetic_test.go +++ b/pkg/detectors/magnetic/magnetic_test.go @@ -4,11 +4,12 @@ package magnetic import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mailboxlayer/mailboxlayer.go b/pkg/detectors/mailboxlayer/mailboxlayer.go index c882dbaa8b5e8..ca8c00d041432 100644 --- a/pkg/detectors/mailboxlayer/mailboxlayer.go +++ b/pkg/detectors/mailboxlayer/mailboxlayer.go @@ -1,12 +1,13 @@ package mailboxlayer import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mailboxlayer/mailboxlayer_test.go b/pkg/detectors/mailboxlayer/mailboxlayer_test.go index e6cbc1ba42b1f..f9344ac494eff 100644 --- a/pkg/detectors/mailboxlayer/mailboxlayer_test.go +++ b/pkg/detectors/mailboxlayer/mailboxlayer_test.go @@ -4,12 +4,14 @@ package mailboxlayer import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mailchimp/mailchimp.go b/pkg/detectors/mailchimp/mailchimp.go index a206b070ae0db..aead50a5d14ab 100644 --- a/pkg/detectors/mailchimp/mailchimp.go +++ b/pkg/detectors/mailchimp/mailchimp.go @@ -1,12 +1,13 @@ package mailchimp import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" diff --git a/pkg/detectors/mailchimp/mailchimp_test.go b/pkg/detectors/mailchimp/mailchimp_test.go index dae93805c52f4..dfbb40f30da55 100644 --- a/pkg/detectors/mailchimp/mailchimp_test.go +++ b/pkg/detectors/mailchimp/mailchimp_test.go @@ -4,12 +4,14 @@ package mailchimp import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/mailerlite/mailerlite.go b/pkg/detectors/mailerlite/mailerlite.go index 1e33df8e24ffe..01eb06903b0c6 100644 --- a/pkg/detectors/mailerlite/mailerlite.go +++ b/pkg/detectors/mailerlite/mailerlite.go @@ -1,11 +1,12 @@ package mailerlite import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mailerlite/mailerlite_test.go b/pkg/detectors/mailerlite/mailerlite_test.go index 21a04bfc065a1..4c0a112185941 100644 --- a/pkg/detectors/mailerlite/mailerlite_test.go +++ b/pkg/detectors/mailerlite/mailerlite_test.go @@ -4,12 +4,14 @@ package mailerlite import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mailgun/mailgun.go b/pkg/detectors/mailgun/mailgun.go index dd9556617d30a..f3f23217da691 100644 --- a/pkg/detectors/mailgun/mailgun.go +++ b/pkg/detectors/mailgun/mailgun.go @@ -1,12 +1,13 @@ package mailgun import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" @@ -55,7 +56,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result if err != nil { continue } - + // If resMatch has "key" prefix, use it as the username for basic auth. if strings.HasPrefix(resMatch, "key-") { req.SetBasicAuth("api", resMatch) diff --git a/pkg/detectors/mailgun/mailgun_test.go b/pkg/detectors/mailgun/mailgun_test.go index aaa3d0b05bf16..8c69487ced6aa 100644 --- a/pkg/detectors/mailgun/mailgun_test.go +++ b/pkg/detectors/mailgun/mailgun_test.go @@ -4,12 +4,14 @@ package mailgun import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go b/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go index 0030e5e63857a..1833bef654895 100644 --- a/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go +++ b/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go @@ -1,8 +1,8 @@ package mailjetbasicauth import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "net/http" "regexp" "strings" diff --git a/pkg/detectors/mailjetbasicauth/mailjetbasicauth_test.go b/pkg/detectors/mailjetbasicauth/mailjetbasicauth_test.go index 9df8b97abdcbb..a80b70b81c0c9 100644 --- a/pkg/detectors/mailjetbasicauth/mailjetbasicauth_test.go +++ b/pkg/detectors/mailjetbasicauth/mailjetbasicauth_test.go @@ -4,8 +4,8 @@ package mailjetbasicauth import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/mailjetsms/mailjetsms.go b/pkg/detectors/mailjetsms/mailjetsms.go index 43388ef9fceb5..910574c1b02a1 100644 --- a/pkg/detectors/mailjetsms/mailjetsms.go +++ b/pkg/detectors/mailjetsms/mailjetsms.go @@ -1,12 +1,13 @@ package mailjetsms import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mailjetsms/mailjetsms_test.go b/pkg/detectors/mailjetsms/mailjetsms_test.go index 01c184013b182..fc0ffc59ce342 100644 --- a/pkg/detectors/mailjetsms/mailjetsms_test.go +++ b/pkg/detectors/mailjetsms/mailjetsms_test.go @@ -4,12 +4,14 @@ package mailjetsms import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mailmodo/mailmodo.go b/pkg/detectors/mailmodo/mailmodo.go index 2c3b093cbfb79..e2aa03cb150db 100644 --- a/pkg/detectors/mailmodo/mailmodo.go +++ b/pkg/detectors/mailmodo/mailmodo.go @@ -1,11 +1,12 @@ package mailmodo import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mailmodo/mailmodo_test.go b/pkg/detectors/mailmodo/mailmodo_test.go index 8c1093a63d99d..ef33da27f3c08 100644 --- a/pkg/detectors/mailmodo/mailmodo_test.go +++ b/pkg/detectors/mailmodo/mailmodo_test.go @@ -4,12 +4,14 @@ package mailmodo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mailsac/mailsac.go b/pkg/detectors/mailsac/mailsac.go index 5504ba8db457e..1598b381c5ecc 100644 --- a/pkg/detectors/mailsac/mailsac.go +++ b/pkg/detectors/mailsac/mailsac.go @@ -1,11 +1,12 @@ package mailsac import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mailsac/mailsac_test.go b/pkg/detectors/mailsac/mailsac_test.go index 0eb882535522a..98971068a100b 100644 --- a/pkg/detectors/mailsac/mailsac_test.go +++ b/pkg/detectors/mailsac/mailsac_test.go @@ -4,12 +4,14 @@ package mailsac import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mandrill/mandrill.go b/pkg/detectors/mandrill/mandrill.go index c1d928d8b1b77..3d6f32d69b60a 100644 --- a/pkg/detectors/mandrill/mandrill.go +++ b/pkg/detectors/mandrill/mandrill.go @@ -1,12 +1,13 @@ package mandrill import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mandrill/mandrill_test.go b/pkg/detectors/mandrill/mandrill_test.go index dd04d93fc6f5e..a4d673fd00e3a 100644 --- a/pkg/detectors/mandrill/mandrill_test.go +++ b/pkg/detectors/mandrill/mandrill_test.go @@ -4,12 +4,14 @@ package mandrill import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/manifest/manifest.go b/pkg/detectors/manifest/manifest.go index 9521dddb6c199..f65571fc0bcb7 100644 --- a/pkg/detectors/manifest/manifest.go +++ b/pkg/detectors/manifest/manifest.go @@ -1,11 +1,12 @@ package manifest import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/manifest/manifest_test.go b/pkg/detectors/manifest/manifest_test.go index 33d3cbc1892fe..dd5295ae73560 100644 --- a/pkg/detectors/manifest/manifest_test.go +++ b/pkg/detectors/manifest/manifest_test.go @@ -4,12 +4,14 @@ package manifest import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mapbox/mapbox.go b/pkg/detectors/mapbox/mapbox.go index 951de013ece8a..7c7464df49bab 100644 --- a/pkg/detectors/mapbox/mapbox.go +++ b/pkg/detectors/mapbox/mapbox.go @@ -1,7 +1,7 @@ package mapbox import ( - "context" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" // "log" "net/http" "regexp" diff --git a/pkg/detectors/mapbox/mapbox_test.go b/pkg/detectors/mapbox/mapbox_test.go index 93860db8e4e7a..120ba455ca0e5 100644 --- a/pkg/detectors/mapbox/mapbox_test.go +++ b/pkg/detectors/mapbox/mapbox_test.go @@ -4,12 +4,14 @@ package mapbox import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mapquest/mapquest.go b/pkg/detectors/mapquest/mapquest.go index 31f52b086d858..695d561578336 100644 --- a/pkg/detectors/mapquest/mapquest.go +++ b/pkg/detectors/mapquest/mapquest.go @@ -1,11 +1,12 @@ package mapquest import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mapquest/mapquest_test.go b/pkg/detectors/mapquest/mapquest_test.go index 81abcc727c301..81c12b331c535 100644 --- a/pkg/detectors/mapquest/mapquest_test.go +++ b/pkg/detectors/mapquest/mapquest_test.go @@ -4,12 +4,14 @@ package mapquest import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/marketstack/marketstack.go b/pkg/detectors/marketstack/marketstack.go index 531d7594a864c..61565dad7cf4b 100644 --- a/pkg/detectors/marketstack/marketstack.go +++ b/pkg/detectors/marketstack/marketstack.go @@ -1,12 +1,13 @@ package marketstack import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/marketstack/marketstack_test.go b/pkg/detectors/marketstack/marketstack_test.go index fb5ceaa8b1b6c..257d725f4c660 100644 --- a/pkg/detectors/marketstack/marketstack_test.go +++ b/pkg/detectors/marketstack/marketstack_test.go @@ -4,12 +4,14 @@ package marketstack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go b/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go index cc64e07fe8978..147d5a0b97afc 100644 --- a/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go +++ b/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go @@ -1,12 +1,13 @@ package mattermostpersonaltoken import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mattermostpersonaltoken/mattermostpersonaltoken_test.go b/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken_test.go index b1db37b782a17..e77d628f6fa90 100644 --- a/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken_test.go +++ b/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken_test.go @@ -4,8 +4,8 @@ package mattermostpersonaltoken import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/mavenlink/mavenlink.go b/pkg/detectors/mavenlink/mavenlink.go index 953b6041d2d0b..bd61081a7df40 100644 --- a/pkg/detectors/mavenlink/mavenlink.go +++ b/pkg/detectors/mavenlink/mavenlink.go @@ -1,12 +1,13 @@ package mavenlink import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mavenlink/mavenlink_test.go b/pkg/detectors/mavenlink/mavenlink_test.go index 56ed7c646b033..b9e260b6cd974 100644 --- a/pkg/detectors/mavenlink/mavenlink_test.go +++ b/pkg/detectors/mavenlink/mavenlink_test.go @@ -4,11 +4,12 @@ package mavenlink import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/maxmindlicense/maxmindlicense.go b/pkg/detectors/maxmindlicense/maxmindlicense.go index 1e694e4238a53..570880805baf5 100644 --- a/pkg/detectors/maxmindlicense/maxmindlicense.go +++ b/pkg/detectors/maxmindlicense/maxmindlicense.go @@ -1,11 +1,12 @@ package maxmindlicense import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/maxmindlicense_test.go b/pkg/detectors/maxmindlicense/maxmindlicense_test.go index 42ff4ca1bbaef..7b0eb821847c0 100644 --- a/pkg/detectors/maxmindlicense/maxmindlicense_test.go +++ b/pkg/detectors/maxmindlicense/maxmindlicense_test.go @@ -4,12 +4,14 @@ package maxmindlicense import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/meaningcloud/meaningcloud.go b/pkg/detectors/meaningcloud/meaningcloud.go index a9eb84e4adb06..084528ad10113 100644 --- a/pkg/detectors/meaningcloud/meaningcloud.go +++ b/pkg/detectors/meaningcloud/meaningcloud.go @@ -2,7 +2,6 @@ package meaningcloud import ( "bytes" - "context" "encoding/json" "io" "mime/multipart" @@ -10,6 +9,8 @@ import ( "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/meaningcloud/meaningcloud_test.go b/pkg/detectors/meaningcloud/meaningcloud_test.go index b446614e52b1e..314255c06bd99 100644 --- a/pkg/detectors/meaningcloud/meaningcloud_test.go +++ b/pkg/detectors/meaningcloud/meaningcloud_test.go @@ -4,12 +4,14 @@ package meaningcloud import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mediastack/mediastack.go b/pkg/detectors/mediastack/mediastack.go index ab61cbc6403b8..4d1b9e1d56ccf 100644 --- a/pkg/detectors/mediastack/mediastack.go +++ b/pkg/detectors/mediastack/mediastack.go @@ -1,13 +1,14 @@ package mediastack import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mediastack/mediastack_test.go b/pkg/detectors/mediastack/mediastack_test.go index 88c2ee2ac5865..159e09bcb1fbf 100644 --- a/pkg/detectors/mediastack/mediastack_test.go +++ b/pkg/detectors/mediastack/mediastack_test.go @@ -4,12 +4,14 @@ package mediastack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/meistertask/meistertask.go b/pkg/detectors/meistertask/meistertask.go index 2a1b2b8d3b1bd..22f58cdfe1d52 100644 --- a/pkg/detectors/meistertask/meistertask.go +++ b/pkg/detectors/meistertask/meistertask.go @@ -1,12 +1,13 @@ package meistertask import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/meistertask/meistertask_test.go b/pkg/detectors/meistertask/meistertask_test.go index c12b9885eeb41..9df5eec6cfb56 100644 --- a/pkg/detectors/meistertask/meistertask_test.go +++ b/pkg/detectors/meistertask/meistertask_test.go @@ -4,12 +4,14 @@ package meistertask import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mesibo/mesibo.go b/pkg/detectors/mesibo/mesibo.go index 1edb719ae6f12..786f2a170a8c8 100644 --- a/pkg/detectors/mesibo/mesibo.go +++ b/pkg/detectors/mesibo/mesibo.go @@ -1,18 +1,20 @@ package mesibo import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" ) type Scanner struct{} + // Ensure the Scanner satisfies the interface at compile time. var _ detectors.Detector = (*Scanner)(nil) diff --git a/pkg/detectors/mesibo/mesibo_test.go b/pkg/detectors/mesibo/mesibo_test.go index 7f73d769de88e..a6cdcc1d05fec 100644 --- a/pkg/detectors/mesibo/mesibo_test.go +++ b/pkg/detectors/mesibo/mesibo_test.go @@ -4,12 +4,14 @@ package mesibo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/messagebird/messagebird.go b/pkg/detectors/messagebird/messagebird.go index 73caffba8d281..1bb40d8c87829 100644 --- a/pkg/detectors/messagebird/messagebird.go +++ b/pkg/detectors/messagebird/messagebird.go @@ -1,12 +1,13 @@ package messagebird import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/messagebird/messagebird_test.go b/pkg/detectors/messagebird/messagebird_test.go index e07856312fde0..df9b6eaa74b13 100644 --- a/pkg/detectors/messagebird/messagebird_test.go +++ b/pkg/detectors/messagebird/messagebird_test.go @@ -4,12 +4,14 @@ package messagebird import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/metaapi/metaapi.go b/pkg/detectors/metaapi/metaapi.go index a59e331068a5e..73a5c34b52b3e 100644 --- a/pkg/detectors/metaapi/metaapi.go +++ b/pkg/detectors/metaapi/metaapi.go @@ -1,13 +1,14 @@ package metaapi import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/metaapi/metaapi_test.go b/pkg/detectors/metaapi/metaapi_test.go index c9fd6eed934d8..b36a5fa3b41a0 100644 --- a/pkg/detectors/metaapi/metaapi_test.go +++ b/pkg/detectors/metaapi/metaapi_test.go @@ -4,11 +4,12 @@ package metaapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/metabase/metabase.go b/pkg/detectors/metabase/metabase.go index 804ec978b8708..4c5f48ee28542 100644 --- a/pkg/detectors/metabase/metabase.go +++ b/pkg/detectors/metabase/metabase.go @@ -1,13 +1,14 @@ package metabase import ( - "context" "encoding/json" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/metabase/metabase_test.go b/pkg/detectors/metabase/metabase_test.go index 76a07cf302b51..18b1e99fbd3ff 100644 --- a/pkg/detectors/metabase/metabase_test.go +++ b/pkg/detectors/metabase/metabase_test.go @@ -4,11 +4,12 @@ package metabase import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/metrilo/metrilo.go b/pkg/detectors/metrilo/metrilo.go index f3dfac5379b63..3dd7e175bf047 100644 --- a/pkg/detectors/metrilo/metrilo.go +++ b/pkg/detectors/metrilo/metrilo.go @@ -1,11 +1,12 @@ package metrilo import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/metrilo/metrilo_test.go b/pkg/detectors/metrilo/metrilo_test.go index be56d5d02f7bd..dd3f3e12d3980 100644 --- a/pkg/detectors/metrilo/metrilo_test.go +++ b/pkg/detectors/metrilo/metrilo_test.go @@ -4,12 +4,14 @@ package metrilo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go b/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go index f5b9a0ecefd55..3e478f045bc1d 100644 --- a/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go +++ b/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go @@ -1,7 +1,6 @@ package microsoftteamswebhook import ( - "context" "fmt" "io" "net/http" @@ -9,6 +8,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/microsoftteamswebhook/microsoftteamswebhook_test.go b/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook_test.go index 6aaa243f36235..b6af714c0be2b 100644 --- a/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook_test.go +++ b/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook_test.go @@ -4,13 +4,15 @@ package microsoftteamswebhook import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mindmeister/mindmeister.go b/pkg/detectors/mindmeister/mindmeister.go index 3440b873cca47..9c202101af60b 100644 --- a/pkg/detectors/mindmeister/mindmeister.go +++ b/pkg/detectors/mindmeister/mindmeister.go @@ -1,13 +1,14 @@ package mindmeister import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mindmeister/mindmeister_test.go b/pkg/detectors/mindmeister/mindmeister_test.go index ff737f463e7d7..1501ba3421c9f 100644 --- a/pkg/detectors/mindmeister/mindmeister_test.go +++ b/pkg/detectors/mindmeister/mindmeister_test.go @@ -4,12 +4,14 @@ package mindmeister import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/miro/miro.go b/pkg/detectors/miro/miro.go index 451e9b84b85c3..c60843f49fd0e 100644 --- a/pkg/detectors/miro/miro.go +++ b/pkg/detectors/miro/miro.go @@ -1,12 +1,13 @@ package miro import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/miro/miro_test.go b/pkg/detectors/miro/miro_test.go index 1fa7093a28bbe..39773da5845a1 100644 --- a/pkg/detectors/miro/miro_test.go +++ b/pkg/detectors/miro/miro_test.go @@ -4,12 +4,14 @@ package miro import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mite/mite.go b/pkg/detectors/mite/mite.go index 5fe3bf7b00437..3152d93845c42 100644 --- a/pkg/detectors/mite/mite.go +++ b/pkg/detectors/mite/mite.go @@ -1,12 +1,13 @@ package mite import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mite/mite_test.go b/pkg/detectors/mite/mite_test.go index 6d456d15176c0..8b51cdbbe2c46 100644 --- a/pkg/detectors/mite/mite_test.go +++ b/pkg/detectors/mite/mite_test.go @@ -4,12 +4,14 @@ package mite import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mixmax/mixmax.go b/pkg/detectors/mixmax/mixmax.go index 9bebb2a67fdd9..22911c8a9c558 100644 --- a/pkg/detectors/mixmax/mixmax.go +++ b/pkg/detectors/mixmax/mixmax.go @@ -1,11 +1,12 @@ package mixmax import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mixmax/mixmax_test.go b/pkg/detectors/mixmax/mixmax_test.go index c4f70cddcc77b..72e34525d5da6 100644 --- a/pkg/detectors/mixmax/mixmax_test.go +++ b/pkg/detectors/mixmax/mixmax_test.go @@ -4,12 +4,14 @@ package mixmax import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mixpanel/mixpanel.go b/pkg/detectors/mixpanel/mixpanel.go index 028ed97ce8200..d70b9022f6cf4 100644 --- a/pkg/detectors/mixpanel/mixpanel.go +++ b/pkg/detectors/mixpanel/mixpanel.go @@ -1,11 +1,12 @@ package mixpanel import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mixpanel/mixpanel_test.go b/pkg/detectors/mixpanel/mixpanel_test.go index eecccd0fd0224..73c89b9dfcf1f 100644 --- a/pkg/detectors/mixpanel/mixpanel_test.go +++ b/pkg/detectors/mixpanel/mixpanel_test.go @@ -4,12 +4,14 @@ package mixpanel import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mockaroo/mockaroo.go b/pkg/detectors/mockaroo/mockaroo.go index 0a51274157afc..1d2f7d0103d05 100644 --- a/pkg/detectors/mockaroo/mockaroo.go +++ b/pkg/detectors/mockaroo/mockaroo.go @@ -1,13 +1,14 @@ package mockaroo import ( - "context" "encoding/json" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mockaroo/mockaroo_test.go b/pkg/detectors/mockaroo/mockaroo_test.go index e3121d181eb68..bbe676fb62fc1 100644 --- a/pkg/detectors/mockaroo/mockaroo_test.go +++ b/pkg/detectors/mockaroo/mockaroo_test.go @@ -4,12 +4,14 @@ package mockaroo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/moderation/moderation.go b/pkg/detectors/moderation/moderation.go index 288bd36886c04..18ec56a7541ea 100644 --- a/pkg/detectors/moderation/moderation.go +++ b/pkg/detectors/moderation/moderation.go @@ -1,13 +1,14 @@ package moderation import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/moderation/moderation_test.go b/pkg/detectors/moderation/moderation_test.go index 2d822752720dd..5ea5ab130201b 100644 --- a/pkg/detectors/moderation/moderation_test.go +++ b/pkg/detectors/moderation/moderation_test.go @@ -4,11 +4,12 @@ package moderation import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/monday/monday.go b/pkg/detectors/monday/monday.go index 9848e2bae51e6..66f987cd1cfe8 100644 --- a/pkg/detectors/monday/monday.go +++ b/pkg/detectors/monday/monday.go @@ -1,11 +1,12 @@ package monday import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/monday/monday_test.go b/pkg/detectors/monday/monday_test.go index 659c980d5dca0..9211d06096636 100644 --- a/pkg/detectors/monday/monday_test.go +++ b/pkg/detectors/monday/monday_test.go @@ -4,11 +4,12 @@ package monday import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mongodb/mongodb.go b/pkg/detectors/mongodb/mongodb.go index 346db19982e8d..3f00cf3454114 100644 --- a/pkg/detectors/mongodb/mongodb.go +++ b/pkg/detectors/mongodb/mongodb.go @@ -1,11 +1,12 @@ package mongodb import ( - "context" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo/options" "go.mongodb.org/mongo-driver/mongo/readpref" diff --git a/pkg/detectors/mongodb/mongodb_test.go b/pkg/detectors/mongodb/mongodb_test.go index 530558f9bf9d9..6313528ec2a13 100644 --- a/pkg/detectors/mongodb/mongodb_test.go +++ b/pkg/detectors/mongodb/mongodb_test.go @@ -4,12 +4,13 @@ package mongodb import ( - "context" "fmt" "strings" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/monkeylearn/monkeylearn.go b/pkg/detectors/monkeylearn/monkeylearn.go index 3c54537fb43ca..b96e5a3e6ec6a 100644 --- a/pkg/detectors/monkeylearn/monkeylearn.go +++ b/pkg/detectors/monkeylearn/monkeylearn.go @@ -1,12 +1,13 @@ package monkeylearn import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/monkeylearn/monkeylearn_test.go b/pkg/detectors/monkeylearn/monkeylearn_test.go index d846f58625943..fa9aeaf2c23ba 100644 --- a/pkg/detectors/monkeylearn/monkeylearn_test.go +++ b/pkg/detectors/monkeylearn/monkeylearn_test.go @@ -1,12 +1,14 @@ package monkeylearn import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/moonclerk/moonclerk.go b/pkg/detectors/moonclerk/moonclerk.go index ff721cbe1ad04..a1dfc795aeedc 100644 --- a/pkg/detectors/moonclerk/moonclerk.go +++ b/pkg/detectors/moonclerk/moonclerk.go @@ -1,11 +1,12 @@ package moonclerk import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/moonclerk/moonclerk_test.go b/pkg/detectors/moonclerk/moonclerk_test.go index f02c55707eacd..36dfa4fea5204 100644 --- a/pkg/detectors/moonclerk/moonclerk_test.go +++ b/pkg/detectors/moonclerk/moonclerk_test.go @@ -4,11 +4,12 @@ package moonclerk import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/moosend/moosend.go b/pkg/detectors/moosend/moosend.go index 4cdf7ce1a3eb6..075a243f4c166 100644 --- a/pkg/detectors/moosend/moosend.go +++ b/pkg/detectors/moosend/moosend.go @@ -1,12 +1,13 @@ package moosend import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/moosend/moosend_test.go b/pkg/detectors/moosend/moosend_test.go index e8844d7d06b31..8edbd14486e7e 100644 --- a/pkg/detectors/moosend/moosend_test.go +++ b/pkg/detectors/moosend/moosend_test.go @@ -4,12 +4,14 @@ package moosend import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/moralis/moralis.go b/pkg/detectors/moralis/moralis.go index cf70f73aec31d..af8f531334428 100644 --- a/pkg/detectors/moralis/moralis.go +++ b/pkg/detectors/moralis/moralis.go @@ -1,11 +1,12 @@ package moralis import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/moralis/moralis_test.go b/pkg/detectors/moralis/moralis_test.go index b1c7bf355afb2..48d1e61816dd7 100644 --- a/pkg/detectors/moralis/moralis_test.go +++ b/pkg/detectors/moralis/moralis_test.go @@ -4,12 +4,14 @@ package moralis import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mrticktock/mrticktock.go b/pkg/detectors/mrticktock/mrticktock.go index 5b226b04f013e..9d20991731853 100644 --- a/pkg/detectors/mrticktock/mrticktock.go +++ b/pkg/detectors/mrticktock/mrticktock.go @@ -1,13 +1,14 @@ package mrticktock import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mrticktock/mrticktock_test.go b/pkg/detectors/mrticktock/mrticktock_test.go index 0a9e09075f909..a0dfe60a1fd8e 100644 --- a/pkg/detectors/mrticktock/mrticktock_test.go +++ b/pkg/detectors/mrticktock/mrticktock_test.go @@ -4,12 +4,14 @@ package mrticktock import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mux/mux.go b/pkg/detectors/mux/mux.go index 7fcb6a4db217b..704e24dd1cd30 100644 --- a/pkg/detectors/mux/mux.go +++ b/pkg/detectors/mux/mux.go @@ -1,11 +1,12 @@ package mux import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/mux/mux_test.go b/pkg/detectors/mux/mux_test.go index 871b44a7a35da..29a1113f380e2 100644 --- a/pkg/detectors/mux/mux_test.go +++ b/pkg/detectors/mux/mux_test.go @@ -4,12 +4,14 @@ package mux import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/myfreshworks/myfreshworks.go b/pkg/detectors/myfreshworks/myfreshworks.go index 2673dfcb4494a..da298cf42654b 100644 --- a/pkg/detectors/myfreshworks/myfreshworks.go +++ b/pkg/detectors/myfreshworks/myfreshworks.go @@ -1,12 +1,13 @@ package myfreshworks import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/myfreshworks/myfreshworks_test.go b/pkg/detectors/myfreshworks/myfreshworks_test.go index f3e2528e0b1d2..1b9de5e04b4b9 100644 --- a/pkg/detectors/myfreshworks/myfreshworks_test.go +++ b/pkg/detectors/myfreshworks/myfreshworks_test.go @@ -4,13 +4,15 @@ package myfreshworks import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" + "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/myintervals/myintervals.go b/pkg/detectors/myintervals/myintervals.go index 9486811d34252..4773917a81e56 100644 --- a/pkg/detectors/myintervals/myintervals.go +++ b/pkg/detectors/myintervals/myintervals.go @@ -1,13 +1,14 @@ package myintervals import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/myintervals/myintervals_test.go b/pkg/detectors/myintervals/myintervals_test.go index 18af6689df39c..7c274f64167ca 100644 --- a/pkg/detectors/myintervals/myintervals_test.go +++ b/pkg/detectors/myintervals/myintervals_test.go @@ -4,12 +4,14 @@ package myintervals import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go b/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go index 18a29d13fd59d..18e0ef0eb55c2 100644 --- a/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go +++ b/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go @@ -1,13 +1,14 @@ package nasdaqdatalink import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/nasdaqdatalink/nasdaqdatalink_test.go b/pkg/detectors/nasdaqdatalink/nasdaqdatalink_test.go index 831a5a5231513..8bf7d49d3e1e5 100644 --- a/pkg/detectors/nasdaqdatalink/nasdaqdatalink_test.go +++ b/pkg/detectors/nasdaqdatalink/nasdaqdatalink_test.go @@ -4,12 +4,14 @@ package nasdaqdatalink import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nethunt/nethunt.go b/pkg/detectors/nethunt/nethunt.go index a91abb4e796c1..1c6577930e458 100644 --- a/pkg/detectors/nethunt/nethunt.go +++ b/pkg/detectors/nethunt/nethunt.go @@ -1,11 +1,12 @@ package nethunt import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/nethunt/nethunt_test.go b/pkg/detectors/nethunt/nethunt_test.go index 89d5ff7499cb3..97717c6db1c7e 100644 --- a/pkg/detectors/nethunt/nethunt_test.go +++ b/pkg/detectors/nethunt/nethunt_test.go @@ -4,12 +4,14 @@ package nethunt import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/netlify/netlify.go b/pkg/detectors/netlify/netlify.go index a0c75a46559c2..69e7430faf962 100644 --- a/pkg/detectors/netlify/netlify.go +++ b/pkg/detectors/netlify/netlify.go @@ -1,12 +1,13 @@ package netlify import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/netlify/netlify_test.go b/pkg/detectors/netlify/netlify_test.go index 2d8060deaf78b..820394e267349 100644 --- a/pkg/detectors/netlify/netlify_test.go +++ b/pkg/detectors/netlify/netlify_test.go @@ -4,12 +4,14 @@ package netlify import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/neutrinoapi/neutrinoapi.go b/pkg/detectors/neutrinoapi/neutrinoapi.go index c4bbf5eeedc87..a9ab9f2a6de8f 100644 --- a/pkg/detectors/neutrinoapi/neutrinoapi.go +++ b/pkg/detectors/neutrinoapi/neutrinoapi.go @@ -2,7 +2,6 @@ package neutrinoapi import ( "bytes" - "context" "fmt" "io" "mime/multipart" @@ -10,6 +9,8 @@ import ( "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/neutrinoapi/neutrinoapi_test.go b/pkg/detectors/neutrinoapi/neutrinoapi_test.go index 599e8e543a930..c0b94b0a48907 100644 --- a/pkg/detectors/neutrinoapi/neutrinoapi_test.go +++ b/pkg/detectors/neutrinoapi/neutrinoapi_test.go @@ -4,12 +4,14 @@ package neutrinoapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go b/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go index 2f954faa621ca..103f98043f3f7 100644 --- a/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go +++ b/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go @@ -1,11 +1,12 @@ package newrelicpersonalapikey import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" @@ -54,7 +55,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result } req.Header.Add("X-Api-Key", resMatch) reqEU.Header.Add("X-Api-Key", resMatch) - + res, err := client.Do(req) resEU, errEU := client.Do(reqEU) diff --git a/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey_test.go b/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey_test.go index fbed22239ef5a..e1e571a1f2c04 100644 --- a/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey_test.go +++ b/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey_test.go @@ -4,12 +4,14 @@ package newrelicpersonalapikey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/newsapi/newsapi.go b/pkg/detectors/newsapi/newsapi.go index 99fada386e711..38624ba3fe7ed 100644 --- a/pkg/detectors/newsapi/newsapi.go +++ b/pkg/detectors/newsapi/newsapi.go @@ -1,11 +1,12 @@ package newsapi import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/newsapi/newsapi_test.go b/pkg/detectors/newsapi/newsapi_test.go index 179b6cd9ec44b..d8107ec282d86 100644 --- a/pkg/detectors/newsapi/newsapi_test.go +++ b/pkg/detectors/newsapi/newsapi_test.go @@ -4,12 +4,14 @@ package newsapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/newscatcher/newscatcher.go b/pkg/detectors/newscatcher/newscatcher.go index bfd1bca4fe83f..f98fbf51a9b66 100644 --- a/pkg/detectors/newscatcher/newscatcher.go +++ b/pkg/detectors/newscatcher/newscatcher.go @@ -1,11 +1,12 @@ package newscatcher import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/newscatcher/newscatcher_test.go b/pkg/detectors/newscatcher/newscatcher_test.go index 67799c9d2e6a1..87f2a4f4c9593 100644 --- a/pkg/detectors/newscatcher/newscatcher_test.go +++ b/pkg/detectors/newscatcher/newscatcher_test.go @@ -4,12 +4,14 @@ package newscatcher import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nexmoapikey/nexmoapikey.go b/pkg/detectors/nexmoapikey/nexmoapikey.go index 892ae6651be5d..5ce8dd75f2625 100644 --- a/pkg/detectors/nexmoapikey/nexmoapikey.go +++ b/pkg/detectors/nexmoapikey/nexmoapikey.go @@ -1,11 +1,12 @@ package nexmoapikey import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/nexmoapikey/nexmoapikey_test.go b/pkg/detectors/nexmoapikey/nexmoapikey_test.go index 40f145b55e255..93f1d77cf5e08 100644 --- a/pkg/detectors/nexmoapikey/nexmoapikey_test.go +++ b/pkg/detectors/nexmoapikey/nexmoapikey_test.go @@ -4,12 +4,14 @@ package nexmoapikey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nftport/nftport.go b/pkg/detectors/nftport/nftport.go index 6bc0192681323..02c0b1ae23937 100644 --- a/pkg/detectors/nftport/nftport.go +++ b/pkg/detectors/nftport/nftport.go @@ -1,11 +1,12 @@ package nftport import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/nftport/nftport_test.go b/pkg/detectors/nftport/nftport_test.go index 5e4d2dc505107..30e2fc3607da4 100644 --- a/pkg/detectors/nftport/nftport_test.go +++ b/pkg/detectors/nftport/nftport_test.go @@ -4,12 +4,14 @@ package nftport import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ngc/ngc.go b/pkg/detectors/ngc/ngc.go index 6d7c273a11890..f05357329dd88 100644 --- a/pkg/detectors/ngc/ngc.go +++ b/pkg/detectors/ngc/ngc.go @@ -1,12 +1,13 @@ package ngc import ( - "context" "encoding/base64" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ngc/ngc_test.go b/pkg/detectors/ngc/ngc_test.go index 647c1c0559948..47358b75ff1c1 100644 --- a/pkg/detectors/ngc/ngc_test.go +++ b/pkg/detectors/ngc/ngc_test.go @@ -4,12 +4,14 @@ package ngc import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ngrok/ngrok.go b/pkg/detectors/ngrok/ngrok.go index 5cd3941d3dc49..1b859928535d9 100644 --- a/pkg/detectors/ngrok/ngrok.go +++ b/pkg/detectors/ngrok/ngrok.go @@ -1,12 +1,13 @@ package ngrok import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ngrok/ngrok_test.go b/pkg/detectors/ngrok/ngrok_test.go index 234785e807c2a..32de0ec6d6669 100644 --- a/pkg/detectors/ngrok/ngrok_test.go +++ b/pkg/detectors/ngrok/ngrok_test.go @@ -4,11 +4,12 @@ package ngrok import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/nicereply/nicereply.go b/pkg/detectors/nicereply/nicereply.go index 6d9865507df60..f57eb0c314467 100644 --- a/pkg/detectors/nicereply/nicereply.go +++ b/pkg/detectors/nicereply/nicereply.go @@ -1,13 +1,14 @@ package nicereply import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/nicereply/nicereply_test.go b/pkg/detectors/nicereply/nicereply_test.go index 5111a81cfd2fd..f208cbdf83ece 100644 --- a/pkg/detectors/nicereply/nicereply_test.go +++ b/pkg/detectors/nicereply/nicereply_test.go @@ -4,12 +4,14 @@ package nicereply import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nightfall/nightfall.go b/pkg/detectors/nightfall/nightfall.go index ab7a853bf5ff6..ad00d7a32aa5e 100644 --- a/pkg/detectors/nightfall/nightfall.go +++ b/pkg/detectors/nightfall/nightfall.go @@ -1,12 +1,13 @@ package nightfall import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/nightfall/nightfall_test.go b/pkg/detectors/nightfall/nightfall_test.go index b3f88c6a35391..e023d5779982e 100644 --- a/pkg/detectors/nightfall/nightfall_test.go +++ b/pkg/detectors/nightfall/nightfall_test.go @@ -4,12 +4,14 @@ package nightfall import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nimble/nimble.go b/pkg/detectors/nimble/nimble.go index 5e2eff731f18e..b2c0cb53340c3 100644 --- a/pkg/detectors/nimble/nimble.go +++ b/pkg/detectors/nimble/nimble.go @@ -1,12 +1,13 @@ package nimble import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/nimble/nimble_test.go b/pkg/detectors/nimble/nimble_test.go index 0803942cb672b..eb3c9de3d5a1e 100644 --- a/pkg/detectors/nimble/nimble_test.go +++ b/pkg/detectors/nimble/nimble_test.go @@ -4,12 +4,14 @@ package nimble import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nitro/nitro.go b/pkg/detectors/nitro/nitro.go index d5b6ea07f54fb..5077b1dd6951f 100644 --- a/pkg/detectors/nitro/nitro.go +++ b/pkg/detectors/nitro/nitro.go @@ -1,11 +1,12 @@ package nitro import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/nitro/nitro_test.go b/pkg/detectors/nitro/nitro_test.go index 96a41dafdb38a..0529f8855c1d1 100644 --- a/pkg/detectors/nitro/nitro_test.go +++ b/pkg/detectors/nitro/nitro_test.go @@ -4,12 +4,14 @@ package nitro import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/noticeable/noticeable.go b/pkg/detectors/noticeable/noticeable.go index 63858d7412f00..d3bfe4123854c 100644 --- a/pkg/detectors/noticeable/noticeable.go +++ b/pkg/detectors/noticeable/noticeable.go @@ -1,12 +1,13 @@ package noticeable import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/noticeable/noticeable_test.go b/pkg/detectors/noticeable/noticeable_test.go index 97aaf32b8d86a..70907ab9ad15f 100644 --- a/pkg/detectors/noticeable/noticeable_test.go +++ b/pkg/detectors/noticeable/noticeable_test.go @@ -4,12 +4,14 @@ package noticeable import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/notion/notion.go b/pkg/detectors/notion/notion.go index 2496c55ac5b1d..bf88897d183a3 100644 --- a/pkg/detectors/notion/notion.go +++ b/pkg/detectors/notion/notion.go @@ -1,12 +1,13 @@ package notion import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/notion/notion_test.go b/pkg/detectors/notion/notion_test.go index e4947d90be54f..087b53b475861 100644 --- a/pkg/detectors/notion/notion_test.go +++ b/pkg/detectors/notion/notion_test.go @@ -4,12 +4,14 @@ package notion import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nozbeteams/nozbeteams.go b/pkg/detectors/nozbeteams/nozbeteams.go index 9b1d5402954eb..75ec0da434a80 100644 --- a/pkg/detectors/nozbeteams/nozbeteams.go +++ b/pkg/detectors/nozbeteams/nozbeteams.go @@ -1,11 +1,12 @@ package nozbeteams import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/nozbeteams/nozbeteams_test.go b/pkg/detectors/nozbeteams/nozbeteams_test.go index 62051d31ebf5d..6dc1011caf00d 100644 --- a/pkg/detectors/nozbeteams/nozbeteams_test.go +++ b/pkg/detectors/nozbeteams/nozbeteams_test.go @@ -4,11 +4,12 @@ package nozbeteams import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/npmtoken/npmtoken.go b/pkg/detectors/npmtoken/npmtoken.go index 2a624045f55dd..b29e6027eefa0 100644 --- a/pkg/detectors/npmtoken/npmtoken.go +++ b/pkg/detectors/npmtoken/npmtoken.go @@ -1,12 +1,13 @@ package npmtoken import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/npmtoken/npmtoken_test.go b/pkg/detectors/npmtoken/npmtoken_test.go index a2d2b23573662..30580048b4262 100644 --- a/pkg/detectors/npmtoken/npmtoken_test.go +++ b/pkg/detectors/npmtoken/npmtoken_test.go @@ -4,12 +4,14 @@ package npmtoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/npmtokenv2/npmtokenv2.go b/pkg/detectors/npmtokenv2/npmtokenv2.go index 56b2ef036e2a2..0e53e7875f1e4 100644 --- a/pkg/detectors/npmtokenv2/npmtokenv2.go +++ b/pkg/detectors/npmtokenv2/npmtokenv2.go @@ -1,11 +1,12 @@ package npmtokenv2 import ( - "context" "fmt" "net/http" "regexp" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/npmtokenv2/npmtokenv2_test.go b/pkg/detectors/npmtokenv2/npmtokenv2_test.go index 0a9d285c8d2ed..1db1392696eaf 100644 --- a/pkg/detectors/npmtokenv2/npmtokenv2_test.go +++ b/pkg/detectors/npmtokenv2/npmtokenv2_test.go @@ -4,12 +4,14 @@ package npmtokenv2 import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nugetapikey/nugetapikey.go b/pkg/detectors/nugetapikey/nugetapikey.go index e598b0db4d7da..836cb8a715dda 100644 --- a/pkg/detectors/nugetapikey/nugetapikey.go +++ b/pkg/detectors/nugetapikey/nugetapikey.go @@ -1,11 +1,12 @@ package nugetapikey import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/nugetapikey/nugetapikey_test.go b/pkg/detectors/nugetapikey/nugetapikey_test.go index ea742effdeb17..7c7a12f53128b 100644 --- a/pkg/detectors/nugetapikey/nugetapikey_test.go +++ b/pkg/detectors/nugetapikey/nugetapikey_test.go @@ -4,11 +4,12 @@ package nugetapikey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/numverify/numverify.go b/pkg/detectors/numverify/numverify.go index 2eb1f3319916c..7be254d0d9594 100644 --- a/pkg/detectors/numverify/numverify.go +++ b/pkg/detectors/numverify/numverify.go @@ -1,13 +1,14 @@ package numverify import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/numverify/numverify_test.go b/pkg/detectors/numverify/numverify_test.go index 7de6d15bf6ce1..356616b0405b8 100644 --- a/pkg/detectors/numverify/numverify_test.go +++ b/pkg/detectors/numverify/numverify_test.go @@ -4,12 +4,14 @@ package numverify import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nutritionix/nutritionix.go b/pkg/detectors/nutritionix/nutritionix.go index 0c3a9c772d824..faf6e3de0b1db 100644 --- a/pkg/detectors/nutritionix/nutritionix.go +++ b/pkg/detectors/nutritionix/nutritionix.go @@ -1,11 +1,12 @@ package nutritionix import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/nutritionix/nutritionix_test.go b/pkg/detectors/nutritionix/nutritionix_test.go index 8e37e878e5aa1..cac86ad8e2aff 100644 --- a/pkg/detectors/nutritionix/nutritionix_test.go +++ b/pkg/detectors/nutritionix/nutritionix_test.go @@ -4,12 +4,14 @@ package nutritionix import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nylas/nylas.go b/pkg/detectors/nylas/nylas.go index ec564b4465307..27027976c0c5e 100644 --- a/pkg/detectors/nylas/nylas.go +++ b/pkg/detectors/nylas/nylas.go @@ -1,12 +1,13 @@ package nylas import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/nylas/nylas_test.go b/pkg/detectors/nylas/nylas_test.go index 0e64d99d6709a..107b376b40411 100644 --- a/pkg/detectors/nylas/nylas_test.go +++ b/pkg/detectors/nylas/nylas_test.go @@ -4,12 +4,14 @@ package nylas import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nytimes/nytimes.go b/pkg/detectors/nytimes/nytimes.go index e992ce304b6b0..1ba9ee9f27f88 100644 --- a/pkg/detectors/nytimes/nytimes.go +++ b/pkg/detectors/nytimes/nytimes.go @@ -1,11 +1,12 @@ package nytimes import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/nytimes/nytimes_test.go b/pkg/detectors/nytimes/nytimes_test.go index 29c9f5c9bcb90..eef6fb506876c 100644 --- a/pkg/detectors/nytimes/nytimes_test.go +++ b/pkg/detectors/nytimes/nytimes_test.go @@ -4,12 +4,14 @@ package nytimes import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/oanda/oanda.go b/pkg/detectors/oanda/oanda.go index 051208189cade..50f52c26939d9 100644 --- a/pkg/detectors/oanda/oanda.go +++ b/pkg/detectors/oanda/oanda.go @@ -1,12 +1,13 @@ package oanda import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/oanda/oanda_test.go b/pkg/detectors/oanda/oanda_test.go index adbbee09f7b65..75237b7d9b2ce 100644 --- a/pkg/detectors/oanda/oanda_test.go +++ b/pkg/detectors/oanda/oanda_test.go @@ -4,12 +4,14 @@ package oanda import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/okta/okta.go b/pkg/detectors/okta/okta.go index 074acbbafc9c5..e6b4a8f45fb70 100644 --- a/pkg/detectors/okta/okta.go +++ b/pkg/detectors/okta/okta.go @@ -1,13 +1,14 @@ package okta import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/okta/okta_test.go b/pkg/detectors/okta/okta_test.go index bcf2612219aed..18c86e502c1df 100644 --- a/pkg/detectors/okta/okta_test.go +++ b/pkg/detectors/okta/okta_test.go @@ -4,12 +4,14 @@ package okta import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/omnisend/omnisend.go b/pkg/detectors/omnisend/omnisend.go index 7bd2dcf8000a0..a20fc2130e007 100644 --- a/pkg/detectors/omnisend/omnisend.go +++ b/pkg/detectors/omnisend/omnisend.go @@ -1,11 +1,12 @@ package omnisend import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/omnisend/omnisend_test.go b/pkg/detectors/omnisend/omnisend_test.go index 180fb37a3c394..1ab78e9649ad3 100644 --- a/pkg/detectors/omnisend/omnisend_test.go +++ b/pkg/detectors/omnisend/omnisend_test.go @@ -4,11 +4,12 @@ package omnisend import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/onedesk/onedesk.go b/pkg/detectors/onedesk/onedesk.go index 92ab30387c863..3109c7df939aa 100644 --- a/pkg/detectors/onedesk/onedesk.go +++ b/pkg/detectors/onedesk/onedesk.go @@ -1,13 +1,14 @@ package onedesk import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/onedesk/onedesk_test.go b/pkg/detectors/onedesk/onedesk_test.go index 1fdd5e72385a8..770d35458bd4a 100644 --- a/pkg/detectors/onedesk/onedesk_test.go +++ b/pkg/detectors/onedesk/onedesk_test.go @@ -4,12 +4,14 @@ package onedesk import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/onelogin/onelogin.go b/pkg/detectors/onelogin/onelogin.go index 0212a06813f1a..55da801f3cd37 100644 --- a/pkg/detectors/onelogin/onelogin.go +++ b/pkg/detectors/onelogin/onelogin.go @@ -1,13 +1,14 @@ package onelogin import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" ) diff --git a/pkg/detectors/onelogin/onelogin_test.go b/pkg/detectors/onelogin/onelogin_test.go index 39b2897c76a26..ef343d8ccd4f6 100644 --- a/pkg/detectors/onelogin/onelogin_test.go +++ b/pkg/detectors/onelogin/onelogin_test.go @@ -4,12 +4,14 @@ package onelogin import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/onepagecrm/onepagecrm.go b/pkg/detectors/onepagecrm/onepagecrm.go index 61f57f097c4d5..260f602fb837d 100644 --- a/pkg/detectors/onepagecrm/onepagecrm.go +++ b/pkg/detectors/onepagecrm/onepagecrm.go @@ -1,11 +1,12 @@ package onepagecrm import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/onepagecrm/onepagecrm_test.go b/pkg/detectors/onepagecrm/onepagecrm_test.go index 357d062d09592..d55da0e0b33a3 100644 --- a/pkg/detectors/onepagecrm/onepagecrm_test.go +++ b/pkg/detectors/onepagecrm/onepagecrm_test.go @@ -4,12 +4,14 @@ package onepagecrm import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/onesignal/onesignal.go b/pkg/detectors/onesignal/onesignal.go index d9ebefa664e79..94f430df46d05 100644 --- a/pkg/detectors/onesignal/onesignal.go +++ b/pkg/detectors/onesignal/onesignal.go @@ -1,13 +1,14 @@ package onesignal import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/onesignal/onesignal_test.go b/pkg/detectors/onesignal/onesignal_test.go index 30d1508a04f6a..f4d53ff866f11 100644 --- a/pkg/detectors/onesignal/onesignal_test.go +++ b/pkg/detectors/onesignal/onesignal_test.go @@ -4,12 +4,14 @@ package onesignal import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/onwaterio/onwaterio.go b/pkg/detectors/onwaterio/onwaterio.go index 53182c184c290..fafd91fe5d124 100644 --- a/pkg/detectors/onwaterio/onwaterio.go +++ b/pkg/detectors/onwaterio/onwaterio.go @@ -1,12 +1,13 @@ package onwaterio import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/onwaterio/onwaterio_test.go b/pkg/detectors/onwaterio/onwaterio_test.go index c98fce44bc1da..fba62f3afd3d6 100644 --- a/pkg/detectors/onwaterio/onwaterio_test.go +++ b/pkg/detectors/onwaterio/onwaterio_test.go @@ -4,12 +4,14 @@ package onwaterio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/oopspam/oopspam.go b/pkg/detectors/oopspam/oopspam.go index 3cbf450608449..edbeb968606c8 100644 --- a/pkg/detectors/oopspam/oopspam.go +++ b/pkg/detectors/oopspam/oopspam.go @@ -1,11 +1,12 @@ package oopspam import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/oopspam/oopspam_test.go b/pkg/detectors/oopspam/oopspam_test.go index 5c5a32d4eddf4..5a55566fad103 100644 --- a/pkg/detectors/oopspam/oopspam_test.go +++ b/pkg/detectors/oopspam/oopspam_test.go @@ -4,12 +4,14 @@ package oopspam import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/openai/openai.go b/pkg/detectors/openai/openai.go index c658f6f84a105..ff463d8a6a7b3 100644 --- a/pkg/detectors/openai/openai.go +++ b/pkg/detectors/openai/openai.go @@ -1,13 +1,14 @@ package openai import ( - "context" "encoding/json" "fmt" "net/http" "regexp" "strconv" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" diff --git a/pkg/detectors/openai/openai_test.go b/pkg/detectors/openai/openai_test.go index 2fda86e467c8e..4c5d3719915f1 100644 --- a/pkg/detectors/openai/openai_test.go +++ b/pkg/detectors/openai/openai_test.go @@ -4,12 +4,14 @@ package openai import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/opencagedata/opencagedata.go b/pkg/detectors/opencagedata/opencagedata.go index 7631891490a55..13072bb77bf2f 100644 --- a/pkg/detectors/opencagedata/opencagedata.go +++ b/pkg/detectors/opencagedata/opencagedata.go @@ -1,12 +1,13 @@ package opencagedata import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/opencagedata/opencagedata_test.go b/pkg/detectors/opencagedata/opencagedata_test.go index ed11edcd25b3d..8f9dd919eacba 100644 --- a/pkg/detectors/opencagedata/opencagedata_test.go +++ b/pkg/detectors/opencagedata/opencagedata_test.go @@ -4,12 +4,14 @@ package opencagedata import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/opengraphr/opengraphr.go b/pkg/detectors/opengraphr/opengraphr.go index fabd0b8a8029a..6d2cde9fd14d2 100644 --- a/pkg/detectors/opengraphr/opengraphr.go +++ b/pkg/detectors/opengraphr/opengraphr.go @@ -1,11 +1,12 @@ package opengraphr import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/opengraphr/opengraphr_test.go b/pkg/detectors/opengraphr/opengraphr_test.go index 2e6292173d9d9..44a696f89788c 100644 --- a/pkg/detectors/opengraphr/opengraphr_test.go +++ b/pkg/detectors/opengraphr/opengraphr_test.go @@ -4,11 +4,12 @@ package opengraphr import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/openuv/openuv.go b/pkg/detectors/openuv/openuv.go index 02981b0a35fd7..89bf121c76eff 100644 --- a/pkg/detectors/openuv/openuv.go +++ b/pkg/detectors/openuv/openuv.go @@ -1,11 +1,12 @@ package openuv import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/openuv/openuv_test.go b/pkg/detectors/openuv/openuv_test.go index e1ff7bf380b3d..ae5355e64baf4 100644 --- a/pkg/detectors/openuv/openuv_test.go +++ b/pkg/detectors/openuv/openuv_test.go @@ -4,12 +4,14 @@ package openuv import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/openvpn/openvpn.go b/pkg/detectors/openvpn/openvpn.go index ecb602af258ed..86bcd85262dbb 100644 --- a/pkg/detectors/openvpn/openvpn.go +++ b/pkg/detectors/openvpn/openvpn.go @@ -1,13 +1,14 @@ package openvpn import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/openvpn/openvpn_test.go b/pkg/detectors/openvpn/openvpn_test.go index b1521d2cfdf5a..0d2b9f027417c 100644 --- a/pkg/detectors/openvpn/openvpn_test.go +++ b/pkg/detectors/openvpn/openvpn_test.go @@ -4,11 +4,12 @@ package openvpn import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/openweather/openweather.go b/pkg/detectors/openweather/openweather.go index 172e0eac07078..c81247069a4bc 100644 --- a/pkg/detectors/openweather/openweather.go +++ b/pkg/detectors/openweather/openweather.go @@ -1,11 +1,12 @@ package openweather import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/openweather/openweather_test.go b/pkg/detectors/openweather/openweather_test.go index d15a14d56f648..91f7ae48daae7 100644 --- a/pkg/detectors/openweather/openweather_test.go +++ b/pkg/detectors/openweather/openweather_test.go @@ -4,12 +4,14 @@ package openweather import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/opsgenie/opsgenie.go b/pkg/detectors/opsgenie/opsgenie.go index 2911a53575724..1de874a6c4a30 100644 --- a/pkg/detectors/opsgenie/opsgenie.go +++ b/pkg/detectors/opsgenie/opsgenie.go @@ -1,12 +1,13 @@ package opsgenie import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/opsgenie/opsgenie_test.go b/pkg/detectors/opsgenie/opsgenie_test.go index 96aae8edf219e..6d3cc0c3abe60 100644 --- a/pkg/detectors/opsgenie/opsgenie_test.go +++ b/pkg/detectors/opsgenie/opsgenie_test.go @@ -1,12 +1,14 @@ package opsgenie import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/optimizely/optimizely.go b/pkg/detectors/optimizely/optimizely.go index f5abf131b121d..111f6964d8bf3 100644 --- a/pkg/detectors/optimizely/optimizely.go +++ b/pkg/detectors/optimizely/optimizely.go @@ -1,12 +1,13 @@ package optimizely import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/optimizely/optimizely_test.go b/pkg/detectors/optimizely/optimizely_test.go index 02050ad82c28a..9ccb2e94317b2 100644 --- a/pkg/detectors/optimizely/optimizely_test.go +++ b/pkg/detectors/optimizely/optimizely_test.go @@ -4,12 +4,14 @@ package optimizely import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/overloop/overloop.go b/pkg/detectors/overloop/overloop.go index e7b82a2c68cfe..8bb7d5699c9a2 100644 --- a/pkg/detectors/overloop/overloop.go +++ b/pkg/detectors/overloop/overloop.go @@ -1,12 +1,13 @@ package overloop import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/overloop/overloop_test.go b/pkg/detectors/overloop/overloop_test.go index 7b5d499fd6757..7baf0ff06133b 100644 --- a/pkg/detectors/overloop/overloop_test.go +++ b/pkg/detectors/overloop/overloop_test.go @@ -4,11 +4,12 @@ package overloop import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/owlbot/owlbot.go b/pkg/detectors/owlbot/owlbot.go index d6cad3e84aee8..d6a7062bb9fd3 100644 --- a/pkg/detectors/owlbot/owlbot.go +++ b/pkg/detectors/owlbot/owlbot.go @@ -1,12 +1,13 @@ package owlbot import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/owlbot/owlbot_test.go b/pkg/detectors/owlbot/owlbot_test.go index cb4fc3be699a7..9df4278e7487b 100644 --- a/pkg/detectors/owlbot/owlbot_test.go +++ b/pkg/detectors/owlbot/owlbot_test.go @@ -4,12 +4,14 @@ package owlbot import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/packagecloud/packagecloud.go b/pkg/detectors/packagecloud/packagecloud.go index d5f1b496a69a0..eec9abec61c1f 100644 --- a/pkg/detectors/packagecloud/packagecloud.go +++ b/pkg/detectors/packagecloud/packagecloud.go @@ -1,11 +1,12 @@ package packagecloud import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/packagecloud/packagecloud_test.go b/pkg/detectors/packagecloud/packagecloud_test.go index ca8dc5c7972b9..40c15459a4972 100644 --- a/pkg/detectors/packagecloud/packagecloud_test.go +++ b/pkg/detectors/packagecloud/packagecloud_test.go @@ -4,12 +4,14 @@ package packagecloud import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go b/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go index 2b5c2b7099f3f..32edcad2da05c 100644 --- a/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go +++ b/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go @@ -1,12 +1,13 @@ package pagerdutyapikey import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/pagerdutyapikey/pagerdutyapikey_test.go b/pkg/detectors/pagerdutyapikey/pagerdutyapikey_test.go index f3a1ff55cc543..33abd12c3b2ae 100644 --- a/pkg/detectors/pagerdutyapikey/pagerdutyapikey_test.go +++ b/pkg/detectors/pagerdutyapikey/pagerdutyapikey_test.go @@ -4,13 +4,15 @@ package pagerdutyapikey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" + "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/pandadoc/pandadoc.go b/pkg/detectors/pandadoc/pandadoc.go index 06ca1c7f9429d..00007c8187e72 100644 --- a/pkg/detectors/pandadoc/pandadoc.go +++ b/pkg/detectors/pandadoc/pandadoc.go @@ -1,12 +1,13 @@ package pandadoc import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/pandadoc/pandadoc_test.go b/pkg/detectors/pandadoc/pandadoc_test.go index 52f140a88ea06..29cbe882da52f 100644 --- a/pkg/detectors/pandadoc/pandadoc_test.go +++ b/pkg/detectors/pandadoc/pandadoc_test.go @@ -4,12 +4,14 @@ package pandadoc import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pandascore/pandascore.go b/pkg/detectors/pandascore/pandascore.go index d9eec6a7add7d..b1a592e5e08fd 100644 --- a/pkg/detectors/pandascore/pandascore.go +++ b/pkg/detectors/pandascore/pandascore.go @@ -1,12 +1,13 @@ package pandascore import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/pandascore/pandascore_test.go b/pkg/detectors/pandascore/pandascore_test.go index b6d5d005b9344..2fa81cc0d22a7 100644 --- a/pkg/detectors/pandascore/pandascore_test.go +++ b/pkg/detectors/pandascore/pandascore_test.go @@ -4,11 +4,12 @@ package pandascore import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/paperform/paperform.go b/pkg/detectors/paperform/paperform.go index 2bf4fc5da0d45..1a345c3c7da5f 100644 --- a/pkg/detectors/paperform/paperform.go +++ b/pkg/detectors/paperform/paperform.go @@ -1,12 +1,13 @@ package paperform import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/paperform/paperform_test.go b/pkg/detectors/paperform/paperform_test.go index 2b3de57e298f6..f0970ad401be4 100644 --- a/pkg/detectors/paperform/paperform_test.go +++ b/pkg/detectors/paperform/paperform_test.go @@ -4,12 +4,14 @@ package paperform import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/paralleldots/paralleldots.go b/pkg/detectors/paralleldots/paralleldots.go index 74e79626bb912..71f1a85b68957 100644 --- a/pkg/detectors/paralleldots/paralleldots.go +++ b/pkg/detectors/paralleldots/paralleldots.go @@ -2,13 +2,14 @@ package paralleldots import ( "bytes" - "context" "io" "mime/multipart" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/paralleldots/paralleldots_test.go b/pkg/detectors/paralleldots/paralleldots_test.go index e5931de4d773f..6d26aebef9f06 100644 --- a/pkg/detectors/paralleldots/paralleldots_test.go +++ b/pkg/detectors/paralleldots/paralleldots_test.go @@ -4,12 +4,14 @@ package paralleldots import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/parsehub/parsehub.go b/pkg/detectors/parsehub/parsehub.go index e82ec148f477e..ea8441afa928f 100644 --- a/pkg/detectors/parsehub/parsehub.go +++ b/pkg/detectors/parsehub/parsehub.go @@ -1,12 +1,13 @@ package parsehub import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/parsehub/parsehub_test.go b/pkg/detectors/parsehub/parsehub_test.go index 0e3cd456016c1..7fcb2aadf5ea3 100644 --- a/pkg/detectors/parsehub/parsehub_test.go +++ b/pkg/detectors/parsehub/parsehub_test.go @@ -4,12 +4,14 @@ package parsehub import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/parsers/parsers.go b/pkg/detectors/parsers/parsers.go index 9d890a8be1085..1126ef839a36f 100644 --- a/pkg/detectors/parsers/parsers.go +++ b/pkg/detectors/parsers/parsers.go @@ -1,11 +1,12 @@ package parsers import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/parsers/parsers_test.go b/pkg/detectors/parsers/parsers_test.go index a396b9ef38ea5..3a8e8c33cc10e 100644 --- a/pkg/detectors/parsers/parsers_test.go +++ b/pkg/detectors/parsers/parsers_test.go @@ -4,12 +4,14 @@ package parsers import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/parseur/parseur.go b/pkg/detectors/parseur/parseur.go index 4cad1da9dfcdd..8714a6d638025 100644 --- a/pkg/detectors/parseur/parseur.go +++ b/pkg/detectors/parseur/parseur.go @@ -1,12 +1,13 @@ package parseur import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/parseur/parseur_test.go b/pkg/detectors/parseur/parseur_test.go index fcc9d0c3666c6..1948329bb77d3 100644 --- a/pkg/detectors/parseur/parseur_test.go +++ b/pkg/detectors/parseur/parseur_test.go @@ -1,12 +1,14 @@ package parseur import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/partnerstack/partnerstack.go b/pkg/detectors/partnerstack/partnerstack.go index ba84258a95634..2910c2e651e09 100644 --- a/pkg/detectors/partnerstack/partnerstack.go +++ b/pkg/detectors/partnerstack/partnerstack.go @@ -1,12 +1,13 @@ package partnerstack import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/partnerstack/partnerstack_test.go b/pkg/detectors/partnerstack/partnerstack_test.go index e5bcfb7770b74..b6326b36896a1 100644 --- a/pkg/detectors/partnerstack/partnerstack_test.go +++ b/pkg/detectors/partnerstack/partnerstack_test.go @@ -4,12 +4,14 @@ package partnerstack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pastebin/pastebin.go b/pkg/detectors/pastebin/pastebin.go index 2911c87195878..2a3cdabdcbcbd 100644 --- a/pkg/detectors/pastebin/pastebin.go +++ b/pkg/detectors/pastebin/pastebin.go @@ -2,13 +2,14 @@ package pastebin import ( "bytes" - "context" "io" "mime/multipart" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/pastebin/pastebin_test.go b/pkg/detectors/pastebin/pastebin_test.go index e7aca2670088c..4c1afe4872e8e 100644 --- a/pkg/detectors/pastebin/pastebin_test.go +++ b/pkg/detectors/pastebin/pastebin_test.go @@ -4,12 +4,14 @@ package pastebin import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/paydirtapp/paydirtapp.go b/pkg/detectors/paydirtapp/paydirtapp.go index 3610545916490..ea01b705c65f6 100644 --- a/pkg/detectors/paydirtapp/paydirtapp.go +++ b/pkg/detectors/paydirtapp/paydirtapp.go @@ -1,11 +1,12 @@ package paydirtapp import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/paydirtapp/paydirtapp_test.go b/pkg/detectors/paydirtapp/paydirtapp_test.go index 950cab1a1cdc7..7d68ab5849d2e 100644 --- a/pkg/detectors/paydirtapp/paydirtapp_test.go +++ b/pkg/detectors/paydirtapp/paydirtapp_test.go @@ -4,12 +4,14 @@ package paydirtapp import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/paymoapp/paymoapp.go b/pkg/detectors/paymoapp/paymoapp.go index 28ba45d9e71cc..7449598e1535b 100644 --- a/pkg/detectors/paymoapp/paymoapp.go +++ b/pkg/detectors/paymoapp/paymoapp.go @@ -1,12 +1,13 @@ package paymoapp import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/paymoapp/paymoapp_test.go b/pkg/detectors/paymoapp/paymoapp_test.go index 371bda62b1a3e..c3ad5332635c9 100644 --- a/pkg/detectors/paymoapp/paymoapp_test.go +++ b/pkg/detectors/paymoapp/paymoapp_test.go @@ -4,12 +4,14 @@ package paymoapp import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/paymongo/paymongo.go b/pkg/detectors/paymongo/paymongo.go index 5d5d4fd125815..f123ad6cb119f 100644 --- a/pkg/detectors/paymongo/paymongo.go +++ b/pkg/detectors/paymongo/paymongo.go @@ -1,11 +1,12 @@ package paymongo import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/paymongo/paymongo_test.go b/pkg/detectors/paymongo/paymongo_test.go index cd7daf81e269b..de8b7f012fdfc 100644 --- a/pkg/detectors/paymongo/paymongo_test.go +++ b/pkg/detectors/paymongo/paymongo_test.go @@ -4,12 +4,14 @@ package paymongo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/paypaloauth/paypaloauth.go b/pkg/detectors/paypaloauth/paypaloauth.go index 774d4fba0eef9..ef15b91485233 100644 --- a/pkg/detectors/paypaloauth/paypaloauth.go +++ b/pkg/detectors/paypaloauth/paypaloauth.go @@ -1,13 +1,14 @@ package paypaloauth import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/paypaloauth/paypaloauth_test.go b/pkg/detectors/paypaloauth/paypaloauth_test.go index f2c8e02630ae7..004a48f41f257 100644 --- a/pkg/detectors/paypaloauth/paypaloauth_test.go +++ b/pkg/detectors/paypaloauth/paypaloauth_test.go @@ -4,12 +4,14 @@ package paypaloauth import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/paystack/paystack.go b/pkg/detectors/paystack/paystack.go index 0f338b4bd010d..37cadceed1d76 100644 --- a/pkg/detectors/paystack/paystack.go +++ b/pkg/detectors/paystack/paystack.go @@ -1,12 +1,13 @@ package paystack import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/paystack/paystack_test.go b/pkg/detectors/paystack/paystack_test.go index 19d5531aeaf73..d6aa54b487e6e 100644 --- a/pkg/detectors/paystack/paystack_test.go +++ b/pkg/detectors/paystack/paystack_test.go @@ -4,12 +4,14 @@ package paystack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pdflayer/pdflayer.go b/pkg/detectors/pdflayer/pdflayer.go index e82fc0c35810f..bed1d45317cf2 100644 --- a/pkg/detectors/pdflayer/pdflayer.go +++ b/pkg/detectors/pdflayer/pdflayer.go @@ -1,13 +1,14 @@ package pdflayer import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/pdflayer/pdflayer_test.go b/pkg/detectors/pdflayer/pdflayer_test.go index d803ff92151ba..244b228668348 100644 --- a/pkg/detectors/pdflayer/pdflayer_test.go +++ b/pkg/detectors/pdflayer/pdflayer_test.go @@ -4,12 +4,14 @@ package pdflayer import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pdfshift/pdfshift.go b/pkg/detectors/pdfshift/pdfshift.go index 902a36b0095af..8d8e663fae28c 100644 --- a/pkg/detectors/pdfshift/pdfshift.go +++ b/pkg/detectors/pdfshift/pdfshift.go @@ -1,11 +1,12 @@ package pdfshift import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/pdfshift/pdfshift_test.go b/pkg/detectors/pdfshift/pdfshift_test.go index bbddc1251efaa..60380ba82a5b2 100644 --- a/pkg/detectors/pdfshift/pdfshift_test.go +++ b/pkg/detectors/pdfshift/pdfshift_test.go @@ -4,12 +4,14 @@ package pdfshift import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/peopledatalabs/peopledatalabs.go b/pkg/detectors/peopledatalabs/peopledatalabs.go index b5153dc0ca478..b25559c5017d3 100644 --- a/pkg/detectors/peopledatalabs/peopledatalabs.go +++ b/pkg/detectors/peopledatalabs/peopledatalabs.go @@ -1,11 +1,12 @@ package peopledatalabs import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/peopledatalabs/peopledatalabs_test.go b/pkg/detectors/peopledatalabs/peopledatalabs_test.go index c913f7f0493c4..db2498bd3f698 100644 --- a/pkg/detectors/peopledatalabs/peopledatalabs_test.go +++ b/pkg/detectors/peopledatalabs/peopledatalabs_test.go @@ -4,12 +4,14 @@ package peopledatalabs import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pepipost/pepipost.go b/pkg/detectors/pepipost/pepipost.go index b7b7983fb4f12..25c64f831b862 100644 --- a/pkg/detectors/pepipost/pepipost.go +++ b/pkg/detectors/pepipost/pepipost.go @@ -1,11 +1,12 @@ package pepipost import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/pepipost/pepipost_test.go b/pkg/detectors/pepipost/pepipost_test.go index ced4dc8437692..3ec6095a2f06c 100644 --- a/pkg/detectors/pepipost/pepipost_test.go +++ b/pkg/detectors/pepipost/pepipost_test.go @@ -4,12 +4,14 @@ package pepipost import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/percy/percy.go b/pkg/detectors/percy/percy.go index 748f31c658088..8de1db829b5d0 100644 --- a/pkg/detectors/percy/percy.go +++ b/pkg/detectors/percy/percy.go @@ -1,12 +1,13 @@ package percy import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/percy/percy_test.go b/pkg/detectors/percy/percy_test.go index aad571e5b1dd8..8ed67cf921358 100644 --- a/pkg/detectors/percy/percy_test.go +++ b/pkg/detectors/percy/percy_test.go @@ -4,12 +4,14 @@ package percy import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pinata/pinata.go b/pkg/detectors/pinata/pinata.go index de457d4526f01..76f7b31ed6005 100644 --- a/pkg/detectors/pinata/pinata.go +++ b/pkg/detectors/pinata/pinata.go @@ -1,12 +1,13 @@ package pinata import ( - "context" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/pinata/pinata_test.go b/pkg/detectors/pinata/pinata_test.go index 9231cef779022..bafd22d825077 100644 --- a/pkg/detectors/pinata/pinata_test.go +++ b/pkg/detectors/pinata/pinata_test.go @@ -4,12 +4,14 @@ package pinata import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pipedream/pipedream.go b/pkg/detectors/pipedream/pipedream.go index 19a469fefd950..89e36d1040f76 100644 --- a/pkg/detectors/pipedream/pipedream.go +++ b/pkg/detectors/pipedream/pipedream.go @@ -1,13 +1,14 @@ package pipedream import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/pipedream/pipedream_test.go b/pkg/detectors/pipedream/pipedream_test.go index 202da5a57c406..f80bf6b018b3d 100644 --- a/pkg/detectors/pipedream/pipedream_test.go +++ b/pkg/detectors/pipedream/pipedream_test.go @@ -4,11 +4,12 @@ package pipedream import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pipedrive/pipedrive.go b/pkg/detectors/pipedrive/pipedrive.go index 878f7791cbdd9..0d29d3607234f 100644 --- a/pkg/detectors/pipedrive/pipedrive.go +++ b/pkg/detectors/pipedrive/pipedrive.go @@ -1,12 +1,13 @@ package pipedrive import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/pipedrive/pipedrive_test.go b/pkg/detectors/pipedrive/pipedrive_test.go index 271a4a3f0aea4..c52d3a5858629 100644 --- a/pkg/detectors/pipedrive/pipedrive_test.go +++ b/pkg/detectors/pipedrive/pipedrive_test.go @@ -4,12 +4,14 @@ package pipedrive import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pivotaltracker/pivotaltracker.go b/pkg/detectors/pivotaltracker/pivotaltracker.go index 970e9d04f46da..8dd6dbdf6f9aa 100644 --- a/pkg/detectors/pivotaltracker/pivotaltracker.go +++ b/pkg/detectors/pivotaltracker/pivotaltracker.go @@ -1,10 +1,11 @@ package pivotaltracker import ( - "context" "net/http" "regexp" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/pivotaltracker/pivotaltracker_test.go b/pkg/detectors/pivotaltracker/pivotaltracker_test.go index 5e2809a56d8eb..ce66f4bed8b52 100644 --- a/pkg/detectors/pivotaltracker/pivotaltracker_test.go +++ b/pkg/detectors/pivotaltracker/pivotaltracker_test.go @@ -4,12 +4,14 @@ package pivotaltracker import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/pixabay/pixabay.go b/pkg/detectors/pixabay/pixabay.go index 297cbde815521..8cf8e2fbcbaef 100644 --- a/pkg/detectors/pixabay/pixabay.go +++ b/pkg/detectors/pixabay/pixabay.go @@ -1,12 +1,13 @@ package pixabay import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/pixabay/pixabay_test.go b/pkg/detectors/pixabay/pixabay_test.go index 62c962ec3f96b..239823d08780f 100644 --- a/pkg/detectors/pixabay/pixabay_test.go +++ b/pkg/detectors/pixabay/pixabay_test.go @@ -4,11 +4,12 @@ package pixabay import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/plaidkey/plaidkey.go b/pkg/detectors/plaidkey/plaidkey.go index e969b79928745..e1cc8dfcfacd6 100644 --- a/pkg/detectors/plaidkey/plaidkey.go +++ b/pkg/detectors/plaidkey/plaidkey.go @@ -1,12 +1,13 @@ package plaidkey import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/plaidkey/plaidkey_test.go b/pkg/detectors/plaidkey/plaidkey_test.go index 624c22e2f8137..f6ca5caf3b16f 100644 --- a/pkg/detectors/plaidkey/plaidkey_test.go +++ b/pkg/detectors/plaidkey/plaidkey_test.go @@ -4,12 +4,14 @@ package plaidkey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/planetscale/planetscale.go b/pkg/detectors/planetscale/planetscale.go index 9de06a11477bf..fd7dc0bd84a29 100644 --- a/pkg/detectors/planetscale/planetscale.go +++ b/pkg/detectors/planetscale/planetscale.go @@ -1,11 +1,12 @@ package planetscale import ( - "context" "fmt" "net/http" "regexp" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/planetscale/planetscale_test.go b/pkg/detectors/planetscale/planetscale_test.go index 315f8f97ba35c..cfc27052e3f7c 100644 --- a/pkg/detectors/planetscale/planetscale_test.go +++ b/pkg/detectors/planetscale/planetscale_test.go @@ -4,11 +4,12 @@ package planetscale import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/planetscaledb/planetscaledb.go b/pkg/detectors/planetscaledb/planetscaledb.go index 57b86828ad3eb..ea4ca1412538f 100644 --- a/pkg/detectors/planetscaledb/planetscaledb.go +++ b/pkg/detectors/planetscaledb/planetscaledb.go @@ -1,11 +1,12 @@ package planetscaledb import ( - "context" "database/sql" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/go-sql-driver/mysql" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/planetscaledb/planetscaledb_test.go b/pkg/detectors/planetscaledb/planetscaledb_test.go index 57a1ae3c44ab7..5c2f3cfc0ee41 100644 --- a/pkg/detectors/planetscaledb/planetscaledb_test.go +++ b/pkg/detectors/planetscaledb/planetscaledb_test.go @@ -4,11 +4,12 @@ package planetscaledb import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/planviewleankit/planviewleankit.go b/pkg/detectors/planviewleankit/planviewleankit.go index 4901a342aba08..ba6cc68c9db28 100644 --- a/pkg/detectors/planviewleankit/planviewleankit.go +++ b/pkg/detectors/planviewleankit/planviewleankit.go @@ -1,12 +1,13 @@ package planviewleankit import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/planviewleankit/planviewleankit_test.go b/pkg/detectors/planviewleankit/planviewleankit_test.go index 99a39767f79aa..61c8e22c0a1b8 100644 --- a/pkg/detectors/planviewleankit/planviewleankit_test.go +++ b/pkg/detectors/planviewleankit/planviewleankit_test.go @@ -4,11 +4,12 @@ package planviewleankit import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/planyo/planyo.go b/pkg/detectors/planyo/planyo.go index 6eba2c098c32b..ef96461731482 100644 --- a/pkg/detectors/planyo/planyo.go +++ b/pkg/detectors/planyo/planyo.go @@ -1,13 +1,14 @@ package planyo import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/planyo/planyo_test.go b/pkg/detectors/planyo/planyo_test.go index 03730cd2f9833..f4fc769361c5e 100644 --- a/pkg/detectors/planyo/planyo_test.go +++ b/pkg/detectors/planyo/planyo_test.go @@ -4,12 +4,14 @@ package planyo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/plivo/plivo.go b/pkg/detectors/plivo/plivo.go index d04a996a73e82..e7050b474b02c 100644 --- a/pkg/detectors/plivo/plivo.go +++ b/pkg/detectors/plivo/plivo.go @@ -1,13 +1,14 @@ package plivo import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/plivo/plivo_test.go b/pkg/detectors/plivo/plivo_test.go index 26db005f45a33..3934da0d13dcd 100644 --- a/pkg/detectors/plivo/plivo_test.go +++ b/pkg/detectors/plivo/plivo_test.go @@ -4,12 +4,14 @@ package plivo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/podio/podio.go b/pkg/detectors/podio/podio.go index d66baa8ec1286..7fc46279268e2 100644 --- a/pkg/detectors/podio/podio.go +++ b/pkg/detectors/podio/podio.go @@ -1,12 +1,13 @@ package podio import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/podio/podio_test.go b/pkg/detectors/podio/podio_test.go index b7a162f03239b..81e07e62358ed 100644 --- a/pkg/detectors/podio/podio_test.go +++ b/pkg/detectors/podio/podio_test.go @@ -4,12 +4,14 @@ package podio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pollsapi/pollsapi.go b/pkg/detectors/pollsapi/pollsapi.go index f2d28e61692ac..05603e0fd5e8a 100644 --- a/pkg/detectors/pollsapi/pollsapi.go +++ b/pkg/detectors/pollsapi/pollsapi.go @@ -1,11 +1,12 @@ package pollsapi import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/pollsapi/pollsapi_test.go b/pkg/detectors/pollsapi/pollsapi_test.go index 7e28de28d7e2f..5b866482b3f8c 100644 --- a/pkg/detectors/pollsapi/pollsapi_test.go +++ b/pkg/detectors/pollsapi/pollsapi_test.go @@ -4,12 +4,14 @@ package pollsapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/poloniex/poloniex.go b/pkg/detectors/poloniex/poloniex.go index bf4358e111ad4..15db7cd839c1f 100644 --- a/pkg/detectors/poloniex/poloniex.go +++ b/pkg/detectors/poloniex/poloniex.go @@ -1,7 +1,6 @@ package poloniex import ( - "context" "crypto/hmac" "crypto/sha512" "encoding/hex" @@ -12,6 +11,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/poloniex/poloniex_test.go b/pkg/detectors/poloniex/poloniex_test.go index 22dd53d4a4aaa..321b3b896a5ca 100644 --- a/pkg/detectors/poloniex/poloniex_test.go +++ b/pkg/detectors/poloniex/poloniex_test.go @@ -4,12 +4,14 @@ package poloniex import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/polygon/polygon.go b/pkg/detectors/polygon/polygon.go index 5f439f370ad64..dbe7c79eb441e 100644 --- a/pkg/detectors/polygon/polygon.go +++ b/pkg/detectors/polygon/polygon.go @@ -1,11 +1,12 @@ package polygon import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/polygon/polygon_test.go b/pkg/detectors/polygon/polygon_test.go index 3565f38e41ce2..fe2a126e88100 100644 --- a/pkg/detectors/polygon/polygon_test.go +++ b/pkg/detectors/polygon/polygon_test.go @@ -4,12 +4,14 @@ package polygon import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/portainer/portainer.go b/pkg/detectors/portainer/portainer.go index ec769fe1430dc..55cc4bd7de4f7 100644 --- a/pkg/detectors/portainer/portainer.go +++ b/pkg/detectors/portainer/portainer.go @@ -1,12 +1,13 @@ package portainer import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/portainer/portainer_test.go b/pkg/detectors/portainer/portainer_test.go index 49ca42d4a9d56..0011b6875c22e 100644 --- a/pkg/detectors/portainer/portainer_test.go +++ b/pkg/detectors/portainer/portainer_test.go @@ -4,11 +4,12 @@ package portainer import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/portainertoken/portainertoken.go b/pkg/detectors/portainertoken/portainertoken.go index c2f8e740224d7..332b426fbc755 100644 --- a/pkg/detectors/portainertoken/portainertoken.go +++ b/pkg/detectors/portainertoken/portainertoken.go @@ -1,12 +1,13 @@ package portainertoken import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/portainertoken/portainertoken_test.go b/pkg/detectors/portainertoken/portainertoken_test.go index cf2c35d222e3b..b2892f26c8cfd 100644 --- a/pkg/detectors/portainertoken/portainertoken_test.go +++ b/pkg/detectors/portainertoken/portainertoken_test.go @@ -4,11 +4,12 @@ package portainertoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/positionstack/positionstack.go b/pkg/detectors/positionstack/positionstack.go index 628a86a651e00..2893fac28676f 100644 --- a/pkg/detectors/positionstack/positionstack.go +++ b/pkg/detectors/positionstack/positionstack.go @@ -1,12 +1,13 @@ package positionstack import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/positionstack/positionstack_test.go b/pkg/detectors/positionstack/positionstack_test.go index f7494337b072d..283ee223ef1ce 100644 --- a/pkg/detectors/positionstack/positionstack_test.go +++ b/pkg/detectors/positionstack/positionstack_test.go @@ -4,12 +4,14 @@ package positionstack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/postageapp/postageapp.go b/pkg/detectors/postageapp/postageapp.go index f47eb2bf1849a..e59ff1c1fa982 100644 --- a/pkg/detectors/postageapp/postageapp.go +++ b/pkg/detectors/postageapp/postageapp.go @@ -1,11 +1,12 @@ package postageapp import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/postageapp/postageapp_test.go b/pkg/detectors/postageapp/postageapp_test.go index 37e7596f76cc4..8a874843d6b33 100644 --- a/pkg/detectors/postageapp/postageapp_test.go +++ b/pkg/detectors/postageapp/postageapp_test.go @@ -4,12 +4,14 @@ package postageapp import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/postbacks/postbacks.go b/pkg/detectors/postbacks/postbacks.go index e25a53c8010c1..366b1ada36e58 100644 --- a/pkg/detectors/postbacks/postbacks.go +++ b/pkg/detectors/postbacks/postbacks.go @@ -1,12 +1,13 @@ package postbacks import ( - "context" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/postbacks/postbacks_test.go b/pkg/detectors/postbacks/postbacks_test.go index fd032f3f1a425..f699faf8ffe58 100644 --- a/pkg/detectors/postbacks/postbacks_test.go +++ b/pkg/detectors/postbacks/postbacks_test.go @@ -4,12 +4,14 @@ package postbacks import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/posthog/posthog.go b/pkg/detectors/posthog/posthog.go index 853321d6ac926..01db7d8ea9289 100644 --- a/pkg/detectors/posthog/posthog.go +++ b/pkg/detectors/posthog/posthog.go @@ -1,11 +1,12 @@ package posthog import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/posthog/posthog_test.go b/pkg/detectors/posthog/posthog_test.go index 70091659e30f5..6c49d1e1c2989 100644 --- a/pkg/detectors/posthog/posthog_test.go +++ b/pkg/detectors/posthog/posthog_test.go @@ -4,12 +4,14 @@ package posthog import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/postman/postman.go b/pkg/detectors/postman/postman.go index 79276ff9ebfc6..a1de10ade4046 100644 --- a/pkg/detectors/postman/postman.go +++ b/pkg/detectors/postman/postman.go @@ -1,12 +1,13 @@ package postman import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/postman/postman_test.go b/pkg/detectors/postman/postman_test.go index 355b81cd87944..3a74c4efee5be 100644 --- a/pkg/detectors/postman/postman_test.go +++ b/pkg/detectors/postman/postman_test.go @@ -4,13 +4,15 @@ package postman import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/postmark/postmark.go b/pkg/detectors/postmark/postmark.go index 16b64224f39f0..c741e5fa2c631 100644 --- a/pkg/detectors/postmark/postmark.go +++ b/pkg/detectors/postmark/postmark.go @@ -1,11 +1,12 @@ package postmark import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/postmark/postmark_test.go b/pkg/detectors/postmark/postmark_test.go index a9c984c7ca4ae..bd041f66cd9e4 100644 --- a/pkg/detectors/postmark/postmark_test.go +++ b/pkg/detectors/postmark/postmark_test.go @@ -4,11 +4,12 @@ package postmark import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/powrbot/powrbot.go b/pkg/detectors/powrbot/powrbot.go index f4f90ec1b0787..0bc26df19ee41 100644 --- a/pkg/detectors/powrbot/powrbot.go +++ b/pkg/detectors/powrbot/powrbot.go @@ -1,12 +1,13 @@ package powrbot import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/powrbot/powrbot_test.go b/pkg/detectors/powrbot/powrbot_test.go index 0b7b184ab8c5f..399229f4e913e 100644 --- a/pkg/detectors/powrbot/powrbot_test.go +++ b/pkg/detectors/powrbot/powrbot_test.go @@ -4,12 +4,14 @@ package powrbot import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/prefect/prefect.go b/pkg/detectors/prefect/prefect.go index cd7eaad91d492..e15710336f7f5 100644 --- a/pkg/detectors/prefect/prefect.go +++ b/pkg/detectors/prefect/prefect.go @@ -1,12 +1,13 @@ package prefect import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/prefect/prefect_test.go b/pkg/detectors/prefect/prefect_test.go index d748c86deb28e..600fbfdf1b5b0 100644 --- a/pkg/detectors/prefect/prefect_test.go +++ b/pkg/detectors/prefect/prefect_test.go @@ -4,12 +4,14 @@ package prefect import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/privacy/privacy.go b/pkg/detectors/privacy/privacy.go index 38df12247a055..5df9a59200f7c 100644 --- a/pkg/detectors/privacy/privacy.go +++ b/pkg/detectors/privacy/privacy.go @@ -1,12 +1,13 @@ package privacy import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/privacy/privacy_test.go b/pkg/detectors/privacy/privacy_test.go index c17317ea6b5d7..80d1c224383fb 100644 --- a/pkg/detectors/privacy/privacy_test.go +++ b/pkg/detectors/privacy/privacy_test.go @@ -4,11 +4,12 @@ package privacy import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/privatekey/privatekey.go b/pkg/detectors/privatekey/privatekey.go index cf7b3b2139b5a..4897bd679b3b0 100644 --- a/pkg/detectors/privatekey/privatekey.go +++ b/pkg/detectors/privatekey/privatekey.go @@ -1,7 +1,6 @@ package privatekey import ( - "context" "encoding/json" "fmt" "net/http" @@ -10,6 +9,8 @@ import ( "sync" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/AzureAD/microsoft-authentication-library-for-go/apps/errors" "golang.org/x/crypto/ssh" diff --git a/pkg/detectors/privatekey/privatekey_test.go b/pkg/detectors/privatekey/privatekey_test.go index 4fae4587cb60f..b47da16ceb2a7 100644 --- a/pkg/detectors/privatekey/privatekey_test.go +++ b/pkg/detectors/privatekey/privatekey_test.go @@ -4,14 +4,16 @@ package privatekey import ( - "context" "fmt" "os" "reflect" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/privatekey/ssh_test.go b/pkg/detectors/privatekey/ssh_test.go index 9dbb6bd6f31db..488b7677a8b17 100644 --- a/pkg/detectors/privatekey/ssh_test.go +++ b/pkg/detectors/privatekey/ssh_test.go @@ -1,12 +1,14 @@ package privatekey import ( - "context" "testing" "time" - "github.com/trufflesecurity/trufflehog/v3/pkg/common" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "golang.org/x/crypto/ssh" + + "github.com/trufflesecurity/trufflehog/v3/pkg/common" ) func TestFirstResponseFromSSH(t *testing.T) { diff --git a/pkg/detectors/prodpad/prodpad.go b/pkg/detectors/prodpad/prodpad.go index eaa10d1e41973..15370724b02ba 100644 --- a/pkg/detectors/prodpad/prodpad.go +++ b/pkg/detectors/prodpad/prodpad.go @@ -1,12 +1,13 @@ package prodpad import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/prodpad/prodpad_test.go b/pkg/detectors/prodpad/prodpad_test.go index 80fd2a5e734c4..cc313f32094f7 100644 --- a/pkg/detectors/prodpad/prodpad_test.go +++ b/pkg/detectors/prodpad/prodpad_test.go @@ -1,12 +1,14 @@ package prodpad import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/prospectcrm/prospectcrm.go b/pkg/detectors/prospectcrm/prospectcrm.go index 46245f5e57201..10a9e847a4b8b 100644 --- a/pkg/detectors/prospectcrm/prospectcrm.go +++ b/pkg/detectors/prospectcrm/prospectcrm.go @@ -1,12 +1,13 @@ package prospectcrm import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/prospectcrm/prospectcrm_test.go b/pkg/detectors/prospectcrm/prospectcrm_test.go index af0f8f0fb81f5..54868914048ab 100644 --- a/pkg/detectors/prospectcrm/prospectcrm_test.go +++ b/pkg/detectors/prospectcrm/prospectcrm_test.go @@ -4,12 +4,14 @@ package prospectcrm import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/protocolsio/protocolsio.go b/pkg/detectors/protocolsio/protocolsio.go index 60ebe28573ed0..bda9e19d5905a 100644 --- a/pkg/detectors/protocolsio/protocolsio.go +++ b/pkg/detectors/protocolsio/protocolsio.go @@ -1,12 +1,13 @@ package protocolsio import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/protocolsio/protocolsio_test.go b/pkg/detectors/protocolsio/protocolsio_test.go index 495d2218f323e..116a8d69b353a 100644 --- a/pkg/detectors/protocolsio/protocolsio_test.go +++ b/pkg/detectors/protocolsio/protocolsio_test.go @@ -4,12 +4,14 @@ package protocolsio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/proxycrawl/proxycrawl.go b/pkg/detectors/proxycrawl/proxycrawl.go index 9cd7b522cbdd6..9ae2d2397254f 100644 --- a/pkg/detectors/proxycrawl/proxycrawl.go +++ b/pkg/detectors/proxycrawl/proxycrawl.go @@ -1,13 +1,14 @@ package proxycrawl import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/proxycrawl/proxycrawl_test.go b/pkg/detectors/proxycrawl/proxycrawl_test.go index 7eea9e70aaa98..cf0d331ab62a3 100644 --- a/pkg/detectors/proxycrawl/proxycrawl_test.go +++ b/pkg/detectors/proxycrawl/proxycrawl_test.go @@ -4,12 +4,14 @@ package proxycrawl import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go b/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go index 99a16acd04b1f..26c63b6e7e967 100644 --- a/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go +++ b/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go @@ -1,8 +1,8 @@ package pubnubpublishkey import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "net/http" "regexp" "strings" diff --git a/pkg/detectors/pubnubpublishkey/pubnubpublishkey_test.go b/pkg/detectors/pubnubpublishkey/pubnubpublishkey_test.go index 9caa04ae17465..f51fdace3c41f 100644 --- a/pkg/detectors/pubnubpublishkey/pubnubpublishkey_test.go +++ b/pkg/detectors/pubnubpublishkey/pubnubpublishkey_test.go @@ -4,8 +4,8 @@ package pubnubpublishkey import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go b/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go index 2229bb5248f25..88390183e246c 100644 --- a/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go +++ b/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go @@ -1,7 +1,7 @@ package pubnubsubscriptionkey import ( - "context" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "net/http" "regexp" "strings" diff --git a/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey_test.go b/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey_test.go index bbeac7afb1cc4..8a27bed10074c 100644 --- a/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey_test.go +++ b/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey_test.go @@ -4,12 +4,14 @@ package pubnubsubscriptionkey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pulumi/pulumi.go b/pkg/detectors/pulumi/pulumi.go index ce098fb2b5bf2..ae826c461b765 100644 --- a/pkg/detectors/pulumi/pulumi.go +++ b/pkg/detectors/pulumi/pulumi.go @@ -1,12 +1,13 @@ package pulumi import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/pulumi/pulumi_test.go b/pkg/detectors/pulumi/pulumi_test.go index 2276bddcfd20e..c3c37bdf1d389 100644 --- a/pkg/detectors/pulumi/pulumi_test.go +++ b/pkg/detectors/pulumi/pulumi_test.go @@ -4,12 +4,14 @@ package pulumi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/purestake/purestake.go b/pkg/detectors/purestake/purestake.go index c38db8f30b9cd..1133c9ff5bbb7 100644 --- a/pkg/detectors/purestake/purestake.go +++ b/pkg/detectors/purestake/purestake.go @@ -1,11 +1,12 @@ package purestake import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/purestake/purestake_test.go b/pkg/detectors/purestake/purestake_test.go index 90c408e4262cb..d7a01fd8d0d44 100644 --- a/pkg/detectors/purestake/purestake_test.go +++ b/pkg/detectors/purestake/purestake_test.go @@ -4,12 +4,14 @@ package purestake import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pushbulletapikey/pushbulletapikey.go b/pkg/detectors/pushbulletapikey/pushbulletapikey.go index e5e30f870ce9f..836afa4e1f5ca 100644 --- a/pkg/detectors/pushbulletapikey/pushbulletapikey.go +++ b/pkg/detectors/pushbulletapikey/pushbulletapikey.go @@ -1,11 +1,12 @@ package pushbulletapikey import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/pushbulletapikey/pushbulletapikey_test.go b/pkg/detectors/pushbulletapikey/pushbulletapikey_test.go index 81aeb603dd46d..26dda05638fdb 100644 --- a/pkg/detectors/pushbulletapikey/pushbulletapikey_test.go +++ b/pkg/detectors/pushbulletapikey/pushbulletapikey_test.go @@ -4,12 +4,14 @@ package pushbulletapikey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pusherchannelkey/pusherchannelkey.go b/pkg/detectors/pusherchannelkey/pusherchannelkey.go index e98764af3a22d..34e3ba8b409f8 100644 --- a/pkg/detectors/pusherchannelkey/pusherchannelkey.go +++ b/pkg/detectors/pusherchannelkey/pusherchannelkey.go @@ -1,7 +1,6 @@ package pusherchannelkey import ( - "context" "crypto/hmac" "crypto/md5" "crypto/sha256" @@ -13,6 +12,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/pusherchannelkey/pusherchannelkey_test.go b/pkg/detectors/pusherchannelkey/pusherchannelkey_test.go index e6eac14832d78..414727914f196 100644 --- a/pkg/detectors/pusherchannelkey/pusherchannelkey_test.go +++ b/pkg/detectors/pusherchannelkey/pusherchannelkey_test.go @@ -4,8 +4,8 @@ package pusherchannelkey import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/qase/qase.go b/pkg/detectors/qase/qase.go index 23a2b3450a31f..ca303b0bf5130 100644 --- a/pkg/detectors/qase/qase.go +++ b/pkg/detectors/qase/qase.go @@ -1,11 +1,12 @@ package qase import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/qase/qase_test.go b/pkg/detectors/qase/qase_test.go index 271d7d2f9fae0..badd98c3bd944 100644 --- a/pkg/detectors/qase/qase_test.go +++ b/pkg/detectors/qase/qase_test.go @@ -4,12 +4,14 @@ package qase import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/qualaroo/qualaroo.go b/pkg/detectors/qualaroo/qualaroo.go index e67a262461193..49079e5f00f3b 100644 --- a/pkg/detectors/qualaroo/qualaroo.go +++ b/pkg/detectors/qualaroo/qualaroo.go @@ -1,12 +1,13 @@ package qualaroo import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/qualaroo/qualaroo_test.go b/pkg/detectors/qualaroo/qualaroo_test.go index 92637db43e13c..88f427e4ccd9e 100644 --- a/pkg/detectors/qualaroo/qualaroo_test.go +++ b/pkg/detectors/qualaroo/qualaroo_test.go @@ -4,12 +4,14 @@ package qualaroo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/qubole/qubole.go b/pkg/detectors/qubole/qubole.go index 855f091ffcc0f..28d2da7e046e7 100644 --- a/pkg/detectors/qubole/qubole.go +++ b/pkg/detectors/qubole/qubole.go @@ -1,11 +1,12 @@ package qubole import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/qubole/qubole_test.go b/pkg/detectors/qubole/qubole_test.go index ccd8c83e0bd24..07e19a1dd7658 100644 --- a/pkg/detectors/qubole/qubole_test.go +++ b/pkg/detectors/qubole/qubole_test.go @@ -4,12 +4,14 @@ package qubole import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rabbitmq/rabbitmq.go b/pkg/detectors/rabbitmq/rabbitmq.go index 436e14e059d66..d7419a959ebee 100644 --- a/pkg/detectors/rabbitmq/rabbitmq.go +++ b/pkg/detectors/rabbitmq/rabbitmq.go @@ -1,11 +1,12 @@ package rabbitmq import ( - "context" "net/url" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + amqp "github.com/rabbitmq/amqp091-go" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/rabbitmq/rabbitmq_test.go b/pkg/detectors/rabbitmq/rabbitmq_test.go index 77a5ffcd62fd3..2f31e80eba927 100644 --- a/pkg/detectors/rabbitmq/rabbitmq_test.go +++ b/pkg/detectors/rabbitmq/rabbitmq_test.go @@ -4,12 +4,14 @@ package rabbitmq import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ramp/ramp.go b/pkg/detectors/ramp/ramp.go index d41a869aa05cd..5eaf2e30d920e 100644 --- a/pkg/detectors/ramp/ramp.go +++ b/pkg/detectors/ramp/ramp.go @@ -1,13 +1,14 @@ package ramp import ( - "context" "fmt" "net/http" "net/url" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ramp/ramp_test.go b/pkg/detectors/ramp/ramp_test.go index 7989a75095e62..929cd5c293596 100644 --- a/pkg/detectors/ramp/ramp_test.go +++ b/pkg/detectors/ramp/ramp_test.go @@ -4,11 +4,12 @@ package ramp import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/rapidapi/rapidapi.go b/pkg/detectors/rapidapi/rapidapi.go index ff3102f318fc8..1558b6b8d56c7 100644 --- a/pkg/detectors/rapidapi/rapidapi.go +++ b/pkg/detectors/rapidapi/rapidapi.go @@ -1,11 +1,12 @@ package rapidapi import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/rapidapi/rapidapi_test.go b/pkg/detectors/rapidapi/rapidapi_test.go index 3deee3a8ae21e..6de2163840eb3 100644 --- a/pkg/detectors/rapidapi/rapidapi_test.go +++ b/pkg/detectors/rapidapi/rapidapi_test.go @@ -4,12 +4,14 @@ package rapidapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/raven/raven.go b/pkg/detectors/raven/raven.go index e7845e93b5e49..93ce444623d58 100644 --- a/pkg/detectors/raven/raven.go +++ b/pkg/detectors/raven/raven.go @@ -1,7 +1,6 @@ package raven import ( - "context" "encoding/json" "fmt" "io" @@ -9,6 +8,8 @@ import ( "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/raven/raven_test.go b/pkg/detectors/raven/raven_test.go index 0558e15a26b7f..765edc94ecd6f 100644 --- a/pkg/detectors/raven/raven_test.go +++ b/pkg/detectors/raven/raven_test.go @@ -4,12 +4,14 @@ package raven import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rawg/rawg.go b/pkg/detectors/rawg/rawg.go index 526a9431f114d..cdbac116bd087 100644 --- a/pkg/detectors/rawg/rawg.go +++ b/pkg/detectors/rawg/rawg.go @@ -1,11 +1,12 @@ package rawg import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/rawg/rawg_test.go b/pkg/detectors/rawg/rawg_test.go index 8fc6368337962..6eb2a10bbabb3 100644 --- a/pkg/detectors/rawg/rawg_test.go +++ b/pkg/detectors/rawg/rawg_test.go @@ -4,12 +4,14 @@ package rawg import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/razorpay/razorpay.go b/pkg/detectors/razorpay/razorpay.go index 4071ddc73c487..cc66a61cffff0 100644 --- a/pkg/detectors/razorpay/razorpay.go +++ b/pkg/detectors/razorpay/razorpay.go @@ -1,12 +1,13 @@ package razorpay import ( - "context" "encoding/json" "io" "net/http" "regexp" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/razorpay/razorpay_test.go b/pkg/detectors/razorpay/razorpay_test.go index 2e39ec1608c56..8e0c2229ed730 100644 --- a/pkg/detectors/razorpay/razorpay_test.go +++ b/pkg/detectors/razorpay/razorpay_test.go @@ -4,13 +4,15 @@ package razorpay import ( - "context" "fmt" "os" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/reachmail/reachmail.go b/pkg/detectors/reachmail/reachmail.go index 204a11443f133..ccc01e757a8e9 100644 --- a/pkg/detectors/reachmail/reachmail.go +++ b/pkg/detectors/reachmail/reachmail.go @@ -1,12 +1,13 @@ package reachmail import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/reachmail/reachmail_test.go b/pkg/detectors/reachmail/reachmail_test.go index f33fa67e1420a..fb126379efef4 100644 --- a/pkg/detectors/reachmail/reachmail_test.go +++ b/pkg/detectors/reachmail/reachmail_test.go @@ -4,12 +4,14 @@ package reachmail import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/readme/readme.go b/pkg/detectors/readme/readme.go index 80ff3c94df056..1ab097baccd9f 100644 --- a/pkg/detectors/readme/readme.go +++ b/pkg/detectors/readme/readme.go @@ -1,11 +1,12 @@ package readme import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" ) diff --git a/pkg/detectors/readme/readme_test.go b/pkg/detectors/readme/readme_test.go index 1648b60f193ad..f68edd7b21a11 100644 --- a/pkg/detectors/readme/readme_test.go +++ b/pkg/detectors/readme/readme_test.go @@ -4,12 +4,14 @@ package readme import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/reallysimplesystems/reallysimplesystems.go b/pkg/detectors/reallysimplesystems/reallysimplesystems.go index dc01ec28d484c..23f0cb2905109 100644 --- a/pkg/detectors/reallysimplesystems/reallysimplesystems.go +++ b/pkg/detectors/reallysimplesystems/reallysimplesystems.go @@ -1,7 +1,6 @@ package reallysimplesystems import ( - "context" "encoding/json" "fmt" "io" @@ -9,6 +8,8 @@ import ( "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/reallysimplesystems/reallysimplesystems_test.go b/pkg/detectors/reallysimplesystems/reallysimplesystems_test.go index 631bac585cc00..a65819a42b574 100644 --- a/pkg/detectors/reallysimplesystems/reallysimplesystems_test.go +++ b/pkg/detectors/reallysimplesystems/reallysimplesystems_test.go @@ -4,12 +4,14 @@ package reallysimplesystems import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rebrandly/rebrandly.go b/pkg/detectors/rebrandly/rebrandly.go index 8c9543109a5a4..b973dc0370c80 100644 --- a/pkg/detectors/rebrandly/rebrandly.go +++ b/pkg/detectors/rebrandly/rebrandly.go @@ -1,11 +1,12 @@ package rebrandly import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/rebrandly/rebrandly_test.go b/pkg/detectors/rebrandly/rebrandly_test.go index f1b85b2ad142a..a7de483846042 100644 --- a/pkg/detectors/rebrandly/rebrandly_test.go +++ b/pkg/detectors/rebrandly/rebrandly_test.go @@ -4,12 +4,14 @@ package rebrandly import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rechargepayments/rechargepayments.go b/pkg/detectors/rechargepayments/rechargepayments.go index 773a84f9f1336..15107be9e73b7 100644 --- a/pkg/detectors/rechargepayments/rechargepayments.go +++ b/pkg/detectors/rechargepayments/rechargepayments.go @@ -1,10 +1,11 @@ package rechargepayments import ( - "context" "net/http" "regexp" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/rechargepayments/rechargepayments_test.go b/pkg/detectors/rechargepayments/rechargepayments_test.go index 919b739096e1e..32ded4917034e 100644 --- a/pkg/detectors/rechargepayments/rechargepayments_test.go +++ b/pkg/detectors/rechargepayments/rechargepayments_test.go @@ -4,8 +4,8 @@ package rechargepayments import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/redis/redis.go b/pkg/detectors/redis/redis.go index 5aa4efdd8b0e2..d43efc2ffead6 100644 --- a/pkg/detectors/redis/redis.go +++ b/pkg/detectors/redis/redis.go @@ -1,12 +1,13 @@ package redis import ( - "context" "fmt" "net/url" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/go-redis/redis" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/redis/redis_test.go b/pkg/detectors/redis/redis_test.go index 92b58dece5a1e..31fbb22caa087 100644 --- a/pkg/detectors/redis/redis_test.go +++ b/pkg/detectors/redis/redis_test.go @@ -4,10 +4,12 @@ package redis import ( - "context" "testing" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" ) diff --git a/pkg/detectors/refiner/refiner.go b/pkg/detectors/refiner/refiner.go index e3da1e3c667a4..3ff1b3a2ddd1c 100644 --- a/pkg/detectors/refiner/refiner.go +++ b/pkg/detectors/refiner/refiner.go @@ -1,12 +1,13 @@ package refiner import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/refiner/refiner_test.go b/pkg/detectors/refiner/refiner_test.go index 68a9207de47fd..b50b74b85f63a 100644 --- a/pkg/detectors/refiner/refiner_test.go +++ b/pkg/detectors/refiner/refiner_test.go @@ -4,12 +4,14 @@ package refiner import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rentman/rentman.go b/pkg/detectors/rentman/rentman.go index d952b74d574ac..2a339fa4f1536 100644 --- a/pkg/detectors/rentman/rentman.go +++ b/pkg/detectors/rentman/rentman.go @@ -1,12 +1,13 @@ package rentman import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/rentman/rentman_test.go b/pkg/detectors/rentman/rentman_test.go index 5bd67861688e4..3551e6af0f64d 100644 --- a/pkg/detectors/rentman/rentman_test.go +++ b/pkg/detectors/rentman/rentman_test.go @@ -4,12 +4,14 @@ package rentman import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/repairshopr/repairshopr.go b/pkg/detectors/repairshopr/repairshopr.go index e5ef9695b2e66..ebcb4e36944b9 100644 --- a/pkg/detectors/repairshopr/repairshopr.go +++ b/pkg/detectors/repairshopr/repairshopr.go @@ -1,12 +1,13 @@ package repairshopr import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/repairshopr/repairshopr_test.go b/pkg/detectors/repairshopr/repairshopr_test.go index a6c59bddb670e..9d82cb598bd22 100644 --- a/pkg/detectors/repairshopr/repairshopr_test.go +++ b/pkg/detectors/repairshopr/repairshopr_test.go @@ -4,11 +4,12 @@ package repairshopr import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/replicate/replicate.go b/pkg/detectors/replicate/replicate.go index e8bf5c40de319..8e2bd8f78560b 100644 --- a/pkg/detectors/replicate/replicate.go +++ b/pkg/detectors/replicate/replicate.go @@ -1,12 +1,13 @@ package replicate import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/replicate/replicate_test.go b/pkg/detectors/replicate/replicate_test.go index ab597813d6e9f..53f6b13a91e4c 100644 --- a/pkg/detectors/replicate/replicate_test.go +++ b/pkg/detectors/replicate/replicate_test.go @@ -4,11 +4,12 @@ package replicate import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/replyio/replyio.go b/pkg/detectors/replyio/replyio.go index 2414053487995..1b0f27c750cc3 100644 --- a/pkg/detectors/replyio/replyio.go +++ b/pkg/detectors/replyio/replyio.go @@ -1,12 +1,13 @@ package replyio import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/replyio/replyio_test.go b/pkg/detectors/replyio/replyio_test.go index 9f01fa0238849..4a954b0a09380 100644 --- a/pkg/detectors/replyio/replyio_test.go +++ b/pkg/detectors/replyio/replyio_test.go @@ -4,11 +4,12 @@ package replyio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/requestfinance/requestfinance.go b/pkg/detectors/requestfinance/requestfinance.go index 35d8710d79244..dd800635242b0 100644 --- a/pkg/detectors/requestfinance/requestfinance.go +++ b/pkg/detectors/requestfinance/requestfinance.go @@ -1,12 +1,13 @@ package requestfinance import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/requestfinance/requestfinance_test.go b/pkg/detectors/requestfinance/requestfinance_test.go index d8dc273f856b4..e768951ebdff3 100644 --- a/pkg/detectors/requestfinance/requestfinance_test.go +++ b/pkg/detectors/requestfinance/requestfinance_test.go @@ -4,11 +4,12 @@ package requestfinance import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/restpack/restpack.go b/pkg/detectors/restpack/restpack.go index ddc09c3f6610c..fc389393f37ce 100644 --- a/pkg/detectors/restpack/restpack.go +++ b/pkg/detectors/restpack/restpack.go @@ -1,12 +1,13 @@ package restpack import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/restpack/restpack_test.go b/pkg/detectors/restpack/restpack_test.go index ff3404f3c9182..78df363656855 100644 --- a/pkg/detectors/restpack/restpack_test.go +++ b/pkg/detectors/restpack/restpack_test.go @@ -4,12 +4,14 @@ package restpack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go b/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go index d39cbc068c6a6..2369952ad5bba 100644 --- a/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go +++ b/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go @@ -1,11 +1,12 @@ package restpackhtmltopdfapi import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/restpackhtmltopdfapi/restpackhtmltopdfapi_test.go b/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi_test.go index 9666074eaafbf..1f914231d7bc1 100644 --- a/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi_test.go +++ b/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi_test.go @@ -4,12 +4,14 @@ package restpackhtmltopdfapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go b/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go index ed052c5cdb302..cc035ea593744 100644 --- a/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go +++ b/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go @@ -1,11 +1,12 @@ package restpackscreenshotapi import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/restpackscreenshotapi/restpackscreenshotapi_test.go b/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi_test.go index 36a3816a5630c..1065bb6e7bcec 100644 --- a/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi_test.go +++ b/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi_test.go @@ -4,11 +4,12 @@ package restpackscreenshotapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rev/rev.go b/pkg/detectors/rev/rev.go index af8de9321d4e2..0be070a8a8f88 100644 --- a/pkg/detectors/rev/rev.go +++ b/pkg/detectors/rev/rev.go @@ -1,12 +1,13 @@ package rev import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/rev/rev_test.go b/pkg/detectors/rev/rev_test.go index 885a1dace78d8..0ee3cddf15aa5 100644 --- a/pkg/detectors/rev/rev_test.go +++ b/pkg/detectors/rev/rev_test.go @@ -4,12 +4,14 @@ package rev import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/revampcrm/revampcrm.go b/pkg/detectors/revampcrm/revampcrm.go index 8c8d3ae0578a2..865bca659e3b7 100644 --- a/pkg/detectors/revampcrm/revampcrm.go +++ b/pkg/detectors/revampcrm/revampcrm.go @@ -1,11 +1,12 @@ package revampcrm import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/revampcrm/revampcrm_test.go b/pkg/detectors/revampcrm/revampcrm_test.go index 1101321f67f36..42f59b7b47b00 100644 --- a/pkg/detectors/revampcrm/revampcrm_test.go +++ b/pkg/detectors/revampcrm/revampcrm_test.go @@ -4,12 +4,14 @@ package revampcrm import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ringcentral/ringcentral.go b/pkg/detectors/ringcentral/ringcentral.go index a57daf212439f..192affd5d8f29 100644 --- a/pkg/detectors/ringcentral/ringcentral.go +++ b/pkg/detectors/ringcentral/ringcentral.go @@ -1,12 +1,13 @@ package ringcentral import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ringcentral/ringcentral_test.go b/pkg/detectors/ringcentral/ringcentral_test.go index 360028638c28a..a0fa14b6e231b 100644 --- a/pkg/detectors/ringcentral/ringcentral_test.go +++ b/pkg/detectors/ringcentral/ringcentral_test.go @@ -4,12 +4,14 @@ package ringcentral import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ritekit/ritekit.go b/pkg/detectors/ritekit/ritekit.go index 7aaab9cc1188c..a6f36d428befb 100644 --- a/pkg/detectors/ritekit/ritekit.go +++ b/pkg/detectors/ritekit/ritekit.go @@ -1,12 +1,13 @@ package ritekit import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ritekit/ritekit_test.go b/pkg/detectors/ritekit/ritekit_test.go index 063651feb1456..a500c64c2e9b6 100644 --- a/pkg/detectors/ritekit/ritekit_test.go +++ b/pkg/detectors/ritekit/ritekit_test.go @@ -4,12 +4,14 @@ package ritekit import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/roaring/roaring.go b/pkg/detectors/roaring/roaring.go index dee74da361529..4cdca92111a30 100644 --- a/pkg/detectors/roaring/roaring.go +++ b/pkg/detectors/roaring/roaring.go @@ -1,13 +1,14 @@ package roaring import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/roaring/roaring_test.go b/pkg/detectors/roaring/roaring_test.go index 640ddb5247adb..2570010990f03 100644 --- a/pkg/detectors/roaring/roaring_test.go +++ b/pkg/detectors/roaring/roaring_test.go @@ -4,12 +4,14 @@ package roaring import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rocketreach/rocketreach.go b/pkg/detectors/rocketreach/rocketreach.go index c444111598d50..c809ad97c3723 100644 --- a/pkg/detectors/rocketreach/rocketreach.go +++ b/pkg/detectors/rocketreach/rocketreach.go @@ -1,11 +1,12 @@ package rocketreach import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/rocketreach/rocketreach_test.go b/pkg/detectors/rocketreach/rocketreach_test.go index 651f1c2a8f4f3..76df1debd2b0b 100644 --- a/pkg/detectors/rocketreach/rocketreach_test.go +++ b/pkg/detectors/rocketreach/rocketreach_test.go @@ -4,11 +4,12 @@ package rocketreach import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rockset/rockset.go b/pkg/detectors/rockset/rockset.go index f79d6e0051d95..54edb7690fc6b 100644 --- a/pkg/detectors/rockset/rockset.go +++ b/pkg/detectors/rockset/rockset.go @@ -1,12 +1,13 @@ package rockset import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/rockset/rockset_test.go b/pkg/detectors/rockset/rockset_test.go index 4d18254b19859..f093a4aac6c5b 100644 --- a/pkg/detectors/rockset/rockset_test.go +++ b/pkg/detectors/rockset/rockset_test.go @@ -4,12 +4,14 @@ package rockset import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/roninapp/roninapp.go b/pkg/detectors/roninapp/roninapp.go index 8e22e80deb737..bd6a063f2de2d 100644 --- a/pkg/detectors/roninapp/roninapp.go +++ b/pkg/detectors/roninapp/roninapp.go @@ -1,11 +1,12 @@ package roninapp import ( - "context" "fmt" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + b64 "encoding/base64" "net/http" diff --git a/pkg/detectors/roninapp/roninapp_test.go b/pkg/detectors/roninapp/roninapp_test.go index 67a47781e6034..1645ff7f26919 100644 --- a/pkg/detectors/roninapp/roninapp_test.go +++ b/pkg/detectors/roninapp/roninapp_test.go @@ -4,12 +4,14 @@ package roninapp import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/route4me/route4me.go b/pkg/detectors/route4me/route4me.go index 0428e45046a68..4889ec0e2f32b 100644 --- a/pkg/detectors/route4me/route4me.go +++ b/pkg/detectors/route4me/route4me.go @@ -1,11 +1,12 @@ package route4me import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/route4me/route4me_test.go b/pkg/detectors/route4me/route4me_test.go index de2b1e24e4fcd..e0d6c846f5c9e 100644 --- a/pkg/detectors/route4me/route4me_test.go +++ b/pkg/detectors/route4me/route4me_test.go @@ -4,12 +4,14 @@ package route4me import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rownd/rownd.go b/pkg/detectors/rownd/rownd.go index 1d2d86434afb8..b7e717cb5cc15 100644 --- a/pkg/detectors/rownd/rownd.go +++ b/pkg/detectors/rownd/rownd.go @@ -1,11 +1,12 @@ package rownd import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/rownd/rownd_test.go b/pkg/detectors/rownd/rownd_test.go index 1fbb340f13039..c4b1768bb5016 100644 --- a/pkg/detectors/rownd/rownd_test.go +++ b/pkg/detectors/rownd/rownd_test.go @@ -4,11 +4,12 @@ package rownd import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rubygems/rubygems.go b/pkg/detectors/rubygems/rubygems.go index 0f3e9d0f95e15..5b63979fc3119 100644 --- a/pkg/detectors/rubygems/rubygems.go +++ b/pkg/detectors/rubygems/rubygems.go @@ -1,11 +1,12 @@ package rubygems import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/rubygems/rubygems_test.go b/pkg/detectors/rubygems/rubygems_test.go index aa681f83b8553..cd7e6aaa3abdf 100644 --- a/pkg/detectors/rubygems/rubygems_test.go +++ b/pkg/detectors/rubygems/rubygems_test.go @@ -4,12 +4,14 @@ package rubygems import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/runrunit/runrunit.go b/pkg/detectors/runrunit/runrunit.go index 5ac22e2df49a8..cc94e122a6122 100644 --- a/pkg/detectors/runrunit/runrunit.go +++ b/pkg/detectors/runrunit/runrunit.go @@ -1,11 +1,12 @@ package runrunit import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/runrunit/runrunit_test.go b/pkg/detectors/runrunit/runrunit_test.go index 8cdeabd2e7648..93298824066f8 100644 --- a/pkg/detectors/runrunit/runrunit_test.go +++ b/pkg/detectors/runrunit/runrunit_test.go @@ -4,12 +4,14 @@ package runrunit import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/salesblink/salesblink.go b/pkg/detectors/salesblink/salesblink.go index d2b4e880bb02d..ac89f4a8f8008 100644 --- a/pkg/detectors/salesblink/salesblink.go +++ b/pkg/detectors/salesblink/salesblink.go @@ -1,11 +1,12 @@ package salesblink import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/salesblink/salesblink_test.go b/pkg/detectors/salesblink/salesblink_test.go index 43b662ccc0e4f..f38e39623f073 100644 --- a/pkg/detectors/salesblink/salesblink_test.go +++ b/pkg/detectors/salesblink/salesblink_test.go @@ -4,12 +4,14 @@ package salesblink import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/salescookie/salescookie.go b/pkg/detectors/salescookie/salescookie.go index 43073adef6a8a..bfebd3c386375 100644 --- a/pkg/detectors/salescookie/salescookie.go +++ b/pkg/detectors/salescookie/salescookie.go @@ -1,11 +1,12 @@ package salescookie import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/salescookie/salescookie_test.go b/pkg/detectors/salescookie/salescookie_test.go index 48196acf887d3..5dca41d2ca3e4 100644 --- a/pkg/detectors/salescookie/salescookie_test.go +++ b/pkg/detectors/salescookie/salescookie_test.go @@ -4,12 +4,14 @@ package salescookie import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/salesflare/salesflare.go b/pkg/detectors/salesflare/salesflare.go index faa1c1752d465..a2521f5690622 100644 --- a/pkg/detectors/salesflare/salesflare.go +++ b/pkg/detectors/salesflare/salesflare.go @@ -1,12 +1,13 @@ package salesflare import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/salesflare/salesflare_test.go b/pkg/detectors/salesflare/salesflare_test.go index e3b0490c79d25..90f63ac2265ec 100644 --- a/pkg/detectors/salesflare/salesflare_test.go +++ b/pkg/detectors/salesflare/salesflare_test.go @@ -4,12 +4,14 @@ package salesflare import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/salesforce/salesforce.go b/pkg/detectors/salesforce/salesforce.go index f886e1334f18c..0cacd01f627d4 100644 --- a/pkg/detectors/salesforce/salesforce.go +++ b/pkg/detectors/salesforce/salesforce.go @@ -1,12 +1,13 @@ package salesforce import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/salesforce/salesforce_test.go b/pkg/detectors/salesforce/salesforce_test.go index 6c7721e973e50..89e269ac34301 100644 --- a/pkg/detectors/salesforce/salesforce_test.go +++ b/pkg/detectors/salesforce/salesforce_test.go @@ -4,11 +4,12 @@ package salesforce import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/salesmate/salesmate.go b/pkg/detectors/salesmate/salesmate.go index f68336079c954..c9738b49e6c85 100644 --- a/pkg/detectors/salesmate/salesmate.go +++ b/pkg/detectors/salesmate/salesmate.go @@ -1,12 +1,13 @@ package salesmate import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/salesmate/salesmate_test.go b/pkg/detectors/salesmate/salesmate_test.go index d440be9aa20a5..e15dd9ae84285 100644 --- a/pkg/detectors/salesmate/salesmate_test.go +++ b/pkg/detectors/salesmate/salesmate_test.go @@ -1,12 +1,14 @@ package salesmate import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go b/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go index 88c85b575b3bf..db8d021619be6 100644 --- a/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go +++ b/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go @@ -1,9 +1,9 @@ package satismeterprojectkey import ( - "context" b64 "encoding/base64" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "net/http" "regexp" "strings" diff --git a/pkg/detectors/satismeterprojectkey/satismeterprojectkey_test.go b/pkg/detectors/satismeterprojectkey/satismeterprojectkey_test.go index 8b0a3bfcd2491..696adefa919e2 100644 --- a/pkg/detectors/satismeterprojectkey/satismeterprojectkey_test.go +++ b/pkg/detectors/satismeterprojectkey/satismeterprojectkey_test.go @@ -4,12 +4,14 @@ package satismeterprojectkey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/satismeterwritekey/satismeterwritekey.go b/pkg/detectors/satismeterwritekey/satismeterwritekey.go index 143f5645d2a45..138b98b152bfa 100644 --- a/pkg/detectors/satismeterwritekey/satismeterwritekey.go +++ b/pkg/detectors/satismeterwritekey/satismeterwritekey.go @@ -1,11 +1,12 @@ package satismeterwritekey import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/satismeterwritekey/satismeterwritekey_test.go b/pkg/detectors/satismeterwritekey/satismeterwritekey_test.go index 26f3d00fe8869..5bea2c44b85c4 100644 --- a/pkg/detectors/satismeterwritekey/satismeterwritekey_test.go +++ b/pkg/detectors/satismeterwritekey/satismeterwritekey_test.go @@ -4,8 +4,8 @@ package satismeterwritekey import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/saucelabs/saucelabs.go b/pkg/detectors/saucelabs/saucelabs.go index 24ad11649969e..fba97e07313f6 100644 --- a/pkg/detectors/saucelabs/saucelabs.go +++ b/pkg/detectors/saucelabs/saucelabs.go @@ -1,13 +1,14 @@ package saucelabs import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/saucelabs/saucelabs_test.go b/pkg/detectors/saucelabs/saucelabs_test.go index 7f92957f283d9..7e87c00e915ab 100644 --- a/pkg/detectors/saucelabs/saucelabs_test.go +++ b/pkg/detectors/saucelabs/saucelabs_test.go @@ -4,12 +4,14 @@ package saucelabs import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/scalewaykey/scalewaykey.go b/pkg/detectors/scalewaykey/scalewaykey.go index c82b4a0d0ace2..6a2bb33f67fdb 100644 --- a/pkg/detectors/scalewaykey/scalewaykey.go +++ b/pkg/detectors/scalewaykey/scalewaykey.go @@ -1,11 +1,12 @@ package scalewaykey import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/scalewaykey/scalewaykey_test.go b/pkg/detectors/scalewaykey/scalewaykey_test.go index 58bbd79a04e3b..dd52c8c6c2387 100644 --- a/pkg/detectors/scalewaykey/scalewaykey_test.go +++ b/pkg/detectors/scalewaykey/scalewaykey_test.go @@ -4,12 +4,14 @@ package scalewaykey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/scalr/scalr.go b/pkg/detectors/scalr/scalr.go index 77b750a3f374a..3212c2a9b1e10 100644 --- a/pkg/detectors/scalr/scalr.go +++ b/pkg/detectors/scalr/scalr.go @@ -1,12 +1,13 @@ package scalr import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/scalr/scalr_test.go b/pkg/detectors/scalr/scalr_test.go index 758c8ce3ad066..e88f6dce14f31 100644 --- a/pkg/detectors/scalr/scalr_test.go +++ b/pkg/detectors/scalr/scalr_test.go @@ -1,12 +1,14 @@ package scalr import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/scrapeowl/scrapeowl.go b/pkg/detectors/scrapeowl/scrapeowl.go index 70707e81c8d23..c8cfb2fa47703 100644 --- a/pkg/detectors/scrapeowl/scrapeowl.go +++ b/pkg/detectors/scrapeowl/scrapeowl.go @@ -1,11 +1,12 @@ package scrapeowl import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/scrapeowl/scrapeowl_test.go b/pkg/detectors/scrapeowl/scrapeowl_test.go index 519f9a03c8207..fc89e49db8f4a 100644 --- a/pkg/detectors/scrapeowl/scrapeowl_test.go +++ b/pkg/detectors/scrapeowl/scrapeowl_test.go @@ -4,12 +4,14 @@ package scrapeowl import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/scraperapi/scraperapi.go b/pkg/detectors/scraperapi/scraperapi.go index d6283a64eb7db..bdde141a50b14 100644 --- a/pkg/detectors/scraperapi/scraperapi.go +++ b/pkg/detectors/scraperapi/scraperapi.go @@ -1,13 +1,14 @@ package scraperapi import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/scraperapi/scraperapi_test.go b/pkg/detectors/scraperapi/scraperapi_test.go index c809f33d84085..ac52d68a463a9 100644 --- a/pkg/detectors/scraperapi/scraperapi_test.go +++ b/pkg/detectors/scraperapi/scraperapi_test.go @@ -4,12 +4,14 @@ package scraperapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/scraperbox/scraperbox.go b/pkg/detectors/scraperbox/scraperbox.go index 89fd4039776ad..71e37539a9c26 100644 --- a/pkg/detectors/scraperbox/scraperbox.go +++ b/pkg/detectors/scraperbox/scraperbox.go @@ -1,13 +1,14 @@ package scraperbox import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/scraperbox/scraperbox_test.go b/pkg/detectors/scraperbox/scraperbox_test.go index 4a867efbf0330..06d8f5e6c5355 100644 --- a/pkg/detectors/scraperbox/scraperbox_test.go +++ b/pkg/detectors/scraperbox/scraperbox_test.go @@ -4,12 +4,14 @@ package scraperbox import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/scrapestack/scrapestack.go b/pkg/detectors/scrapestack/scrapestack.go index 119d915ed100e..33f9673b62e2b 100644 --- a/pkg/detectors/scrapestack/scrapestack.go +++ b/pkg/detectors/scrapestack/scrapestack.go @@ -1,13 +1,14 @@ package scrapestack import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/scrapestack/scrapestack_test.go b/pkg/detectors/scrapestack/scrapestack_test.go index 0fdb025580cac..7d1f4011a5050 100644 --- a/pkg/detectors/scrapestack/scrapestack_test.go +++ b/pkg/detectors/scrapestack/scrapestack_test.go @@ -4,12 +4,14 @@ package scrapestack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/scrapfly/scrapfly.go b/pkg/detectors/scrapfly/scrapfly.go index fb6db5edc1d19..5591d2bde64e8 100644 --- a/pkg/detectors/scrapfly/scrapfly.go +++ b/pkg/detectors/scrapfly/scrapfly.go @@ -1,13 +1,14 @@ package scrapfly import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/scrapfly/scrapfly_test.go b/pkg/detectors/scrapfly/scrapfly_test.go index 34a7ff5b0b370..138f6a494130c 100644 --- a/pkg/detectors/scrapfly/scrapfly_test.go +++ b/pkg/detectors/scrapfly/scrapfly_test.go @@ -4,12 +4,14 @@ package scrapfly import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/scrapingant/scrapingant.go b/pkg/detectors/scrapingant/scrapingant.go index ab5c4b6c10bec..df77a0a036a49 100644 --- a/pkg/detectors/scrapingant/scrapingant.go +++ b/pkg/detectors/scrapingant/scrapingant.go @@ -1,12 +1,13 @@ package scrapingant import ( - "context" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/scrapingant/scrapingant_test.go b/pkg/detectors/scrapingant/scrapingant_test.go index 311550c8ebd8a..06641df5abb96 100644 --- a/pkg/detectors/scrapingant/scrapingant_test.go +++ b/pkg/detectors/scrapingant/scrapingant_test.go @@ -4,12 +4,14 @@ package scrapingant import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/scrapingbee/scrapingbee.go b/pkg/detectors/scrapingbee/scrapingbee.go index 628c1d691291f..8584504c89e30 100644 --- a/pkg/detectors/scrapingbee/scrapingbee.go +++ b/pkg/detectors/scrapingbee/scrapingbee.go @@ -1,11 +1,12 @@ package scrapingbee import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/scrapingbee/scrapingbee_test.go b/pkg/detectors/scrapingbee/scrapingbee_test.go index 561c67eb24f2a..daf58ad727eff 100644 --- a/pkg/detectors/scrapingbee/scrapingbee_test.go +++ b/pkg/detectors/scrapingbee/scrapingbee_test.go @@ -4,12 +4,14 @@ package scrapingbee import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/screenshotapi/screenshotapi.go b/pkg/detectors/screenshotapi/screenshotapi.go index 6f2f91b582766..c88ea064970b8 100644 --- a/pkg/detectors/screenshotapi/screenshotapi.go +++ b/pkg/detectors/screenshotapi/screenshotapi.go @@ -1,13 +1,14 @@ package screenshotapi import ( - "context" "encoding/json" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/screenshotapi/screenshotapi_test.go b/pkg/detectors/screenshotapi/screenshotapi_test.go index 34601e49bfedd..3ea95a8ccc7ef 100644 --- a/pkg/detectors/screenshotapi/screenshotapi_test.go +++ b/pkg/detectors/screenshotapi/screenshotapi_test.go @@ -4,12 +4,14 @@ package screenshotapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/screenshotlayer/screenshotlayer.go b/pkg/detectors/screenshotlayer/screenshotlayer.go index e06f7291fd28a..bcd1845722b3b 100644 --- a/pkg/detectors/screenshotlayer/screenshotlayer.go +++ b/pkg/detectors/screenshotlayer/screenshotlayer.go @@ -1,8 +1,8 @@ package screenshotlayer import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "io" "net/http" "regexp" diff --git a/pkg/detectors/screenshotlayer/screenshotlayer_test.go b/pkg/detectors/screenshotlayer/screenshotlayer_test.go index 15f03a2d768cc..16263ee1d4d6c 100644 --- a/pkg/detectors/screenshotlayer/screenshotlayer_test.go +++ b/pkg/detectors/screenshotlayer/screenshotlayer_test.go @@ -4,12 +4,14 @@ package screenshotlayer import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/scrutinizerci/scrutinizerci.go b/pkg/detectors/scrutinizerci/scrutinizerci.go index 9399992cffdf6..9647d9a9150e7 100644 --- a/pkg/detectors/scrutinizerci/scrutinizerci.go +++ b/pkg/detectors/scrutinizerci/scrutinizerci.go @@ -1,11 +1,12 @@ package scrutinizerci import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/scrutinizerci/scrutinizerci_test.go b/pkg/detectors/scrutinizerci/scrutinizerci_test.go index f43c24e8e29d1..eeab8909f848f 100644 --- a/pkg/detectors/scrutinizerci/scrutinizerci_test.go +++ b/pkg/detectors/scrutinizerci/scrutinizerci_test.go @@ -4,12 +4,14 @@ package scrutinizerci import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/securitytrails/securitytrails.go b/pkg/detectors/securitytrails/securitytrails.go index c0b79e0bf4116..b6bf99d8833fb 100644 --- a/pkg/detectors/securitytrails/securitytrails.go +++ b/pkg/detectors/securitytrails/securitytrails.go @@ -1,11 +1,12 @@ package securitytrails import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/securitytrails/securitytrails_test.go b/pkg/detectors/securitytrails/securitytrails_test.go index 95202372034b1..523e167bed847 100644 --- a/pkg/detectors/securitytrails/securitytrails_test.go +++ b/pkg/detectors/securitytrails/securitytrails_test.go @@ -4,12 +4,14 @@ package securitytrails import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/segmentapikey/segmentapikey.go b/pkg/detectors/segmentapikey/segmentapikey.go index d55a0d897ccb8..1ee4c147525a2 100644 --- a/pkg/detectors/segmentapikey/segmentapikey.go +++ b/pkg/detectors/segmentapikey/segmentapikey.go @@ -1,12 +1,13 @@ package segmentapikey import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/segmentapikey/segmentapikey_test.go b/pkg/detectors/segmentapikey/segmentapikey_test.go index 133f928538853..f3a13664ade69 100644 --- a/pkg/detectors/segmentapikey/segmentapikey_test.go +++ b/pkg/detectors/segmentapikey/segmentapikey_test.go @@ -4,12 +4,14 @@ package segmentapikey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/selectpdf/selectpdf.go b/pkg/detectors/selectpdf/selectpdf.go index 2a80d4c3bcfef..9bef3efc51b2d 100644 --- a/pkg/detectors/selectpdf/selectpdf.go +++ b/pkg/detectors/selectpdf/selectpdf.go @@ -1,13 +1,14 @@ package selectpdf import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/selectpdf/selectpdf_test.go b/pkg/detectors/selectpdf/selectpdf_test.go index 6757a7f1fc0a3..7ca472adfda38 100644 --- a/pkg/detectors/selectpdf/selectpdf_test.go +++ b/pkg/detectors/selectpdf/selectpdf_test.go @@ -4,12 +4,14 @@ package selectpdf import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/semaphore/semaphore.go b/pkg/detectors/semaphore/semaphore.go index 073abb867d792..6e8865cfe89f8 100644 --- a/pkg/detectors/semaphore/semaphore.go +++ b/pkg/detectors/semaphore/semaphore.go @@ -1,13 +1,14 @@ package semaphore import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/semaphore/semaphore_test.go b/pkg/detectors/semaphore/semaphore_test.go index 116535e06a1dc..34fb4f74e3b5a 100644 --- a/pkg/detectors/semaphore/semaphore_test.go +++ b/pkg/detectors/semaphore/semaphore_test.go @@ -4,12 +4,14 @@ package semaphore import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sendbird/sendbird.go b/pkg/detectors/sendbird/sendbird.go index ee5c253ac3d0e..998a6bf019971 100644 --- a/pkg/detectors/sendbird/sendbird.go +++ b/pkg/detectors/sendbird/sendbird.go @@ -1,13 +1,14 @@ package sendbird import ( - "context" "encoding/json" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sendbird/sendbird_test.go b/pkg/detectors/sendbird/sendbird_test.go index b848498694d77..805e83e28faed 100644 --- a/pkg/detectors/sendbird/sendbird_test.go +++ b/pkg/detectors/sendbird/sendbird_test.go @@ -4,13 +4,15 @@ package sendbird import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" + "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/sendbirdorganizationapi/sendbirdorganizationapi.go b/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go index aa927cadbeef8..831859ef07397 100644 --- a/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go +++ b/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go @@ -1,12 +1,13 @@ package sendbirdorganizationapi import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sendbirdorganizationapi/sendbirdorganizationapi_test.go b/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi_test.go index 7d1b856ad12a4..8f0bc93676d25 100644 --- a/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi_test.go +++ b/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi_test.go @@ -4,11 +4,12 @@ package sendbirdorganizationapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/sendgrid/sendgrid.go b/pkg/detectors/sendgrid/sendgrid.go index eb6fbc5d1338f..dd8969ea8aaef 100644 --- a/pkg/detectors/sendgrid/sendgrid.go +++ b/pkg/detectors/sendgrid/sendgrid.go @@ -1,12 +1,13 @@ package sendgrid import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" diff --git a/pkg/detectors/sendgrid/sendgrid_test.go b/pkg/detectors/sendgrid/sendgrid_test.go index 490636ec2cf5d..6f8510fee4aaa 100644 --- a/pkg/detectors/sendgrid/sendgrid_test.go +++ b/pkg/detectors/sendgrid/sendgrid_test.go @@ -4,13 +4,15 @@ package sendgrid import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" + "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/sendinbluev2/sendinbluev2.go b/pkg/detectors/sendinbluev2/sendinbluev2.go index 69473743893fc..4933b1cb83456 100644 --- a/pkg/detectors/sendinbluev2/sendinbluev2.go +++ b/pkg/detectors/sendinbluev2/sendinbluev2.go @@ -1,11 +1,12 @@ package sendinbluev2 import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sendinbluev2/sendinbluev2_test.go b/pkg/detectors/sendinbluev2/sendinbluev2_test.go index 0e3546a77b21a..79f9bc6947ab0 100644 --- a/pkg/detectors/sendinbluev2/sendinbluev2_test.go +++ b/pkg/detectors/sendinbluev2/sendinbluev2_test.go @@ -4,11 +4,12 @@ package sendinbluev2 import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sentrytoken/sentrytoken.go b/pkg/detectors/sentrytoken/sentrytoken.go index 97ac3a15396fc..317b3195ea013 100644 --- a/pkg/detectors/sentrytoken/sentrytoken.go +++ b/pkg/detectors/sentrytoken/sentrytoken.go @@ -1,7 +1,6 @@ package sentrytoken import ( - "context" "encoding/json" "errors" "fmt" @@ -10,6 +9,8 @@ import ( "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sentrytoken/sentrytoken_test.go b/pkg/detectors/sentrytoken/sentrytoken_test.go index 44a9324f2965b..f22e46fc0e3c0 100644 --- a/pkg/detectors/sentrytoken/sentrytoken_test.go +++ b/pkg/detectors/sentrytoken/sentrytoken_test.go @@ -4,11 +4,12 @@ package sentrytoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/serphouse/serphouse.go b/pkg/detectors/serphouse/serphouse.go index 09a330a8bc343..c27108bdeeed2 100644 --- a/pkg/detectors/serphouse/serphouse.go +++ b/pkg/detectors/serphouse/serphouse.go @@ -1,12 +1,13 @@ package serphouse import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/serphouse/serphouse_test.go b/pkg/detectors/serphouse/serphouse_test.go index 9182a9e4c4a7d..ef2c94d4927eb 100644 --- a/pkg/detectors/serphouse/serphouse_test.go +++ b/pkg/detectors/serphouse/serphouse_test.go @@ -4,12 +4,14 @@ package serphouse import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/serpstack/serpstack.go b/pkg/detectors/serpstack/serpstack.go index 7b643b1aa9d85..54318927d7306 100644 --- a/pkg/detectors/serpstack/serpstack.go +++ b/pkg/detectors/serpstack/serpstack.go @@ -1,7 +1,6 @@ package serpstack import ( - "context" "fmt" "io" "net/http" @@ -9,6 +8,8 @@ import ( "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/serpstack/serpstack_test.go b/pkg/detectors/serpstack/serpstack_test.go index 84cca277c288c..6ed505c33fd35 100644 --- a/pkg/detectors/serpstack/serpstack_test.go +++ b/pkg/detectors/serpstack/serpstack_test.go @@ -4,11 +4,12 @@ package serpstack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sheety/sheety.go b/pkg/detectors/sheety/sheety.go index c2c12e0e1bee9..d02df1e1e84c4 100644 --- a/pkg/detectors/sheety/sheety.go +++ b/pkg/detectors/sheety/sheety.go @@ -1,12 +1,13 @@ package sheety import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sheety/sheety_test.go b/pkg/detectors/sheety/sheety_test.go index d79b45a5fd085..96f2416e4856a 100644 --- a/pkg/detectors/sheety/sheety_test.go +++ b/pkg/detectors/sheety/sheety_test.go @@ -4,12 +4,14 @@ package sheety import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sherpadesk/sherpadesk.go b/pkg/detectors/sherpadesk/sherpadesk.go index fa9039a4fd7ac..b8d041fb95f9a 100644 --- a/pkg/detectors/sherpadesk/sherpadesk.go +++ b/pkg/detectors/sherpadesk/sherpadesk.go @@ -1,13 +1,14 @@ package sherpadesk import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sherpadesk/sherpadesk_test.go b/pkg/detectors/sherpadesk/sherpadesk_test.go index c99dd325da8bc..10c681500a31d 100644 --- a/pkg/detectors/sherpadesk/sherpadesk_test.go +++ b/pkg/detectors/sherpadesk/sherpadesk_test.go @@ -4,12 +4,14 @@ package sherpadesk import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/shipday/shipday.go b/pkg/detectors/shipday/shipday.go index 278f87b1078be..69ef68b6e355c 100644 --- a/pkg/detectors/shipday/shipday.go +++ b/pkg/detectors/shipday/shipday.go @@ -1,12 +1,13 @@ package shipday import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/shipday/shipday_test.go b/pkg/detectors/shipday/shipday_test.go index c6cc50bf318e8..a4c3b8c081ae5 100644 --- a/pkg/detectors/shipday/shipday_test.go +++ b/pkg/detectors/shipday/shipday_test.go @@ -4,12 +4,14 @@ package shipday import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/shodankey/shodankey.go b/pkg/detectors/shodankey/shodankey.go index c6600151cc9d7..7b916acd1ef0e 100644 --- a/pkg/detectors/shodankey/shodankey.go +++ b/pkg/detectors/shodankey/shodankey.go @@ -1,13 +1,14 @@ package shodankey import ( - "context" "encoding/json" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/shodankey/shodankey_test.go b/pkg/detectors/shodankey/shodankey_test.go index d9c730cee74d8..16ae92dcdfd2b 100644 --- a/pkg/detectors/shodankey/shodankey_test.go +++ b/pkg/detectors/shodankey/shodankey_test.go @@ -4,11 +4,12 @@ package shodankey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/shopify/shopify.go b/pkg/detectors/shopify/shopify.go index bca4636ce92f5..927e634184f24 100644 --- a/pkg/detectors/shopify/shopify.go +++ b/pkg/detectors/shopify/shopify.go @@ -1,12 +1,13 @@ package shopify import ( - "context" "encoding/json" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/shopify/shopify_test.go b/pkg/detectors/shopify/shopify_test.go index 5dfd2ba22f1b0..df4d87f7957b4 100644 --- a/pkg/detectors/shopify/shopify_test.go +++ b/pkg/detectors/shopify/shopify_test.go @@ -1,12 +1,14 @@ package shopify import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/shortcut/shortcut.go b/pkg/detectors/shortcut/shortcut.go index f5032853f9453..088319b117d99 100644 --- a/pkg/detectors/shortcut/shortcut.go +++ b/pkg/detectors/shortcut/shortcut.go @@ -1,12 +1,14 @@ package shortcut import ( - "context" - "github.com/go-errors/errors" "net/http" "regexp" "strings" + "github.com/go-errors/errors" + + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/shortcut/shortcut_test.go b/pkg/detectors/shortcut/shortcut_test.go index c477270db82e5..942b3f8d27633 100644 --- a/pkg/detectors/shortcut/shortcut_test.go +++ b/pkg/detectors/shortcut/shortcut_test.go @@ -4,11 +4,12 @@ package shortcut import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/shotstack/shotstack.go b/pkg/detectors/shotstack/shotstack.go index 2cd96dd6ea93b..665d437f9e526 100644 --- a/pkg/detectors/shotstack/shotstack.go +++ b/pkg/detectors/shotstack/shotstack.go @@ -1,11 +1,12 @@ package shotstack import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/shotstack/shotstack_test.go b/pkg/detectors/shotstack/shotstack_test.go index 5a2ec0483369e..c654c714e3f70 100644 --- a/pkg/detectors/shotstack/shotstack_test.go +++ b/pkg/detectors/shotstack/shotstack_test.go @@ -4,12 +4,14 @@ package shotstack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/shutterstock/shutterstock.go b/pkg/detectors/shutterstock/shutterstock.go index d657c209e8521..bd4d243071f18 100644 --- a/pkg/detectors/shutterstock/shutterstock.go +++ b/pkg/detectors/shutterstock/shutterstock.go @@ -1,11 +1,12 @@ package shutterstock import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/shutterstock/shutterstock_test.go b/pkg/detectors/shutterstock/shutterstock_test.go index 00fbe034fecbf..dc2680344c678 100644 --- a/pkg/detectors/shutterstock/shutterstock_test.go +++ b/pkg/detectors/shutterstock/shutterstock_test.go @@ -4,12 +4,14 @@ package shutterstock import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/shutterstockoauth/shutterstockoauth.go b/pkg/detectors/shutterstockoauth/shutterstockoauth.go index 53e0a5fc429fd..249a0ed2bfa67 100644 --- a/pkg/detectors/shutterstockoauth/shutterstockoauth.go +++ b/pkg/detectors/shutterstockoauth/shutterstockoauth.go @@ -1,12 +1,13 @@ package shutterstockoauth import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/shutterstockoauth/shutterstockoauth_test.go b/pkg/detectors/shutterstockoauth/shutterstockoauth_test.go index d73d4771fd7cf..da291351bc6db 100644 --- a/pkg/detectors/shutterstockoauth/shutterstockoauth_test.go +++ b/pkg/detectors/shutterstockoauth/shutterstockoauth_test.go @@ -4,8 +4,8 @@ package shutterstockoauth import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/signable/signable.go b/pkg/detectors/signable/signable.go index d3e9c539afac7..afa9954f499e3 100644 --- a/pkg/detectors/signable/signable.go +++ b/pkg/detectors/signable/signable.go @@ -1,13 +1,14 @@ package signable import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/signable/signable_test.go b/pkg/detectors/signable/signable_test.go index 9287a53c8c65d..f316f229dccfa 100644 --- a/pkg/detectors/signable/signable_test.go +++ b/pkg/detectors/signable/signable_test.go @@ -4,12 +4,14 @@ package signable import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/signalwire/signalwire.go b/pkg/detectors/signalwire/signalwire.go index 95e6c756c5f62..d5041231d6241 100644 --- a/pkg/detectors/signalwire/signalwire.go +++ b/pkg/detectors/signalwire/signalwire.go @@ -1,13 +1,14 @@ package signalwire import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/signalwire/signalwire_test.go b/pkg/detectors/signalwire/signalwire_test.go index 50fc14142f1ff..a0372023eb5c7 100644 --- a/pkg/detectors/signalwire/signalwire_test.go +++ b/pkg/detectors/signalwire/signalwire_test.go @@ -4,12 +4,14 @@ package signalwire import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/signaturit/signaturit.go b/pkg/detectors/signaturit/signaturit.go index 626139a09e265..8817e921ed5c8 100644 --- a/pkg/detectors/signaturit/signaturit.go +++ b/pkg/detectors/signaturit/signaturit.go @@ -1,12 +1,13 @@ package signaturit import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/signaturit/signaturit_test.go b/pkg/detectors/signaturit/signaturit_test.go index b706d742e2592..faaacd11130c2 100644 --- a/pkg/detectors/signaturit/signaturit_test.go +++ b/pkg/detectors/signaturit/signaturit_test.go @@ -4,12 +4,14 @@ package signaturit import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/signupgenius/signupgenius.go b/pkg/detectors/signupgenius/signupgenius.go index ae9b40428d107..a4cf7d1fde926 100644 --- a/pkg/detectors/signupgenius/signupgenius.go +++ b/pkg/detectors/signupgenius/signupgenius.go @@ -1,11 +1,12 @@ package signupgenius import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/signupgenius/signupgenius_test.go b/pkg/detectors/signupgenius/signupgenius_test.go index ffb74e5298163..1ffbd0780eb0c 100644 --- a/pkg/detectors/signupgenius/signupgenius_test.go +++ b/pkg/detectors/signupgenius/signupgenius_test.go @@ -4,12 +4,14 @@ package signupgenius import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sigopt/sigopt.go b/pkg/detectors/sigopt/sigopt.go index 5fa5cf807ce27..0dfba78f18127 100644 --- a/pkg/detectors/sigopt/sigopt.go +++ b/pkg/detectors/sigopt/sigopt.go @@ -1,13 +1,14 @@ package sigopt import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sigopt/sigopt_test.go b/pkg/detectors/sigopt/sigopt_test.go index c461d56d0fc21..3f9174fc30053 100644 --- a/pkg/detectors/sigopt/sigopt_test.go +++ b/pkg/detectors/sigopt/sigopt_test.go @@ -4,12 +4,14 @@ package sigopt import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/simfin/simfin.go b/pkg/detectors/simfin/simfin.go index 139b6a5953fe6..68f295f04aeaa 100644 --- a/pkg/detectors/simfin/simfin.go +++ b/pkg/detectors/simfin/simfin.go @@ -1,13 +1,14 @@ package simfin import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/simfin/simfin_test.go b/pkg/detectors/simfin/simfin_test.go index 7ee417e72cd08..7ba8b476f6771 100644 --- a/pkg/detectors/simfin/simfin_test.go +++ b/pkg/detectors/simfin/simfin_test.go @@ -4,12 +4,14 @@ package simfin import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/simplesat/simplesat.go b/pkg/detectors/simplesat/simplesat.go index ec8aa9a259eda..361c0a809f113 100644 --- a/pkg/detectors/simplesat/simplesat.go +++ b/pkg/detectors/simplesat/simplesat.go @@ -1,11 +1,12 @@ package simplesat import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/simplesat/simplesat_test.go b/pkg/detectors/simplesat/simplesat_test.go index e00c0f31b1332..5c6d01c8d1457 100644 --- a/pkg/detectors/simplesat/simplesat_test.go +++ b/pkg/detectors/simplesat/simplesat_test.go @@ -4,11 +4,12 @@ package simplesat import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/simplynoted/simplynoted.go b/pkg/detectors/simplynoted/simplynoted.go index 8ad3b0bca170c..f04e1ff2be73c 100644 --- a/pkg/detectors/simplynoted/simplynoted.go +++ b/pkg/detectors/simplynoted/simplynoted.go @@ -1,12 +1,13 @@ package simplynoted import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/simplynoted/simplynoted_test.go b/pkg/detectors/simplynoted/simplynoted_test.go index aaf8f3ec83e68..6fca5dcb1a4a6 100644 --- a/pkg/detectors/simplynoted/simplynoted_test.go +++ b/pkg/detectors/simplynoted/simplynoted_test.go @@ -4,12 +4,14 @@ package simplynoted import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/simvoly/simvoly.go b/pkg/detectors/simvoly/simvoly.go index 7916444480ef5..f52a63987861d 100644 --- a/pkg/detectors/simvoly/simvoly.go +++ b/pkg/detectors/simvoly/simvoly.go @@ -1,12 +1,13 @@ package simvoly import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/simvoly/simvoly_test.go b/pkg/detectors/simvoly/simvoly_test.go index 99585908c2430..8edfdb1c7c2a3 100644 --- a/pkg/detectors/simvoly/simvoly_test.go +++ b/pkg/detectors/simvoly/simvoly_test.go @@ -4,12 +4,14 @@ package simvoly import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sinchmessage/sinchmessage.go b/pkg/detectors/sinchmessage/sinchmessage.go index 82571f21ad774..54294709f6ca7 100644 --- a/pkg/detectors/sinchmessage/sinchmessage.go +++ b/pkg/detectors/sinchmessage/sinchmessage.go @@ -1,12 +1,13 @@ package sinchmessage import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sinchmessage/sinchmessage_test.go b/pkg/detectors/sinchmessage/sinchmessage_test.go index 022f044196164..14891b59f40ea 100644 --- a/pkg/detectors/sinchmessage/sinchmessage_test.go +++ b/pkg/detectors/sinchmessage/sinchmessage_test.go @@ -4,12 +4,14 @@ package sinchmessage import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sirv/sirv.go b/pkg/detectors/sirv/sirv.go index f0a8f781211ab..14e658d208034 100644 --- a/pkg/detectors/sirv/sirv.go +++ b/pkg/detectors/sirv/sirv.go @@ -1,13 +1,14 @@ package sirv import ( - "context" "fmt" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sirv/sirv_test.go b/pkg/detectors/sirv/sirv_test.go index 1905f6a4fddde..a5bdad9df32c7 100644 --- a/pkg/detectors/sirv/sirv_test.go +++ b/pkg/detectors/sirv/sirv_test.go @@ -4,11 +4,12 @@ package sirv import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/siteleaf/siteleaf.go b/pkg/detectors/siteleaf/siteleaf.go index 6c8cea8dfd165..e3db41fee0e42 100644 --- a/pkg/detectors/siteleaf/siteleaf.go +++ b/pkg/detectors/siteleaf/siteleaf.go @@ -1,13 +1,14 @@ package siteleaf import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/siteleaf/siteleaf_test.go b/pkg/detectors/siteleaf/siteleaf_test.go index 64da43b0645ba..dce632e80ae4e 100644 --- a/pkg/detectors/siteleaf/siteleaf_test.go +++ b/pkg/detectors/siteleaf/siteleaf_test.go @@ -4,12 +4,14 @@ package siteleaf import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/skrappio/skrappio.go b/pkg/detectors/skrappio/skrappio.go index 0634170dde9f8..54e788600d28a 100644 --- a/pkg/detectors/skrappio/skrappio.go +++ b/pkg/detectors/skrappio/skrappio.go @@ -1,11 +1,12 @@ package skrappio import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/skrappio/skrappio_test.go b/pkg/detectors/skrappio/skrappio_test.go index a1520533d0f7e..1bc957dc8c8d5 100644 --- a/pkg/detectors/skrappio/skrappio_test.go +++ b/pkg/detectors/skrappio/skrappio_test.go @@ -4,12 +4,14 @@ package skrappio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/skybiometry/skybiometry.go b/pkg/detectors/skybiometry/skybiometry.go index ce1d7a11d5766..60a2c25512b2f 100644 --- a/pkg/detectors/skybiometry/skybiometry.go +++ b/pkg/detectors/skybiometry/skybiometry.go @@ -1,12 +1,13 @@ package skybiometry import ( - "context" "net/http" "net/url" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/skybiometry/skybiometry_test.go b/pkg/detectors/skybiometry/skybiometry_test.go index 2d829723fcceb..11ddbf92f1ba1 100644 --- a/pkg/detectors/skybiometry/skybiometry_test.go +++ b/pkg/detectors/skybiometry/skybiometry_test.go @@ -4,12 +4,14 @@ package skybiometry import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/slack/slack.go b/pkg/detectors/slack/slack.go index 064c1309b32c2..13647a79e1dcc 100644 --- a/pkg/detectors/slack/slack.go +++ b/pkg/detectors/slack/slack.go @@ -1,12 +1,13 @@ package slack import ( - "context" "encoding/json" "fmt" "net/http" "regexp" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" diff --git a/pkg/detectors/slack/slack_test.go b/pkg/detectors/slack/slack_test.go index 28fd42097e354..25ed23876f427 100644 --- a/pkg/detectors/slack/slack_test.go +++ b/pkg/detectors/slack/slack_test.go @@ -4,11 +4,12 @@ package slack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/slackwebhook/slackwebhook.go b/pkg/detectors/slackwebhook/slackwebhook.go index c895c46d959d3..de78d1f7c6b78 100644 --- a/pkg/detectors/slackwebhook/slackwebhook.go +++ b/pkg/detectors/slackwebhook/slackwebhook.go @@ -2,13 +2,14 @@ package slackwebhook import ( "bytes" - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/slackwebhook/slackwebhook_test.go b/pkg/detectors/slackwebhook/slackwebhook_test.go index 706b5b62e25b7..f0c44538278f3 100644 --- a/pkg/detectors/slackwebhook/slackwebhook_test.go +++ b/pkg/detectors/slackwebhook/slackwebhook_test.go @@ -4,11 +4,12 @@ package slackwebhook import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/smartsheets/smartsheets.go b/pkg/detectors/smartsheets/smartsheets.go index efbc5c25681d6..bb5f688a48d2a 100644 --- a/pkg/detectors/smartsheets/smartsheets.go +++ b/pkg/detectors/smartsheets/smartsheets.go @@ -1,12 +1,13 @@ package smartsheets import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/smartsheets/smartsheets_test.go b/pkg/detectors/smartsheets/smartsheets_test.go index 81facebc8e367..8c7bc192406bd 100644 --- a/pkg/detectors/smartsheets/smartsheets_test.go +++ b/pkg/detectors/smartsheets/smartsheets_test.go @@ -4,12 +4,14 @@ package smartsheets import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/smartystreets/smartystreets.go b/pkg/detectors/smartystreets/smartystreets.go index ad70f3d697f41..05725aed71ab3 100644 --- a/pkg/detectors/smartystreets/smartystreets.go +++ b/pkg/detectors/smartystreets/smartystreets.go @@ -1,12 +1,13 @@ package smartystreets import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/smartystreets/smartystreets_test.go b/pkg/detectors/smartystreets/smartystreets_test.go index b293f5914ebdd..b9a58fe7a837c 100644 --- a/pkg/detectors/smartystreets/smartystreets_test.go +++ b/pkg/detectors/smartystreets/smartystreets_test.go @@ -4,12 +4,14 @@ package smartystreets import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/smooch/smooch.go b/pkg/detectors/smooch/smooch.go index b967f2e5cc2cf..b6f2d1fe75bd0 100644 --- a/pkg/detectors/smooch/smooch.go +++ b/pkg/detectors/smooch/smooch.go @@ -1,13 +1,14 @@ package smooch import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/smooch/smooch_test.go b/pkg/detectors/smooch/smooch_test.go index 7c5030306d0a0..6d958df579827 100644 --- a/pkg/detectors/smooch/smooch_test.go +++ b/pkg/detectors/smooch/smooch_test.go @@ -4,12 +4,14 @@ package smooch import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/snipcart/snipcart.go b/pkg/detectors/snipcart/snipcart.go index 748116fb5aa40..b524871eec6b4 100644 --- a/pkg/detectors/snipcart/snipcart.go +++ b/pkg/detectors/snipcart/snipcart.go @@ -1,13 +1,14 @@ package snipcart import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/snipcart/snipcart_test.go b/pkg/detectors/snipcart/snipcart_test.go index be3328a7f9698..75d1ed6c9c4ad 100644 --- a/pkg/detectors/snipcart/snipcart_test.go +++ b/pkg/detectors/snipcart/snipcart_test.go @@ -4,12 +4,14 @@ package snipcart import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/snowflake/snowflake.go b/pkg/detectors/snowflake/snowflake.go index 0b837f9e10657..7a4674e8f6998 100644 --- a/pkg/detectors/snowflake/snowflake.go +++ b/pkg/detectors/snowflake/snowflake.go @@ -1,14 +1,16 @@ package snowflake import ( - "context" "database/sql" "fmt" "regexp" "strings" "unicode" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + _ "github.com/snowflakedb/gosnowflake" + "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/snowflake/snowflake_test.go b/pkg/detectors/snowflake/snowflake_test.go index 322d679b18671..660e21765f3ba 100644 --- a/pkg/detectors/snowflake/snowflake_test.go +++ b/pkg/detectors/snowflake/snowflake_test.go @@ -4,11 +4,12 @@ package snowflake import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/snykkey/snykkey.go b/pkg/detectors/snykkey/snykkey.go index 3a7b49830b482..7d7b42f885721 100644 --- a/pkg/detectors/snykkey/snykkey.go +++ b/pkg/detectors/snykkey/snykkey.go @@ -1,12 +1,13 @@ package snykkey import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/snykkey/snykkey_test.go b/pkg/detectors/snykkey/snykkey_test.go index 215677bb35dfa..20708c647f21c 100644 --- a/pkg/detectors/snykkey/snykkey_test.go +++ b/pkg/detectors/snykkey/snykkey_test.go @@ -4,12 +4,14 @@ package snykkey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sonarcloud/sonarcloud.go b/pkg/detectors/sonarcloud/sonarcloud.go index 1b45f18a7eb34..a5657713a33e5 100644 --- a/pkg/detectors/sonarcloud/sonarcloud.go +++ b/pkg/detectors/sonarcloud/sonarcloud.go @@ -1,12 +1,13 @@ package sonarcloud import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sonarcloud/sonarcloud_test.go b/pkg/detectors/sonarcloud/sonarcloud_test.go index 2d1720b2cd94e..4e5bf73e14fc4 100644 --- a/pkg/detectors/sonarcloud/sonarcloud_test.go +++ b/pkg/detectors/sonarcloud/sonarcloud_test.go @@ -4,12 +4,14 @@ package sonarcloud import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sourcegraph/sourcegraph.go b/pkg/detectors/sourcegraph/sourcegraph.go index 7580eb35e9186..db980c4c21b0f 100644 --- a/pkg/detectors/sourcegraph/sourcegraph.go +++ b/pkg/detectors/sourcegraph/sourcegraph.go @@ -1,12 +1,13 @@ package sourcegraph import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sourcegraph/sourcegraph_test.go b/pkg/detectors/sourcegraph/sourcegraph_test.go index 83b0de6f7038b..2debb1c055b86 100644 --- a/pkg/detectors/sourcegraph/sourcegraph_test.go +++ b/pkg/detectors/sourcegraph/sourcegraph_test.go @@ -4,11 +4,12 @@ package sourcegraph import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/sourcegraphcody/sourcegraphcody.go b/pkg/detectors/sourcegraphcody/sourcegraphcody.go index 08052cc0f8977..186115324533e 100644 --- a/pkg/detectors/sourcegraphcody/sourcegraphcody.go +++ b/pkg/detectors/sourcegraphcody/sourcegraphcody.go @@ -1,12 +1,13 @@ package sourcegraphcody import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sourcegraphcody/sourcegraphcody_test.go b/pkg/detectors/sourcegraphcody/sourcegraphcody_test.go index 2445ebfa2e7b6..871fae1a2049f 100644 --- a/pkg/detectors/sourcegraphcody/sourcegraphcody_test.go +++ b/pkg/detectors/sourcegraphcody/sourcegraphcody_test.go @@ -4,8 +4,8 @@ package sourcegraphcody import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/sparkpost/sparkpost.go b/pkg/detectors/sparkpost/sparkpost.go index ded611d2077c1..d379ed731385d 100644 --- a/pkg/detectors/sparkpost/sparkpost.go +++ b/pkg/detectors/sparkpost/sparkpost.go @@ -1,11 +1,12 @@ package sparkpost import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sparkpost/sparkpost_test.go b/pkg/detectors/sparkpost/sparkpost_test.go index f82992dda08ea..1da78920e9ee6 100644 --- a/pkg/detectors/sparkpost/sparkpost_test.go +++ b/pkg/detectors/sparkpost/sparkpost_test.go @@ -4,12 +4,14 @@ package sparkpost import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/speechtextai/speechtextai.go b/pkg/detectors/speechtextai/speechtextai.go index 2703fb0c8e994..8491460970dd3 100644 --- a/pkg/detectors/speechtextai/speechtextai.go +++ b/pkg/detectors/speechtextai/speechtextai.go @@ -1,12 +1,13 @@ package speechtextai import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/speechtextai/speechtextai_test.go b/pkg/detectors/speechtextai/speechtextai_test.go index f759c6ce9b472..f1a6f6bdc3de7 100644 --- a/pkg/detectors/speechtextai/speechtextai_test.go +++ b/pkg/detectors/speechtextai/speechtextai_test.go @@ -4,12 +4,14 @@ package speechtextai import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go b/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go index d9b2f56b3a5ae..a99432975c7e9 100644 --- a/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go +++ b/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go @@ -1,11 +1,12 @@ package splunkobservabilitytoken import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/splunkobservabilitytoken/splunkobservabilitytoken_test.go b/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken_test.go index 6d172f8faa423..0b31dbcfc2139 100644 --- a/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken_test.go +++ b/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken_test.go @@ -4,8 +4,8 @@ package splunkobservabilitytoken import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/spoonacular/spoonacular.go b/pkg/detectors/spoonacular/spoonacular.go index 0dcf9caa3df53..c630938e64199 100644 --- a/pkg/detectors/spoonacular/spoonacular.go +++ b/pkg/detectors/spoonacular/spoonacular.go @@ -1,12 +1,13 @@ package spoonacular import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/spoonacular/spoonacular_test.go b/pkg/detectors/spoonacular/spoonacular_test.go index f4a786aca9e9b..697a154d403a8 100644 --- a/pkg/detectors/spoonacular/spoonacular_test.go +++ b/pkg/detectors/spoonacular/spoonacular_test.go @@ -4,12 +4,14 @@ package spoonacular import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sportsmonk/sportsmonk.go b/pkg/detectors/sportsmonk/sportsmonk.go index 2ea8030a51221..26a953708f656 100644 --- a/pkg/detectors/sportsmonk/sportsmonk.go +++ b/pkg/detectors/sportsmonk/sportsmonk.go @@ -1,11 +1,12 @@ package sportsmonk import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sportsmonk/sportsmonk_test.go b/pkg/detectors/sportsmonk/sportsmonk_test.go index a04837313d5a5..4f634ba27bedf 100644 --- a/pkg/detectors/sportsmonk/sportsmonk_test.go +++ b/pkg/detectors/sportsmonk/sportsmonk_test.go @@ -4,12 +4,14 @@ package sportsmonk import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/spotifykey/spotifykey.go b/pkg/detectors/spotifykey/spotifykey.go index e123c3adb40e3..a90046524d569 100644 --- a/pkg/detectors/spotifykey/spotifykey.go +++ b/pkg/detectors/spotifykey/spotifykey.go @@ -1,9 +1,10 @@ package spotifykey import ( - "context" "golang.org/x/oauth2" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "regexp" "strings" diff --git a/pkg/detectors/spotifykey/spotifykey_test.go b/pkg/detectors/spotifykey/spotifykey_test.go index 3aff9fe77336a..c079d5d747fe1 100644 --- a/pkg/detectors/spotifykey/spotifykey_test.go +++ b/pkg/detectors/spotifykey/spotifykey_test.go @@ -4,12 +4,14 @@ package spotifykey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sqlserver/sqlserver.go b/pkg/detectors/sqlserver/sqlserver.go index 02c2ebaa71685..70fbcbb8efaaa 100644 --- a/pkg/detectors/sqlserver/sqlserver.go +++ b/pkg/detectors/sqlserver/sqlserver.go @@ -1,12 +1,14 @@ package sqlserver import ( - "context" "database/sql" "regexp" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + mssql "github.com/denisenkom/go-mssqldb" "github.com/denisenkom/go-mssqldb/msdsn" + "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/sqlserver/sqlserver_integration_test.go b/pkg/detectors/sqlserver/sqlserver_integration_test.go index 6e7fcac3cdeeb..4e93283dc5f01 100644 --- a/pkg/detectors/sqlserver/sqlserver_integration_test.go +++ b/pkg/detectors/sqlserver/sqlserver_integration_test.go @@ -5,13 +5,14 @@ package sqlserver import ( "bytes" - "context" "errors" "os/exec" "strings" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/sqlserver/sqlserver_test.go b/pkg/detectors/sqlserver/sqlserver_test.go index cb428f4185da1..49bfb04d9e532 100644 --- a/pkg/detectors/sqlserver/sqlserver_test.go +++ b/pkg/detectors/sqlserver/sqlserver_test.go @@ -4,11 +4,12 @@ package sqlserver import ( - "context" "errors" "fmt" "testing" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/denisenkom/go-mssqldb/msdsn" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/square/square.go b/pkg/detectors/square/square.go index 481ddb9ff5f12..c37fa6429d0f7 100644 --- a/pkg/detectors/square/square.go +++ b/pkg/detectors/square/square.go @@ -1,12 +1,13 @@ package square import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" diff --git a/pkg/detectors/square/square_test.go b/pkg/detectors/square/square_test.go index 913cf9d0ebc0e..b1a789f15a348 100644 --- a/pkg/detectors/square/square_test.go +++ b/pkg/detectors/square/square_test.go @@ -4,12 +4,14 @@ package square import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/squareapp/squareapp.go b/pkg/detectors/squareapp/squareapp.go index 6b388fbc29065..24491bbf59f4d 100644 --- a/pkg/detectors/squareapp/squareapp.go +++ b/pkg/detectors/squareapp/squareapp.go @@ -2,13 +2,14 @@ package squareapp import ( "bytes" - "context" "encoding/json" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/squareapp/squareapp_test.go b/pkg/detectors/squareapp/squareapp_test.go index ad9874c6fe345..bd2c90d5be180 100644 --- a/pkg/detectors/squareapp/squareapp_test.go +++ b/pkg/detectors/squareapp/squareapp_test.go @@ -4,12 +4,14 @@ package squareapp import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/squarespace/squarespace.go b/pkg/detectors/squarespace/squarespace.go index 174e66a44e4a9..f92996a4b8890 100644 --- a/pkg/detectors/squarespace/squarespace.go +++ b/pkg/detectors/squarespace/squarespace.go @@ -1,12 +1,13 @@ package squarespace import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/squarespace/squarespace_test.go b/pkg/detectors/squarespace/squarespace_test.go index 1874e5816f68a..4f27682da6d09 100644 --- a/pkg/detectors/squarespace/squarespace_test.go +++ b/pkg/detectors/squarespace/squarespace_test.go @@ -4,12 +4,14 @@ package squarespace import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/squareup/squareup.go b/pkg/detectors/squareup/squareup.go index 62497ed3f30a6..8348e97254599 100644 --- a/pkg/detectors/squareup/squareup.go +++ b/pkg/detectors/squareup/squareup.go @@ -1,12 +1,13 @@ package squareup import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/squareup/squareup_test.go b/pkg/detectors/squareup/squareup_test.go index fce1cce50664f..1ee3452a9b881 100644 --- a/pkg/detectors/squareup/squareup_test.go +++ b/pkg/detectors/squareup/squareup_test.go @@ -4,11 +4,12 @@ package squareup import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sslmate/sslmate.go b/pkg/detectors/sslmate/sslmate.go index 276e1ce346748..d17058fc085e1 100644 --- a/pkg/detectors/sslmate/sslmate.go +++ b/pkg/detectors/sslmate/sslmate.go @@ -1,12 +1,13 @@ package sslmate import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sslmate/sslmate_test.go b/pkg/detectors/sslmate/sslmate_test.go index 8244136b1fc8c..43cc0ebabefff 100644 --- a/pkg/detectors/sslmate/sslmate_test.go +++ b/pkg/detectors/sslmate/sslmate_test.go @@ -4,12 +4,14 @@ package sslmate import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/statuscake/statuscake.go b/pkg/detectors/statuscake/statuscake.go index 92640ca58e3ad..0180f77f68274 100644 --- a/pkg/detectors/statuscake/statuscake.go +++ b/pkg/detectors/statuscake/statuscake.go @@ -1,12 +1,13 @@ package statuscake import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/statuscake/statuscake_test.go b/pkg/detectors/statuscake/statuscake_test.go index 291347382cc67..d8a7318554f88 100644 --- a/pkg/detectors/statuscake/statuscake_test.go +++ b/pkg/detectors/statuscake/statuscake_test.go @@ -4,12 +4,14 @@ package statuscake import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/statuspage/statuspage.go b/pkg/detectors/statuspage/statuspage.go index acc01afb87d69..ddd661d311cb4 100644 --- a/pkg/detectors/statuspage/statuspage.go +++ b/pkg/detectors/statuspage/statuspage.go @@ -1,11 +1,12 @@ package statuspage import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/statuspage/statuspage_test.go b/pkg/detectors/statuspage/statuspage_test.go index f66e0a71d2aa8..251f6217b5e04 100644 --- a/pkg/detectors/statuspage/statuspage_test.go +++ b/pkg/detectors/statuspage/statuspage_test.go @@ -4,12 +4,14 @@ package statuspage import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/statuspal/statuspal.go b/pkg/detectors/statuspal/statuspal.go index 36d9b737ddf90..2737a513404ae 100644 --- a/pkg/detectors/statuspal/statuspal.go +++ b/pkg/detectors/statuspal/statuspal.go @@ -1,11 +1,12 @@ package statuspal import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/statuspal/statuspal_test.go b/pkg/detectors/statuspal/statuspal_test.go index 8f43e61416b0e..17c03bf3a21ee 100644 --- a/pkg/detectors/statuspal/statuspal_test.go +++ b/pkg/detectors/statuspal/statuspal_test.go @@ -4,12 +4,14 @@ package statuspal import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/stitchdata/stitchdata.go b/pkg/detectors/stitchdata/stitchdata.go index c66ef7a08a9a8..2e13efa7ff361 100644 --- a/pkg/detectors/stitchdata/stitchdata.go +++ b/pkg/detectors/stitchdata/stitchdata.go @@ -1,12 +1,13 @@ package stitchdata import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/stitchdata/stitchdata_test.go b/pkg/detectors/stitchdata/stitchdata_test.go index 42120ff0379d6..46d5fcabcbf78 100644 --- a/pkg/detectors/stitchdata/stitchdata_test.go +++ b/pkg/detectors/stitchdata/stitchdata_test.go @@ -4,12 +4,14 @@ package stitchdata import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/stockdata/stockdata.go b/pkg/detectors/stockdata/stockdata.go index d105d35286c07..fffdb263b594d 100644 --- a/pkg/detectors/stockdata/stockdata.go +++ b/pkg/detectors/stockdata/stockdata.go @@ -1,11 +1,12 @@ package stockdata import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/stockdata/stockdata_test.go b/pkg/detectors/stockdata/stockdata_test.go index dd4654864b268..2f281ba965437 100644 --- a/pkg/detectors/stockdata/stockdata_test.go +++ b/pkg/detectors/stockdata/stockdata_test.go @@ -4,12 +4,14 @@ package stockdata import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/storecove/storecove.go b/pkg/detectors/storecove/storecove.go index 0ea29d40f4203..20a7a94c46b5d 100644 --- a/pkg/detectors/storecove/storecove.go +++ b/pkg/detectors/storecove/storecove.go @@ -1,12 +1,13 @@ package storecove import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/storecove/storecove_test.go b/pkg/detectors/storecove/storecove_test.go index 42013daad65f1..32185663ec911 100644 --- a/pkg/detectors/storecove/storecove_test.go +++ b/pkg/detectors/storecove/storecove_test.go @@ -4,12 +4,14 @@ package storecove import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/stormboard/stormboard.go b/pkg/detectors/stormboard/stormboard.go index 96996dfe2d64f..7a717d6b46db8 100644 --- a/pkg/detectors/stormboard/stormboard.go +++ b/pkg/detectors/stormboard/stormboard.go @@ -1,11 +1,12 @@ package stormboard import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/stormboard/stormboard_test.go b/pkg/detectors/stormboard/stormboard_test.go index 2f1618fa1d95e..a04ec98847330 100644 --- a/pkg/detectors/stormboard/stormboard_test.go +++ b/pkg/detectors/stormboard/stormboard_test.go @@ -4,12 +4,14 @@ package stormboard import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/stormglass/stormglass.go b/pkg/detectors/stormglass/stormglass.go index cc21564fbdbe1..10ad4b6b75ea0 100644 --- a/pkg/detectors/stormglass/stormglass.go +++ b/pkg/detectors/stormglass/stormglass.go @@ -1,11 +1,12 @@ package stormglass import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/stormglass/stormglass_test.go b/pkg/detectors/stormglass/stormglass_test.go index d4474a05febb0..b99e1dcea8638 100644 --- a/pkg/detectors/stormglass/stormglass_test.go +++ b/pkg/detectors/stormglass/stormglass_test.go @@ -4,12 +4,14 @@ package stormglass import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/storyblok/storyblok.go b/pkg/detectors/storyblok/storyblok.go index 938cf24e891b9..88bc3524c9bcc 100644 --- a/pkg/detectors/storyblok/storyblok.go +++ b/pkg/detectors/storyblok/storyblok.go @@ -1,11 +1,12 @@ package storyblok import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/storyblok/storyblok_test.go b/pkg/detectors/storyblok/storyblok_test.go index 85c41035a600f..ca9446ecb8d68 100644 --- a/pkg/detectors/storyblok/storyblok_test.go +++ b/pkg/detectors/storyblok/storyblok_test.go @@ -4,12 +4,14 @@ package storyblok import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/storychief/storychief.go b/pkg/detectors/storychief/storychief.go index dbc8b2dd88b22..b52e567b68faf 100644 --- a/pkg/detectors/storychief/storychief.go +++ b/pkg/detectors/storychief/storychief.go @@ -1,12 +1,13 @@ package storychief import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/storychief/storychief_test.go b/pkg/detectors/storychief/storychief_test.go index dade17d2a6bec..100ae803cbbe9 100644 --- a/pkg/detectors/storychief/storychief_test.go +++ b/pkg/detectors/storychief/storychief_test.go @@ -4,11 +4,12 @@ package storychief import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/strava/strava.go b/pkg/detectors/strava/strava.go index 50e934015cfb1..472318ded773e 100644 --- a/pkg/detectors/strava/strava.go +++ b/pkg/detectors/strava/strava.go @@ -1,11 +1,12 @@ package strava import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/strava/strava_test.go b/pkg/detectors/strava/strava_test.go index 93b10ddea2b09..0d4f8ab4d9383 100644 --- a/pkg/detectors/strava/strava_test.go +++ b/pkg/detectors/strava/strava_test.go @@ -4,12 +4,14 @@ package strava import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/streak/streak.go b/pkg/detectors/streak/streak.go index d473e405db68a..94859483ed2df 100644 --- a/pkg/detectors/streak/streak.go +++ b/pkg/detectors/streak/streak.go @@ -1,13 +1,14 @@ package streak import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/streak/streak_test.go b/pkg/detectors/streak/streak_test.go index a9d256ae06ff5..90bf16984a547 100644 --- a/pkg/detectors/streak/streak_test.go +++ b/pkg/detectors/streak/streak_test.go @@ -4,12 +4,14 @@ package streak import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/stripe/stripe.go b/pkg/detectors/stripe/stripe.go index 98c3a76820727..fc3ecacd49700 100644 --- a/pkg/detectors/stripe/stripe.go +++ b/pkg/detectors/stripe/stripe.go @@ -1,11 +1,12 @@ package stripe import ( - "context" "fmt" "net/http" "regexp" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/stripe/stripe_test.go b/pkg/detectors/stripe/stripe_test.go index 61696eaaeab51..8a38986303766 100644 --- a/pkg/detectors/stripe/stripe_test.go +++ b/pkg/detectors/stripe/stripe_test.go @@ -4,12 +4,14 @@ package stripe import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/stripo/stripo.go b/pkg/detectors/stripo/stripo.go index 165f9993be171..02281defe6f1a 100644 --- a/pkg/detectors/stripo/stripo.go +++ b/pkg/detectors/stripo/stripo.go @@ -1,12 +1,13 @@ package stripo import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/stripo/stripo_test.go b/pkg/detectors/stripo/stripo_test.go index 3c6671873dc7d..6730efdb8dde7 100644 --- a/pkg/detectors/stripo/stripo_test.go +++ b/pkg/detectors/stripo/stripo_test.go @@ -4,11 +4,12 @@ package stripo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/stytch/stytch.go b/pkg/detectors/stytch/stytch.go index 0d907609a5e92..e0c403817a214 100644 --- a/pkg/detectors/stytch/stytch.go +++ b/pkg/detectors/stytch/stytch.go @@ -1,11 +1,12 @@ package stytch import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/stytch/stytch_test.go b/pkg/detectors/stytch/stytch_test.go index 0d1722dae686c..ec0df8eb595f4 100644 --- a/pkg/detectors/stytch/stytch_test.go +++ b/pkg/detectors/stytch/stytch_test.go @@ -4,12 +4,14 @@ package stytch import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sugester/sugester.go b/pkg/detectors/sugester/sugester.go index 80681dd6c6e15..dd1d94318829d 100644 --- a/pkg/detectors/sugester/sugester.go +++ b/pkg/detectors/sugester/sugester.go @@ -1,11 +1,12 @@ package sugester import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sugester/sugester_test.go b/pkg/detectors/sugester/sugester_test.go index 4b27ef9a32139..0cdb43c6df3f1 100644 --- a/pkg/detectors/sugester/sugester_test.go +++ b/pkg/detectors/sugester/sugester_test.go @@ -4,11 +4,12 @@ package sugester import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sumologickey/sumologickey.go b/pkg/detectors/sumologickey/sumologickey.go index 8f7312bc922a5..bea87c0ef971b 100644 --- a/pkg/detectors/sumologickey/sumologickey.go +++ b/pkg/detectors/sumologickey/sumologickey.go @@ -1,13 +1,14 @@ package sumologickey import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/sumologickey/sumologickey_test.go b/pkg/detectors/sumologickey/sumologickey_test.go index e95e34041d374..2368ef5227fa4 100644 --- a/pkg/detectors/sumologickey/sumologickey_test.go +++ b/pkg/detectors/sumologickey/sumologickey_test.go @@ -4,12 +4,14 @@ package sumologickey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/supabasetoken/supabasetoken.go b/pkg/detectors/supabasetoken/supabasetoken.go index 7f5b3cb944588..aab0ac3670ed2 100644 --- a/pkg/detectors/supabasetoken/supabasetoken.go +++ b/pkg/detectors/supabasetoken/supabasetoken.go @@ -1,12 +1,13 @@ package supabasetoken import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/supabasetoken/supabasetoken_test.go b/pkg/detectors/supabasetoken/supabasetoken_test.go index 840e235b8f11f..00645147950e5 100644 --- a/pkg/detectors/supabasetoken/supabasetoken_test.go +++ b/pkg/detectors/supabasetoken/supabasetoken_test.go @@ -4,11 +4,12 @@ package supabasetoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/supernotesapi/supernotesapi.go b/pkg/detectors/supernotesapi/supernotesapi.go index 98b2c5eb04ca4..ae0379606dd31 100644 --- a/pkg/detectors/supernotesapi/supernotesapi.go +++ b/pkg/detectors/supernotesapi/supernotesapi.go @@ -1,11 +1,12 @@ package supernotesapi import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/supernotesapi/supernotesapi_test.go b/pkg/detectors/supernotesapi/supernotesapi_test.go index cf6a075a195af..57af0929658b8 100644 --- a/pkg/detectors/supernotesapi/supernotesapi_test.go +++ b/pkg/detectors/supernotesapi/supernotesapi_test.go @@ -4,11 +4,12 @@ package supernotesapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/surveyanyplace/surveyanyplace.go b/pkg/detectors/surveyanyplace/surveyanyplace.go index dd143ecb6fafe..f6500b8a344cd 100644 --- a/pkg/detectors/surveyanyplace/surveyanyplace.go +++ b/pkg/detectors/surveyanyplace/surveyanyplace.go @@ -1,12 +1,13 @@ package surveyanyplace import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/surveyanyplace/surveyanyplace_test.go b/pkg/detectors/surveyanyplace/surveyanyplace_test.go index 4f57a6215fe3c..b7d250f73190d 100644 --- a/pkg/detectors/surveyanyplace/surveyanyplace_test.go +++ b/pkg/detectors/surveyanyplace/surveyanyplace_test.go @@ -4,12 +4,14 @@ package surveyanyplace import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/surveybot/surveybot.go b/pkg/detectors/surveybot/surveybot.go index 8ecdf7c693ae7..13977b23135a2 100644 --- a/pkg/detectors/surveybot/surveybot.go +++ b/pkg/detectors/surveybot/surveybot.go @@ -1,12 +1,13 @@ package surveybot import ( - "context" "encoding/json" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/surveybot/surveybot_test.go b/pkg/detectors/surveybot/surveybot_test.go index 9fe32246e0142..ddca8ff5f997f 100644 --- a/pkg/detectors/surveybot/surveybot_test.go +++ b/pkg/detectors/surveybot/surveybot_test.go @@ -4,12 +4,14 @@ package surveybot import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/surveysparrow/surveysparrow.go b/pkg/detectors/surveysparrow/surveysparrow.go index cf7e998df597a..acfa033791373 100644 --- a/pkg/detectors/surveysparrow/surveysparrow.go +++ b/pkg/detectors/surveysparrow/surveysparrow.go @@ -1,12 +1,13 @@ package surveysparrow import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/surveysparrow/surveysparrow_test.go b/pkg/detectors/surveysparrow/surveysparrow_test.go index 2a7c7be7018b6..1931eb1a6b7ba 100644 --- a/pkg/detectors/surveysparrow/surveysparrow_test.go +++ b/pkg/detectors/surveysparrow/surveysparrow_test.go @@ -4,12 +4,14 @@ package surveysparrow import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/survicate/survicate.go b/pkg/detectors/survicate/survicate.go index c1848ca2f5fd8..ca8d7c99882db 100644 --- a/pkg/detectors/survicate/survicate.go +++ b/pkg/detectors/survicate/survicate.go @@ -1,12 +1,13 @@ package survicate import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/survicate/survicate_test.go b/pkg/detectors/survicate/survicate_test.go index c9c93ca73d39c..9711ce7eaff06 100644 --- a/pkg/detectors/survicate/survicate_test.go +++ b/pkg/detectors/survicate/survicate_test.go @@ -4,12 +4,14 @@ package survicate import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/swell/swell.go b/pkg/detectors/swell/swell.go index 9830266dcc39c..eb1af22a5c7f0 100644 --- a/pkg/detectors/swell/swell.go +++ b/pkg/detectors/swell/swell.go @@ -1,11 +1,12 @@ package swell import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/swell/swell_test.go b/pkg/detectors/swell/swell_test.go index 1994ea9231c41..69f7f47387c23 100644 --- a/pkg/detectors/swell/swell_test.go +++ b/pkg/detectors/swell/swell_test.go @@ -4,12 +4,14 @@ package swell import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/swiftype/swiftype.go b/pkg/detectors/swiftype/swiftype.go index d6066fb74c3d6..aff45bb081492 100644 --- a/pkg/detectors/swiftype/swiftype.go +++ b/pkg/detectors/swiftype/swiftype.go @@ -1,11 +1,12 @@ package swiftype import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/swiftype/swiftype_test.go b/pkg/detectors/swiftype/swiftype_test.go index 95930c642216b..459b314d5274c 100644 --- a/pkg/detectors/swiftype/swiftype_test.go +++ b/pkg/detectors/swiftype/swiftype_test.go @@ -4,12 +4,14 @@ package swiftype import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tailscale/tailscale.go b/pkg/detectors/tailscale/tailscale.go index ab585f9cab1a8..4faa352358e2a 100644 --- a/pkg/detectors/tailscale/tailscale.go +++ b/pkg/detectors/tailscale/tailscale.go @@ -1,13 +1,14 @@ package tailscale import ( - "context" "fmt" "net/http" "net/url" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/tailscale/tailscale_test.go b/pkg/detectors/tailscale/tailscale_test.go index 28ee3ba5d8ad2..a7ade45fd4266 100644 --- a/pkg/detectors/tailscale/tailscale_test.go +++ b/pkg/detectors/tailscale/tailscale_test.go @@ -4,11 +4,12 @@ package tailscale import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/tallyfy/tallyfy.go b/pkg/detectors/tallyfy/tallyfy.go index bb48e03924b2b..41e70ea518e4e 100644 --- a/pkg/detectors/tallyfy/tallyfy.go +++ b/pkg/detectors/tallyfy/tallyfy.go @@ -1,12 +1,13 @@ package tallyfy import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/tallyfy/tallyfy_test.go b/pkg/detectors/tallyfy/tallyfy_test.go index 82cdc35d020d2..df8e66d6e8b8f 100644 --- a/pkg/detectors/tallyfy/tallyfy_test.go +++ b/pkg/detectors/tallyfy/tallyfy_test.go @@ -4,11 +4,12 @@ package tallyfy import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tatumio/tatumio.go b/pkg/detectors/tatumio/tatumio.go index f98c4fb497c0d..3584b12aa6dcd 100644 --- a/pkg/detectors/tatumio/tatumio.go +++ b/pkg/detectors/tatumio/tatumio.go @@ -1,11 +1,12 @@ package tatumio import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/tatumio/tatumio_test.go b/pkg/detectors/tatumio/tatumio_test.go index 885ed5268f9be..5979d8106ef6f 100644 --- a/pkg/detectors/tatumio/tatumio_test.go +++ b/pkg/detectors/tatumio/tatumio_test.go @@ -4,12 +4,14 @@ package tatumio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/taxjar/taxjar.go b/pkg/detectors/taxjar/taxjar.go index ead1aedf385a6..5736eb066df0e 100644 --- a/pkg/detectors/taxjar/taxjar.go +++ b/pkg/detectors/taxjar/taxjar.go @@ -1,12 +1,13 @@ package taxjar import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/taxjar/taxjar_test.go b/pkg/detectors/taxjar/taxjar_test.go index 1eb5ea716137f..d998d0b24a2b9 100644 --- a/pkg/detectors/taxjar/taxjar_test.go +++ b/pkg/detectors/taxjar/taxjar_test.go @@ -4,12 +4,14 @@ package taxjar import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/teamgate/teamgate.go b/pkg/detectors/teamgate/teamgate.go index 9ed1f861bbfa5..7b064ee0fa9dc 100644 --- a/pkg/detectors/teamgate/teamgate.go +++ b/pkg/detectors/teamgate/teamgate.go @@ -1,11 +1,12 @@ package teamgate import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/teamgate/teamgate_test.go b/pkg/detectors/teamgate/teamgate_test.go index 8ff2b5e7d61ef..94ce54f8e9598 100644 --- a/pkg/detectors/teamgate/teamgate_test.go +++ b/pkg/detectors/teamgate/teamgate_test.go @@ -4,12 +4,14 @@ package teamgate import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/teamworkcrm/teamworkcrm.go b/pkg/detectors/teamworkcrm/teamworkcrm.go index 5c324addd970a..fcfc0c2ae5249 100644 --- a/pkg/detectors/teamworkcrm/teamworkcrm.go +++ b/pkg/detectors/teamworkcrm/teamworkcrm.go @@ -1,12 +1,13 @@ package teamworkcrm import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/teamworkcrm/teamworkcrm_test.go b/pkg/detectors/teamworkcrm/teamworkcrm_test.go index 1c55c09d9324f..7c635e53651fd 100644 --- a/pkg/detectors/teamworkcrm/teamworkcrm_test.go +++ b/pkg/detectors/teamworkcrm/teamworkcrm_test.go @@ -4,11 +4,12 @@ package teamworkcrm import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/teamworkdesk/teamworkdesk.go b/pkg/detectors/teamworkdesk/teamworkdesk.go index 0f4dbe089fade..a95239d9ebf35 100644 --- a/pkg/detectors/teamworkdesk/teamworkdesk.go +++ b/pkg/detectors/teamworkdesk/teamworkdesk.go @@ -1,12 +1,13 @@ package teamworkdesk import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/teamworkdesk/teamworkdesk_test.go b/pkg/detectors/teamworkdesk/teamworkdesk_test.go index bf03fed6fa426..5603825f1cf5e 100644 --- a/pkg/detectors/teamworkdesk/teamworkdesk_test.go +++ b/pkg/detectors/teamworkdesk/teamworkdesk_test.go @@ -4,11 +4,12 @@ package teamworkdesk import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/teamworkspaces/teamworkspaces.go b/pkg/detectors/teamworkspaces/teamworkspaces.go index c142753d8963b..0ef8b4828aaa5 100644 --- a/pkg/detectors/teamworkspaces/teamworkspaces.go +++ b/pkg/detectors/teamworkspaces/teamworkspaces.go @@ -1,12 +1,13 @@ package teamworkspaces import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/teamworkspaces/teamworkspaces_test.go b/pkg/detectors/teamworkspaces/teamworkspaces_test.go index ea693bad9f455..ae6d3bcdcfde8 100644 --- a/pkg/detectors/teamworkspaces/teamworkspaces_test.go +++ b/pkg/detectors/teamworkspaces/teamworkspaces_test.go @@ -4,11 +4,12 @@ package teamworkspaces import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go b/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go index d23bab7ad3ca8..0567a8fd2dd6f 100644 --- a/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go +++ b/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go @@ -1,8 +1,8 @@ package technicalanalysisapi import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "net/http" "regexp" "strings" diff --git a/pkg/detectors/technicalanalysisapi/technicalanalysisapi_test.go b/pkg/detectors/technicalanalysisapi/technicalanalysisapi_test.go index b3ca4b3cb6135..026cecb815da8 100644 --- a/pkg/detectors/technicalanalysisapi/technicalanalysisapi_test.go +++ b/pkg/detectors/technicalanalysisapi/technicalanalysisapi_test.go @@ -4,12 +4,14 @@ package technicalanalysisapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tefter/tefter.go b/pkg/detectors/tefter/tefter.go index ad2bef1a8fb6b..b5a9c20b8cb6d 100644 --- a/pkg/detectors/tefter/tefter.go +++ b/pkg/detectors/tefter/tefter.go @@ -1,13 +1,14 @@ package tefter import ( - "context" "encoding/json" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/tefter/tefter_test.go b/pkg/detectors/tefter/tefter_test.go index 607e8e421364a..3c5926dfe27ea 100644 --- a/pkg/detectors/tefter/tefter_test.go +++ b/pkg/detectors/tefter/tefter_test.go @@ -4,12 +4,14 @@ package tefter import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/telegrambottoken/telegrambottoken.go b/pkg/detectors/telegrambottoken/telegrambottoken.go index a42b9cd60fb7c..b8b7c5d84d24d 100644 --- a/pkg/detectors/telegrambottoken/telegrambottoken.go +++ b/pkg/detectors/telegrambottoken/telegrambottoken.go @@ -1,9 +1,10 @@ package telegrambottoken import ( - "context" "encoding/json" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + // "fmt" "net/http" "regexp" diff --git a/pkg/detectors/telegrambottoken/telegrambottoken_test.go b/pkg/detectors/telegrambottoken/telegrambottoken_test.go index bd7aab3930432..a218e77eafc28 100644 --- a/pkg/detectors/telegrambottoken/telegrambottoken_test.go +++ b/pkg/detectors/telegrambottoken/telegrambottoken_test.go @@ -4,12 +4,14 @@ package telegrambottoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/teletype/teletype.go b/pkg/detectors/teletype/teletype.go index c01c77e93bc71..882ac5bc9d74b 100644 --- a/pkg/detectors/teletype/teletype.go +++ b/pkg/detectors/teletype/teletype.go @@ -1,12 +1,13 @@ package teletype import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/teletype/teletype_test.go b/pkg/detectors/teletype/teletype_test.go index c36edd0e604eb..9f85650d223d5 100644 --- a/pkg/detectors/teletype/teletype_test.go +++ b/pkg/detectors/teletype/teletype_test.go @@ -4,12 +4,14 @@ package teletype import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/telnyx/telnyx.go b/pkg/detectors/telnyx/telnyx.go index a044993c1c508..32979ce058a33 100644 --- a/pkg/detectors/telnyx/telnyx.go +++ b/pkg/detectors/telnyx/telnyx.go @@ -1,12 +1,13 @@ package telnyx import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/telnyx/telnyx_test.go b/pkg/detectors/telnyx/telnyx_test.go index 7eb3a88484827..ccc70c7100ec7 100644 --- a/pkg/detectors/telnyx/telnyx_test.go +++ b/pkg/detectors/telnyx/telnyx_test.go @@ -4,12 +4,14 @@ package telnyx import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go index dbb54c7a181c8..99f9fd312056c 100644 --- a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go +++ b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go @@ -1,8 +1,8 @@ package terraformcloudpersonaltoken import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "net/http" "regexp" "strings" diff --git a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken_test.go b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken_test.go index 2d0f54d3bb6de..d8569c20ca514 100644 --- a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken_test.go +++ b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken_test.go @@ -4,8 +4,8 @@ package terraformcloudpersonaltoken import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/testingbot/testingbot.go b/pkg/detectors/testingbot/testingbot.go index 93240bd56e153..7d1246b77a4b7 100644 --- a/pkg/detectors/testingbot/testingbot.go +++ b/pkg/detectors/testingbot/testingbot.go @@ -1,11 +1,12 @@ package testingbot import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/testingbot/testingbot_test.go b/pkg/detectors/testingbot/testingbot_test.go index a0a9b2a8a21d7..4332367d6e0c3 100644 --- a/pkg/detectors/testingbot/testingbot_test.go +++ b/pkg/detectors/testingbot/testingbot_test.go @@ -4,12 +4,14 @@ package testingbot import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/textmagic/textmagic.go b/pkg/detectors/textmagic/textmagic.go index 641f712b05347..ab37fb8e3fb3c 100644 --- a/pkg/detectors/textmagic/textmagic.go +++ b/pkg/detectors/textmagic/textmagic.go @@ -1,13 +1,14 @@ package textmagic import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/textmagic/textmagic_test.go b/pkg/detectors/textmagic/textmagic_test.go index 251e20b12f57e..2930a1ee4ee20 100644 --- a/pkg/detectors/textmagic/textmagic_test.go +++ b/pkg/detectors/textmagic/textmagic_test.go @@ -4,12 +4,14 @@ package textmagic import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/theoddsapi/theoddsapi.go b/pkg/detectors/theoddsapi/theoddsapi.go index 5161a81ee876c..c1d74365f94c6 100644 --- a/pkg/detectors/theoddsapi/theoddsapi.go +++ b/pkg/detectors/theoddsapi/theoddsapi.go @@ -1,11 +1,12 @@ package theoddsapi import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/theoddsapi/theoddsapi_test.go b/pkg/detectors/theoddsapi/theoddsapi_test.go index d4a5aead7daf9..05dce2de2f765 100644 --- a/pkg/detectors/theoddsapi/theoddsapi_test.go +++ b/pkg/detectors/theoddsapi/theoddsapi_test.go @@ -4,11 +4,12 @@ package theoddsapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/thinkific/thinkific.go b/pkg/detectors/thinkific/thinkific.go index b34c442b64bc4..2019be80dfc3d 100644 --- a/pkg/detectors/thinkific/thinkific.go +++ b/pkg/detectors/thinkific/thinkific.go @@ -1,13 +1,14 @@ package thinkific import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/thinkific/thinkific_test.go b/pkg/detectors/thinkific/thinkific_test.go index d9445616c73f4..2da12eea32751 100644 --- a/pkg/detectors/thinkific/thinkific_test.go +++ b/pkg/detectors/thinkific/thinkific_test.go @@ -4,12 +4,14 @@ package thinkific import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/thousandeyes/thousandeyes.go b/pkg/detectors/thousandeyes/thousandeyes.go index 14fcb0c28154d..a4e77cfa1cfa4 100644 --- a/pkg/detectors/thousandeyes/thousandeyes.go +++ b/pkg/detectors/thousandeyes/thousandeyes.go @@ -1,11 +1,12 @@ package thousandeyes import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/thousandeyes/thousandeyes_test.go b/pkg/detectors/thousandeyes/thousandeyes_test.go index 8a5ea0bead86a..61358a77b83f9 100644 --- a/pkg/detectors/thousandeyes/thousandeyes_test.go +++ b/pkg/detectors/thousandeyes/thousandeyes_test.go @@ -4,12 +4,14 @@ package thousandeyes import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ticketmaster/ticketmaster.go b/pkg/detectors/ticketmaster/ticketmaster.go index 0d8864423d6d4..d508a34510be5 100644 --- a/pkg/detectors/ticketmaster/ticketmaster.go +++ b/pkg/detectors/ticketmaster/ticketmaster.go @@ -1,12 +1,13 @@ package ticketmaster import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ticketmaster/ticketmaster_test.go b/pkg/detectors/ticketmaster/ticketmaster_test.go index 6cdbefb91d97d..74a9f0e8e376b 100644 --- a/pkg/detectors/ticketmaster/ticketmaster_test.go +++ b/pkg/detectors/ticketmaster/ticketmaster_test.go @@ -4,12 +4,14 @@ package ticketmaster import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tickettailor/tickettailor.go b/pkg/detectors/tickettailor/tickettailor.go index 8c363ca3a4078..6750a3e589fbf 100644 --- a/pkg/detectors/tickettailor/tickettailor.go +++ b/pkg/detectors/tickettailor/tickettailor.go @@ -1,13 +1,14 @@ package tickettailor import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/tickettailor/tickettailor_test.go b/pkg/detectors/tickettailor/tickettailor_test.go index c391c47d6d0e3..d3686b55ac175 100644 --- a/pkg/detectors/tickettailor/tickettailor_test.go +++ b/pkg/detectors/tickettailor/tickettailor_test.go @@ -4,12 +4,14 @@ package tickettailor import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tiingo/tiingo.go b/pkg/detectors/tiingo/tiingo.go index 54af3a52b981c..ea00b13246e3c 100644 --- a/pkg/detectors/tiingo/tiingo.go +++ b/pkg/detectors/tiingo/tiingo.go @@ -1,12 +1,13 @@ package tiingo import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/tiingo/tiingo_test.go b/pkg/detectors/tiingo/tiingo_test.go index 64e75d3dca192..e94414fc3b0e6 100644 --- a/pkg/detectors/tiingo/tiingo_test.go +++ b/pkg/detectors/tiingo/tiingo_test.go @@ -4,12 +4,14 @@ package tiingo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/timecamp/timecamp.go b/pkg/detectors/timecamp/timecamp.go index 53d833f012a38..dbd82080226f7 100644 --- a/pkg/detectors/timecamp/timecamp.go +++ b/pkg/detectors/timecamp/timecamp.go @@ -1,11 +1,12 @@ package timecamp import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/timecamp/timecamp_test.go b/pkg/detectors/timecamp/timecamp_test.go index d091ae3ec4c84..551ca51786281 100644 --- a/pkg/detectors/timecamp/timecamp_test.go +++ b/pkg/detectors/timecamp/timecamp_test.go @@ -4,12 +4,14 @@ package timecamp import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/timezoneapi/timezoneapi.go b/pkg/detectors/timezoneapi/timezoneapi.go index 7f6ab3cc47a06..de07dc58d0fe5 100644 --- a/pkg/detectors/timezoneapi/timezoneapi.go +++ b/pkg/detectors/timezoneapi/timezoneapi.go @@ -1,11 +1,12 @@ package timezoneapi import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/timezoneapi/timezoneapi_test.go b/pkg/detectors/timezoneapi/timezoneapi_test.go index 8a3accdd80b0c..1ff42eef834e4 100644 --- a/pkg/detectors/timezoneapi/timezoneapi_test.go +++ b/pkg/detectors/timezoneapi/timezoneapi_test.go @@ -4,11 +4,12 @@ package timezoneapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tineswebhook/tineswebhook.go b/pkg/detectors/tineswebhook/tineswebhook.go index 78aa4e64d600c..3812b784f2565 100644 --- a/pkg/detectors/tineswebhook/tineswebhook.go +++ b/pkg/detectors/tineswebhook/tineswebhook.go @@ -1,11 +1,12 @@ package tineswebhook import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/tineswebhook/tineswebhook_test.go b/pkg/detectors/tineswebhook/tineswebhook_test.go index f80b9e7fb626a..c86934a6f80cf 100644 --- a/pkg/detectors/tineswebhook/tineswebhook_test.go +++ b/pkg/detectors/tineswebhook/tineswebhook_test.go @@ -4,12 +4,14 @@ package tineswebhook import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tly/tly.go b/pkg/detectors/tly/tly.go index 220ca34aff0a1..fe1c5e1149dcd 100644 --- a/pkg/detectors/tly/tly.go +++ b/pkg/detectors/tly/tly.go @@ -1,11 +1,12 @@ package tly import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/tly/tly_test.go b/pkg/detectors/tly/tly_test.go index c151f420dcac1..2e13e7e6b26f6 100644 --- a/pkg/detectors/tly/tly_test.go +++ b/pkg/detectors/tly/tly_test.go @@ -4,11 +4,12 @@ package tly import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tmetric/tmetric.go b/pkg/detectors/tmetric/tmetric.go index d14387504965f..332b3f51b4ec6 100644 --- a/pkg/detectors/tmetric/tmetric.go +++ b/pkg/detectors/tmetric/tmetric.go @@ -1,12 +1,13 @@ package tmetric import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/tmetric/tmetric_test.go b/pkg/detectors/tmetric/tmetric_test.go index dfe3154dd3063..fd7fbf7dfd9f5 100644 --- a/pkg/detectors/tmetric/tmetric_test.go +++ b/pkg/detectors/tmetric/tmetric_test.go @@ -4,12 +4,14 @@ package tmetric import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/todoist/todoist.go b/pkg/detectors/todoist/todoist.go index 0681bf2a73359..20ddec61a3646 100644 --- a/pkg/detectors/todoist/todoist.go +++ b/pkg/detectors/todoist/todoist.go @@ -1,12 +1,13 @@ package todoist import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/todoist/todoist_test.go b/pkg/detectors/todoist/todoist_test.go index de8f825b06bc6..9b8d27e461357 100644 --- a/pkg/detectors/todoist/todoist_test.go +++ b/pkg/detectors/todoist/todoist_test.go @@ -4,12 +4,14 @@ package todoist import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/toggltrack/toggltrack.go b/pkg/detectors/toggltrack/toggltrack.go index 0baeec3a07b78..e971b0978c62e 100644 --- a/pkg/detectors/toggltrack/toggltrack.go +++ b/pkg/detectors/toggltrack/toggltrack.go @@ -1,13 +1,14 @@ package toggltrack import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/toggltrack/toggltrack_test.go b/pkg/detectors/toggltrack/toggltrack_test.go index 2e21c7ef7e178..f1fec4ec4c2ad 100644 --- a/pkg/detectors/toggltrack/toggltrack_test.go +++ b/pkg/detectors/toggltrack/toggltrack_test.go @@ -4,12 +4,14 @@ package toggltrack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tokeet/tokeet.go b/pkg/detectors/tokeet/tokeet.go index 20b1d99356e57..e77fdd8b96844 100644 --- a/pkg/detectors/tokeet/tokeet.go +++ b/pkg/detectors/tokeet/tokeet.go @@ -1,12 +1,13 @@ package tokeet import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/tokeet/tokeet_test.go b/pkg/detectors/tokeet/tokeet_test.go index 0b8ce70f3b40e..d324cce87170d 100644 --- a/pkg/detectors/tokeet/tokeet_test.go +++ b/pkg/detectors/tokeet/tokeet_test.go @@ -1,12 +1,14 @@ package tokeet import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tomorrowio/tomorrowio.go b/pkg/detectors/tomorrowio/tomorrowio.go index a8d48cdf9d86c..ce863650cd114 100644 --- a/pkg/detectors/tomorrowio/tomorrowio.go +++ b/pkg/detectors/tomorrowio/tomorrowio.go @@ -1,12 +1,13 @@ package tomorrowio import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/tomorrowio/tomorrowio_test.go b/pkg/detectors/tomorrowio/tomorrowio_test.go index 4e76e8475daf8..9d1918a86fd3d 100644 --- a/pkg/detectors/tomorrowio/tomorrowio_test.go +++ b/pkg/detectors/tomorrowio/tomorrowio_test.go @@ -4,12 +4,14 @@ package tomorrowio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tomtom/tomtom.go b/pkg/detectors/tomtom/tomtom.go index 1d5f82e0b6800..4d80b0727b7be 100644 --- a/pkg/detectors/tomtom/tomtom.go +++ b/pkg/detectors/tomtom/tomtom.go @@ -1,11 +1,12 @@ package tomtom import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/tomtom/tomtom_test.go b/pkg/detectors/tomtom/tomtom_test.go index 2a5c854124a27..e0003fe6ee104 100644 --- a/pkg/detectors/tomtom/tomtom_test.go +++ b/pkg/detectors/tomtom/tomtom_test.go @@ -4,12 +4,14 @@ package tomtom import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tradier/tradier.go b/pkg/detectors/tradier/tradier.go index d255293574b1c..61080d726b371 100644 --- a/pkg/detectors/tradier/tradier.go +++ b/pkg/detectors/tradier/tradier.go @@ -1,12 +1,13 @@ package tradier import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/tradier/tradier_test.go b/pkg/detectors/tradier/tradier_test.go index 5c5842f7aa573..9456f4428fc24 100644 --- a/pkg/detectors/tradier/tradier_test.go +++ b/pkg/detectors/tradier/tradier_test.go @@ -4,11 +4,12 @@ package tradier import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/transferwise/transferwise.go b/pkg/detectors/transferwise/transferwise.go index 10165f27e2e3c..d04076ab0cdf6 100644 --- a/pkg/detectors/transferwise/transferwise.go +++ b/pkg/detectors/transferwise/transferwise.go @@ -1,12 +1,13 @@ package transferwise import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/transferwise/transferwise_test.go b/pkg/detectors/transferwise/transferwise_test.go index 4c0cb0a9e0566..79bdbc5e72464 100644 --- a/pkg/detectors/transferwise/transferwise_test.go +++ b/pkg/detectors/transferwise/transferwise_test.go @@ -1,12 +1,14 @@ package transferwise import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/travelpayouts/travelpayouts.go b/pkg/detectors/travelpayouts/travelpayouts.go index a2464087fe7d5..05a06deb0e5ff 100644 --- a/pkg/detectors/travelpayouts/travelpayouts.go +++ b/pkg/detectors/travelpayouts/travelpayouts.go @@ -1,12 +1,13 @@ package travelpayouts import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/travelpayouts/travelpayouts_test.go b/pkg/detectors/travelpayouts/travelpayouts_test.go index 3d057f1986b0a..f7f0546f0f2b6 100644 --- a/pkg/detectors/travelpayouts/travelpayouts_test.go +++ b/pkg/detectors/travelpayouts/travelpayouts_test.go @@ -4,12 +4,14 @@ package travelpayouts import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/travisci/travisci.go b/pkg/detectors/travisci/travisci.go index 07d607c4a0a8b..2bf420e0fa0ac 100644 --- a/pkg/detectors/travisci/travisci.go +++ b/pkg/detectors/travisci/travisci.go @@ -1,12 +1,13 @@ package travisci import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/travisci/travisci_test.go b/pkg/detectors/travisci/travisci_test.go index 77e9fc0bd3207..e9d96cb37e596 100644 --- a/pkg/detectors/travisci/travisci_test.go +++ b/pkg/detectors/travisci/travisci_test.go @@ -4,12 +4,14 @@ package travisci import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/trelloapikey/trelloapikey.go b/pkg/detectors/trelloapikey/trelloapikey.go index be78c210c3549..7274fb46fb26c 100644 --- a/pkg/detectors/trelloapikey/trelloapikey.go +++ b/pkg/detectors/trelloapikey/trelloapikey.go @@ -1,7 +1,7 @@ package trelloapikey import ( - "context" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" // "log" "net/http" "regexp" diff --git a/pkg/detectors/trelloapikey/trelloapikey_test.go b/pkg/detectors/trelloapikey/trelloapikey_test.go index b2aff40aafd07..210b41fe8e82c 100644 --- a/pkg/detectors/trelloapikey/trelloapikey_test.go +++ b/pkg/detectors/trelloapikey/trelloapikey_test.go @@ -4,12 +4,14 @@ package trelloapikey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tru/tru.go b/pkg/detectors/tru/tru.go index 2a40812f99dd5..48d02057db469 100644 --- a/pkg/detectors/tru/tru.go +++ b/pkg/detectors/tru/tru.go @@ -1,13 +1,14 @@ package tru import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/tru/tru_test.go b/pkg/detectors/tru/tru_test.go index 17d56acf6bee6..b7facbd9bf019 100644 --- a/pkg/detectors/tru/tru_test.go +++ b/pkg/detectors/tru/tru_test.go @@ -4,12 +4,14 @@ package tru import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/trufflehogenterprise/trufflehogenterprise.go b/pkg/detectors/trufflehogenterprise/trufflehogenterprise.go index d9880bde1cb32..8a9825f872980 100644 --- a/pkg/detectors/trufflehogenterprise/trufflehogenterprise.go +++ b/pkg/detectors/trufflehogenterprise/trufflehogenterprise.go @@ -1,8 +1,8 @@ package trufflehogenterprise import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "net/http" "regexp" "strings" diff --git a/pkg/detectors/trufflehogenterprise/trufflehogenterprise_test.go b/pkg/detectors/trufflehogenterprise/trufflehogenterprise_test.go index 56e10f2b94162..a0cfe08745ba0 100644 --- a/pkg/detectors/trufflehogenterprise/trufflehogenterprise_test.go +++ b/pkg/detectors/trufflehogenterprise/trufflehogenterprise_test.go @@ -4,8 +4,8 @@ package trufflehogenterprise import ( - "context" "fmt" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "testing" "time" diff --git a/pkg/detectors/twelvedata/twelvedata.go b/pkg/detectors/twelvedata/twelvedata.go index 8cb6f10920286..19c15bac89495 100644 --- a/pkg/detectors/twelvedata/twelvedata.go +++ b/pkg/detectors/twelvedata/twelvedata.go @@ -1,12 +1,13 @@ package twelvedata import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/twelvedata/twelvedata_test.go b/pkg/detectors/twelvedata/twelvedata_test.go index f46b777a429df..5e9079df5b08b 100644 --- a/pkg/detectors/twelvedata/twelvedata_test.go +++ b/pkg/detectors/twelvedata/twelvedata_test.go @@ -4,12 +4,14 @@ package twelvedata import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/twilio/twilio.go b/pkg/detectors/twilio/twilio.go index caac3751d7260..0c7b0c9e5ffc0 100644 --- a/pkg/detectors/twilio/twilio.go +++ b/pkg/detectors/twilio/twilio.go @@ -1,11 +1,12 @@ package twilio import ( - "context" "fmt" "net/http" "regexp" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/twilio/twilio_test.go b/pkg/detectors/twilio/twilio_test.go index 25288e1e75ef5..4c43a9c42e1bc 100644 --- a/pkg/detectors/twilio/twilio_test.go +++ b/pkg/detectors/twilio/twilio_test.go @@ -4,11 +4,12 @@ package twilio import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/twist/twist.go b/pkg/detectors/twist/twist.go index 0b59b6c4b1da5..cdb58fc97f524 100644 --- a/pkg/detectors/twist/twist.go +++ b/pkg/detectors/twist/twist.go @@ -1,12 +1,13 @@ package twist import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/twist/twist_test.go b/pkg/detectors/twist/twist_test.go index 88027608c8233..39233f05c7ef0 100644 --- a/pkg/detectors/twist/twist_test.go +++ b/pkg/detectors/twist/twist_test.go @@ -1,12 +1,14 @@ package twist import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/twitch/twitch.go b/pkg/detectors/twitch/twitch.go index d0c5b52fb894b..27020efa756e2 100644 --- a/pkg/detectors/twitch/twitch.go +++ b/pkg/detectors/twitch/twitch.go @@ -1,7 +1,6 @@ package twitch import ( - "context" "fmt" "net/http" "net/url" @@ -9,6 +8,8 @@ import ( "strconv" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/twitch/twitch_test.go b/pkg/detectors/twitch/twitch_test.go index a708e037ad04a..71596ece971e7 100644 --- a/pkg/detectors/twitch/twitch_test.go +++ b/pkg/detectors/twitch/twitch_test.go @@ -4,13 +4,15 @@ package twitch import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" + "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/twitter/twitter.go b/pkg/detectors/twitter/twitter.go index 9d4d9c121dd9a..e3c9d141e11e9 100644 --- a/pkg/detectors/twitter/twitter.go +++ b/pkg/detectors/twitter/twitter.go @@ -1,12 +1,13 @@ package twitter import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/twitter/twitter_test.go b/pkg/detectors/twitter/twitter_test.go index 0b072140326d7..fa3f8ad2ab444 100644 --- a/pkg/detectors/twitter/twitter_test.go +++ b/pkg/detectors/twitter/twitter_test.go @@ -4,12 +4,14 @@ package twitter import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tyntec/tyntec.go b/pkg/detectors/tyntec/tyntec.go index 7fde801e666ae..bbb6242a1806a 100644 --- a/pkg/detectors/tyntec/tyntec.go +++ b/pkg/detectors/tyntec/tyntec.go @@ -1,11 +1,12 @@ package tyntec import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/tyntec/tyntec_test.go b/pkg/detectors/tyntec/tyntec_test.go index ddb10f9f8cc1f..9a8657e71bb90 100644 --- a/pkg/detectors/tyntec/tyntec_test.go +++ b/pkg/detectors/tyntec/tyntec_test.go @@ -4,12 +4,14 @@ package tyntec import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/typeform/typeform.go b/pkg/detectors/typeform/typeform.go index 41767e3454a93..5eec2b0a29967 100644 --- a/pkg/detectors/typeform/typeform.go +++ b/pkg/detectors/typeform/typeform.go @@ -1,12 +1,13 @@ package typeform import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/typeform/typeform_test.go b/pkg/detectors/typeform/typeform_test.go index ac5971a37458d..8a84c7c8343b7 100644 --- a/pkg/detectors/typeform/typeform_test.go +++ b/pkg/detectors/typeform/typeform_test.go @@ -4,12 +4,14 @@ package typeform import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/typetalk/typetalk.go b/pkg/detectors/typetalk/typetalk.go index 493cc3fc65b53..07f28de459aa5 100644 --- a/pkg/detectors/typetalk/typetalk.go +++ b/pkg/detectors/typetalk/typetalk.go @@ -1,12 +1,13 @@ package typetalk import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/typetalk/typetalk_test.go b/pkg/detectors/typetalk/typetalk_test.go index f99d6484c56fc..fcdd4efea2428 100644 --- a/pkg/detectors/typetalk/typetalk_test.go +++ b/pkg/detectors/typetalk/typetalk_test.go @@ -4,12 +4,14 @@ package typetalk import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ubidots/ubidots.go b/pkg/detectors/ubidots/ubidots.go index bbc0e2bee0167..5f661da57b903 100644 --- a/pkg/detectors/ubidots/ubidots.go +++ b/pkg/detectors/ubidots/ubidots.go @@ -1,11 +1,12 @@ package ubidots import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/ubidots/ubidots_test.go b/pkg/detectors/ubidots/ubidots_test.go index 4dd26f2fc9d28..37d95badb3c1c 100644 --- a/pkg/detectors/ubidots/ubidots_test.go +++ b/pkg/detectors/ubidots/ubidots_test.go @@ -4,12 +4,14 @@ package ubidots import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/uclassify/uclassify.go b/pkg/detectors/uclassify/uclassify.go index 757fa2a027890..e3aa0c78ebca5 100644 --- a/pkg/detectors/uclassify/uclassify.go +++ b/pkg/detectors/uclassify/uclassify.go @@ -1,12 +1,13 @@ package uclassify import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/uclassify/uclassify_test.go b/pkg/detectors/uclassify/uclassify_test.go index f3b4e2a4041da..c08a29528853a 100644 --- a/pkg/detectors/uclassify/uclassify_test.go +++ b/pkg/detectors/uclassify/uclassify_test.go @@ -4,12 +4,14 @@ package uclassify import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/unifyid/unifyid.go b/pkg/detectors/unifyid/unifyid.go index 8b83a78342d03..b8be559557ce5 100644 --- a/pkg/detectors/unifyid/unifyid.go +++ b/pkg/detectors/unifyid/unifyid.go @@ -1,12 +1,13 @@ package unifyid import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/unifyid/unifyid_test.go b/pkg/detectors/unifyid/unifyid_test.go index 4e59fce1e1b80..32ad6d7d9564e 100644 --- a/pkg/detectors/unifyid/unifyid_test.go +++ b/pkg/detectors/unifyid/unifyid_test.go @@ -4,12 +4,14 @@ package unifyid import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/unplugg/unplugg.go b/pkg/detectors/unplugg/unplugg.go index a7081bd46e231..edcd498ac4786 100644 --- a/pkg/detectors/unplugg/unplugg.go +++ b/pkg/detectors/unplugg/unplugg.go @@ -1,11 +1,12 @@ package unplugg import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/unplugg/unplugg_test.go b/pkg/detectors/unplugg/unplugg_test.go index f021bfa7c9def..a0ba9aae4d460 100644 --- a/pkg/detectors/unplugg/unplugg_test.go +++ b/pkg/detectors/unplugg/unplugg_test.go @@ -4,12 +4,14 @@ package unplugg import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/unsplash/unsplash.go b/pkg/detectors/unsplash/unsplash.go index b8856c96ac744..6802b19ff9ba2 100644 --- a/pkg/detectors/unsplash/unsplash.go +++ b/pkg/detectors/unsplash/unsplash.go @@ -1,11 +1,12 @@ package unsplash import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/unsplash/unsplash_test.go b/pkg/detectors/unsplash/unsplash_test.go index 20941b87e0a01..37ad226ba8267 100644 --- a/pkg/detectors/unsplash/unsplash_test.go +++ b/pkg/detectors/unsplash/unsplash_test.go @@ -4,12 +4,14 @@ package unsplash import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/upcdatabase/upcdatabase.go b/pkg/detectors/upcdatabase/upcdatabase.go index 015d4b54703a6..ffaa85342fe54 100644 --- a/pkg/detectors/upcdatabase/upcdatabase.go +++ b/pkg/detectors/upcdatabase/upcdatabase.go @@ -1,13 +1,14 @@ package upcdatabase import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/upcdatabase/upcdatabase_test.go b/pkg/detectors/upcdatabase/upcdatabase_test.go index 1bf3e3a28f163..2a4d8c938c526 100644 --- a/pkg/detectors/upcdatabase/upcdatabase_test.go +++ b/pkg/detectors/upcdatabase/upcdatabase_test.go @@ -4,12 +4,14 @@ package upcdatabase import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/uplead/uplead.go b/pkg/detectors/uplead/uplead.go index c2b882438fddb..1a8c911571152 100644 --- a/pkg/detectors/uplead/uplead.go +++ b/pkg/detectors/uplead/uplead.go @@ -1,11 +1,12 @@ package uplead import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/uplead/uplead_test.go b/pkg/detectors/uplead/uplead_test.go index 6268796550b74..2c178f9c169d3 100644 --- a/pkg/detectors/uplead/uplead_test.go +++ b/pkg/detectors/uplead/uplead_test.go @@ -4,12 +4,14 @@ package uplead import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/uploadcare/uploadcare.go b/pkg/detectors/uploadcare/uploadcare.go index 825f6164bea6a..5aec921c2668a 100644 --- a/pkg/detectors/uploadcare/uploadcare.go +++ b/pkg/detectors/uploadcare/uploadcare.go @@ -1,12 +1,13 @@ package uploadcare import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/uploadcare/uploadcare_test.go b/pkg/detectors/uploadcare/uploadcare_test.go index 25e46a061216f..1ac1533fa60df 100644 --- a/pkg/detectors/uploadcare/uploadcare_test.go +++ b/pkg/detectors/uploadcare/uploadcare_test.go @@ -4,11 +4,12 @@ package uploadcare import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/uptimerobot/uptimerobot.go b/pkg/detectors/uptimerobot/uptimerobot.go index cc6e6c2427f05..66ea183b20b20 100644 --- a/pkg/detectors/uptimerobot/uptimerobot.go +++ b/pkg/detectors/uptimerobot/uptimerobot.go @@ -1,12 +1,13 @@ package uptimerobot import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/uptimerobot/uptimerobot_test.go b/pkg/detectors/uptimerobot/uptimerobot_test.go index 7e6637138151c..6bd3412077f4c 100644 --- a/pkg/detectors/uptimerobot/uptimerobot_test.go +++ b/pkg/detectors/uptimerobot/uptimerobot_test.go @@ -4,12 +4,14 @@ package uptimerobot import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/upwave/upwave.go b/pkg/detectors/upwave/upwave.go index fbb5498f12498..fc2509ef784af 100644 --- a/pkg/detectors/upwave/upwave.go +++ b/pkg/detectors/upwave/upwave.go @@ -1,12 +1,13 @@ package upwave import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/upwave/upwave_test.go b/pkg/detectors/upwave/upwave_test.go index 15371ebe1789e..1ca12d4b5ef25 100644 --- a/pkg/detectors/upwave/upwave_test.go +++ b/pkg/detectors/upwave/upwave_test.go @@ -4,12 +4,14 @@ package upwave import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/uri/uri.go b/pkg/detectors/uri/uri.go index 52b3f0144e9e0..da034832c999b 100644 --- a/pkg/detectors/uri/uri.go +++ b/pkg/detectors/uri/uri.go @@ -1,13 +1,14 @@ package uri import ( - "context" "net/http" "net/url" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/uri/uri_test.go b/pkg/detectors/uri/uri_test.go index 567c97979b5de..93e08748451c4 100644 --- a/pkg/detectors/uri/uri_test.go +++ b/pkg/detectors/uri/uri_test.go @@ -4,12 +4,14 @@ package uri import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "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/urlscan/urlscan.go b/pkg/detectors/urlscan/urlscan.go index 0dc90d0e0658e..8d53b31534e6e 100644 --- a/pkg/detectors/urlscan/urlscan.go +++ b/pkg/detectors/urlscan/urlscan.go @@ -1,11 +1,12 @@ package urlscan import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/urlscan/urlscan_test.go b/pkg/detectors/urlscan/urlscan_test.go index 7008388c7fd13..6f44be8eecc80 100644 --- a/pkg/detectors/urlscan/urlscan_test.go +++ b/pkg/detectors/urlscan/urlscan_test.go @@ -4,12 +4,14 @@ package urlscan import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/user/user.go b/pkg/detectors/user/user.go index 2cbfe116bb664..78adc32e3ecaa 100644 --- a/pkg/detectors/user/user.go +++ b/pkg/detectors/user/user.go @@ -1,12 +1,13 @@ package user import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/user/user_test.go b/pkg/detectors/user/user_test.go index 970e0877e235c..b66b87a9d0c10 100644 --- a/pkg/detectors/user/user_test.go +++ b/pkg/detectors/user/user_test.go @@ -4,12 +4,14 @@ package user import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/userflow/userflow.go b/pkg/detectors/userflow/userflow.go index b0ba911143016..49f863b162aa7 100644 --- a/pkg/detectors/userflow/userflow.go +++ b/pkg/detectors/userflow/userflow.go @@ -1,12 +1,13 @@ package userflow import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/userflow/userflow_test.go b/pkg/detectors/userflow/userflow_test.go index 6321e454bf586..7b97a7e048a38 100644 --- a/pkg/detectors/userflow/userflow_test.go +++ b/pkg/detectors/userflow/userflow_test.go @@ -4,12 +4,14 @@ package userflow import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/userstack/userstack.go b/pkg/detectors/userstack/userstack.go index d8662ee3e0f08..f4c04758d66ba 100644 --- a/pkg/detectors/userstack/userstack.go +++ b/pkg/detectors/userstack/userstack.go @@ -1,13 +1,14 @@ package userstack import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/userstack/userstack_test.go b/pkg/detectors/userstack/userstack_test.go index d436c0ddf9492..ba0eaa8cb9f13 100644 --- a/pkg/detectors/userstack/userstack_test.go +++ b/pkg/detectors/userstack/userstack_test.go @@ -4,12 +4,14 @@ package userstack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/vagrantcloudpersonaltoken/vagrantcloudpersonaltoken.go b/pkg/detectors/vagrantcloudpersonaltoken/vagrantcloudpersonaltoken.go index e49aedc05ed9a..b38db50ef2d3a 100644 --- a/pkg/detectors/vagrantcloudpersonaltoken/vagrantcloudpersonaltoken.go +++ b/pkg/detectors/vagrantcloudpersonaltoken/vagrantcloudpersonaltoken.go @@ -1,12 +1,13 @@ package vagrantcloudpersonaltoken import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/vagrantcloudpersonaltoken/vagrantcloudpersonaltoken_test.go b/pkg/detectors/vagrantcloudpersonaltoken/vagrantcloudpersonaltoken_test.go index 6ecbafaebea4c..e0845c0538bd6 100644 --- a/pkg/detectors/vagrantcloudpersonaltoken/vagrantcloudpersonaltoken_test.go +++ b/pkg/detectors/vagrantcloudpersonaltoken/vagrantcloudpersonaltoken_test.go @@ -4,11 +4,12 @@ package vagrantcloudpersonaltoken import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/vatlayer/vatlayer.go b/pkg/detectors/vatlayer/vatlayer.go index bd0155c5ae1f7..a11ccccb9dfb6 100644 --- a/pkg/detectors/vatlayer/vatlayer.go +++ b/pkg/detectors/vatlayer/vatlayer.go @@ -1,13 +1,14 @@ package vatlayer import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/vatlayer/vatlayer_test.go b/pkg/detectors/vatlayer/vatlayer_test.go index 57ac61124fe3f..c8e5790b22eab 100644 --- a/pkg/detectors/vatlayer/vatlayer_test.go +++ b/pkg/detectors/vatlayer/vatlayer_test.go @@ -4,12 +4,14 @@ package vatlayer import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/vbout/vbout.go b/pkg/detectors/vbout/vbout.go index 04df4949971be..a0a2a30a0483a 100644 --- a/pkg/detectors/vbout/vbout.go +++ b/pkg/detectors/vbout/vbout.go @@ -1,12 +1,13 @@ package vbout import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/vbout/vbout_test.go b/pkg/detectors/vbout/vbout_test.go index c8eaa6575b463..ba346915f285b 100644 --- a/pkg/detectors/vbout/vbout_test.go +++ b/pkg/detectors/vbout/vbout_test.go @@ -4,12 +4,14 @@ package vbout import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/vercel/vercel.go b/pkg/detectors/vercel/vercel.go index 55d6f23e4fe18..6d2538a2fe4a1 100644 --- a/pkg/detectors/vercel/vercel.go +++ b/pkg/detectors/vercel/vercel.go @@ -1,12 +1,13 @@ package vercel import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/vercel/vercel_test.go b/pkg/detectors/vercel/vercel_test.go index d9726d83fecf9..683abafd5008d 100644 --- a/pkg/detectors/vercel/vercel_test.go +++ b/pkg/detectors/vercel/vercel_test.go @@ -4,12 +4,14 @@ package vercel import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/verifier/verifier.go b/pkg/detectors/verifier/verifier.go index 324f76a1dc3e5..48293f1a44b37 100644 --- a/pkg/detectors/verifier/verifier.go +++ b/pkg/detectors/verifier/verifier.go @@ -1,12 +1,13 @@ package verifier import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/verifier/verifier_test.go b/pkg/detectors/verifier/verifier_test.go index d6e55a1861e39..cd6d045e0579f 100644 --- a/pkg/detectors/verifier/verifier_test.go +++ b/pkg/detectors/verifier/verifier_test.go @@ -4,12 +4,14 @@ package verifier import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/verimail/verimail.go b/pkg/detectors/verimail/verimail.go index 19345aedf1907..fa7d349e0fb55 100644 --- a/pkg/detectors/verimail/verimail.go +++ b/pkg/detectors/verimail/verimail.go @@ -1,11 +1,12 @@ package verimail import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/verimail/verimail_test.go b/pkg/detectors/verimail/verimail_test.go index 87165a4c00f4f..cfcc98ab8e91d 100644 --- a/pkg/detectors/verimail/verimail_test.go +++ b/pkg/detectors/verimail/verimail_test.go @@ -4,12 +4,14 @@ package verimail import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/veriphone/veriphone.go b/pkg/detectors/veriphone/veriphone.go index 6b4f43006affc..ac60258398066 100644 --- a/pkg/detectors/veriphone/veriphone.go +++ b/pkg/detectors/veriphone/veriphone.go @@ -1,11 +1,12 @@ package veriphone import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/veriphone/veriphone_test.go b/pkg/detectors/veriphone/veriphone_test.go index af712d5db67d1..99429753af537 100644 --- a/pkg/detectors/veriphone/veriphone_test.go +++ b/pkg/detectors/veriphone/veriphone_test.go @@ -4,12 +4,14 @@ package veriphone import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/versioneye/versioneye.go b/pkg/detectors/versioneye/versioneye.go index 5148a99d412e2..369efd6608e9c 100644 --- a/pkg/detectors/versioneye/versioneye.go +++ b/pkg/detectors/versioneye/versioneye.go @@ -1,11 +1,12 @@ package versioneye import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/versioneye/versioneye_test.go b/pkg/detectors/versioneye/versioneye_test.go index 336405d4206e6..07defdd727eb1 100644 --- a/pkg/detectors/versioneye/versioneye_test.go +++ b/pkg/detectors/versioneye/versioneye_test.go @@ -4,12 +4,14 @@ package versioneye import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/viewneo/viewneo.go b/pkg/detectors/viewneo/viewneo.go index fa35a06317a6b..c3c91be6d9d10 100644 --- a/pkg/detectors/viewneo/viewneo.go +++ b/pkg/detectors/viewneo/viewneo.go @@ -1,12 +1,13 @@ package viewneo import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/viewneo/viewneo_test.go b/pkg/detectors/viewneo/viewneo_test.go index ff6c82645570f..2e093b776e655 100644 --- a/pkg/detectors/viewneo/viewneo_test.go +++ b/pkg/detectors/viewneo/viewneo_test.go @@ -4,12 +4,14 @@ package viewneo import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/virustotal/virustotal.go b/pkg/detectors/virustotal/virustotal.go index 465b1c060d597..baaba2cea6cec 100644 --- a/pkg/detectors/virustotal/virustotal.go +++ b/pkg/detectors/virustotal/virustotal.go @@ -1,11 +1,12 @@ package virustotal import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/virustotal/virustotal_test.go b/pkg/detectors/virustotal/virustotal_test.go index b416c118effd2..5a589287dd4df 100644 --- a/pkg/detectors/virustotal/virustotal_test.go +++ b/pkg/detectors/virustotal/virustotal_test.go @@ -4,11 +4,12 @@ package virustotal import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/visualcrossing/visualcrossing.go b/pkg/detectors/visualcrossing/visualcrossing.go index ea9dd2491dddd..e8cbe54083856 100644 --- a/pkg/detectors/visualcrossing/visualcrossing.go +++ b/pkg/detectors/visualcrossing/visualcrossing.go @@ -1,12 +1,13 @@ package visualcrossing import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/visualcrossing/visualcrossing_test.go b/pkg/detectors/visualcrossing/visualcrossing_test.go index 9c570ee369380..e01005df9b619 100644 --- a/pkg/detectors/visualcrossing/visualcrossing_test.go +++ b/pkg/detectors/visualcrossing/visualcrossing_test.go @@ -4,11 +4,12 @@ package visualcrossing import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/voiceflow/voiceflow.go b/pkg/detectors/voiceflow/voiceflow.go index 3513be3e9c826..8580f4d33f5c3 100644 --- a/pkg/detectors/voiceflow/voiceflow.go +++ b/pkg/detectors/voiceflow/voiceflow.go @@ -2,13 +2,14 @@ package voiceflow import ( "bytes" - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/voiceflow/voiceflow_test.go b/pkg/detectors/voiceflow/voiceflow_test.go index 5a960a2609aa6..61294785622b0 100644 --- a/pkg/detectors/voiceflow/voiceflow_test.go +++ b/pkg/detectors/voiceflow/voiceflow_test.go @@ -4,11 +4,12 @@ package voiceflow import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/voicegain/voicegain.go b/pkg/detectors/voicegain/voicegain.go index 67741e25b73d2..ae44a574c0b23 100644 --- a/pkg/detectors/voicegain/voicegain.go +++ b/pkg/detectors/voicegain/voicegain.go @@ -1,12 +1,13 @@ package voicegain import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/voicegain/voicegain_test.go b/pkg/detectors/voicegain/voicegain_test.go index 4a3ce826faa5b..25b5b664682c6 100644 --- a/pkg/detectors/voicegain/voicegain_test.go +++ b/pkg/detectors/voicegain/voicegain_test.go @@ -4,12 +4,14 @@ package voicegain import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/voodoosms/voodoosms.go b/pkg/detectors/voodoosms/voodoosms.go index c382d0933befd..f0cecefc60698 100644 --- a/pkg/detectors/voodoosms/voodoosms.go +++ b/pkg/detectors/voodoosms/voodoosms.go @@ -1,12 +1,13 @@ package voodoosms import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/voodoosms/voodoosms_test.go b/pkg/detectors/voodoosms/voodoosms_test.go index 3728dde960260..256e542b9776a 100644 --- a/pkg/detectors/voodoosms/voodoosms_test.go +++ b/pkg/detectors/voodoosms/voodoosms_test.go @@ -4,12 +4,14 @@ package voodoosms import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/vouchery/vouchery.go b/pkg/detectors/vouchery/vouchery.go index ec917e564c51e..41adc74d3cf65 100644 --- a/pkg/detectors/vouchery/vouchery.go +++ b/pkg/detectors/vouchery/vouchery.go @@ -1,12 +1,13 @@ package vouchery import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/vouchery/vouchery_test.go b/pkg/detectors/vouchery/vouchery_test.go index bf0f879703dd9..69ed82abbe074 100644 --- a/pkg/detectors/vouchery/vouchery_test.go +++ b/pkg/detectors/vouchery/vouchery_test.go @@ -4,12 +4,14 @@ package vouchery import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/vpnapi/vpnapi.go b/pkg/detectors/vpnapi/vpnapi.go index 5593e0d4eaf37..26cdcf77f0de9 100644 --- a/pkg/detectors/vpnapi/vpnapi.go +++ b/pkg/detectors/vpnapi/vpnapi.go @@ -1,11 +1,12 @@ package vpnapi import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/vpnapi/vpnapi_test.go b/pkg/detectors/vpnapi/vpnapi_test.go index 34583d05b839a..b988fbaa811c2 100644 --- a/pkg/detectors/vpnapi/vpnapi_test.go +++ b/pkg/detectors/vpnapi/vpnapi_test.go @@ -4,12 +4,14 @@ package vpnapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/vultrapikey/vultrapikey.go b/pkg/detectors/vultrapikey/vultrapikey.go index 536a27c924ed4..f3bd9afe63b80 100644 --- a/pkg/detectors/vultrapikey/vultrapikey.go +++ b/pkg/detectors/vultrapikey/vultrapikey.go @@ -1,12 +1,13 @@ package vultrapikey import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/vultrapikey/vultrapikey_test.go b/pkg/detectors/vultrapikey/vultrapikey_test.go index 575713d4f005c..2431f402c8d1b 100644 --- a/pkg/detectors/vultrapikey/vultrapikey_test.go +++ b/pkg/detectors/vultrapikey/vultrapikey_test.go @@ -4,12 +4,14 @@ package vultrapikey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/vyte/vyte.go b/pkg/detectors/vyte/vyte.go index 0671be79f451a..23fa4881bde1b 100644 --- a/pkg/detectors/vyte/vyte.go +++ b/pkg/detectors/vyte/vyte.go @@ -1,11 +1,12 @@ package vyte import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/vyte/vyte_test.go b/pkg/detectors/vyte/vyte_test.go index 7cce3162fdca0..b28ded652beec 100644 --- a/pkg/detectors/vyte/vyte_test.go +++ b/pkg/detectors/vyte/vyte_test.go @@ -4,12 +4,14 @@ package vyte import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/walkscore/walkscore.go b/pkg/detectors/walkscore/walkscore.go index 4400afaa4e902..f87f6866cb82c 100644 --- a/pkg/detectors/walkscore/walkscore.go +++ b/pkg/detectors/walkscore/walkscore.go @@ -1,13 +1,14 @@ package walkscore import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/walkscore/walkscore_test.go b/pkg/detectors/walkscore/walkscore_test.go index 51da778628702..4d44761003985 100644 --- a/pkg/detectors/walkscore/walkscore_test.go +++ b/pkg/detectors/walkscore/walkscore_test.go @@ -4,12 +4,14 @@ package walkscore import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/weatherbit/weatherbit.go b/pkg/detectors/weatherbit/weatherbit.go index 04a8ebad76792..b03ee0b47f9e0 100644 --- a/pkg/detectors/weatherbit/weatherbit.go +++ b/pkg/detectors/weatherbit/weatherbit.go @@ -1,12 +1,13 @@ package weatherbit import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/weatherbit/weatherbit_test.go b/pkg/detectors/weatherbit/weatherbit_test.go index 09cbc57e89e8e..730caa13eba06 100644 --- a/pkg/detectors/weatherbit/weatherbit_test.go +++ b/pkg/detectors/weatherbit/weatherbit_test.go @@ -4,12 +4,14 @@ package weatherbit import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/weatherstack/weatherstack.go b/pkg/detectors/weatherstack/weatherstack.go index d5255a209aa6a..74f61bc823494 100644 --- a/pkg/detectors/weatherstack/weatherstack.go +++ b/pkg/detectors/weatherstack/weatherstack.go @@ -1,13 +1,14 @@ package weatherstack import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/weatherstack/weatherstack_test.go b/pkg/detectors/weatherstack/weatherstack_test.go index 6ce95f28c6bd4..59f6c177be761 100644 --- a/pkg/detectors/weatherstack/weatherstack_test.go +++ b/pkg/detectors/weatherstack/weatherstack_test.go @@ -4,12 +4,14 @@ package weatherstack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/web3storage/web3storage.go b/pkg/detectors/web3storage/web3storage.go index 34654744769b5..1b5a770ee09ff 100644 --- a/pkg/detectors/web3storage/web3storage.go +++ b/pkg/detectors/web3storage/web3storage.go @@ -1,12 +1,13 @@ package web3storage import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/web3storage/web3storage_test.go b/pkg/detectors/web3storage/web3storage_test.go index fde0c14ea81a2..0d087c2f0902c 100644 --- a/pkg/detectors/web3storage/web3storage_test.go +++ b/pkg/detectors/web3storage/web3storage_test.go @@ -4,11 +4,12 @@ package web3storage import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/webex/webex.go b/pkg/detectors/webex/webex.go index 38c732ca11331..d7243da89beb9 100644 --- a/pkg/detectors/webex/webex.go +++ b/pkg/detectors/webex/webex.go @@ -1,13 +1,14 @@ package webex import ( - "context" "encoding/json" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/webex/webex_test.go b/pkg/detectors/webex/webex_test.go index 42aee0ff8d2fc..76283488959ab 100644 --- a/pkg/detectors/webex/webex_test.go +++ b/pkg/detectors/webex/webex_test.go @@ -4,12 +4,14 @@ package webex import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/webflow/webflow.go b/pkg/detectors/webflow/webflow.go index 25ab7c84bdd73..2b66a139e45fb 100644 --- a/pkg/detectors/webflow/webflow.go +++ b/pkg/detectors/webflow/webflow.go @@ -1,12 +1,13 @@ package webflow import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/webflow/webflow_test.go b/pkg/detectors/webflow/webflow_test.go index f4c3e7c0eea93..d22a665c06548 100644 --- a/pkg/detectors/webflow/webflow_test.go +++ b/pkg/detectors/webflow/webflow_test.go @@ -4,11 +4,12 @@ package webflow import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/webscraper/webscraper.go b/pkg/detectors/webscraper/webscraper.go index 9b374f6dfd626..2352da921c822 100644 --- a/pkg/detectors/webscraper/webscraper.go +++ b/pkg/detectors/webscraper/webscraper.go @@ -1,12 +1,13 @@ package webscraper import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/webscraper/webscraper_test.go b/pkg/detectors/webscraper/webscraper_test.go index 539cb40e5c9f5..79227db4075c7 100644 --- a/pkg/detectors/webscraper/webscraper_test.go +++ b/pkg/detectors/webscraper/webscraper_test.go @@ -4,12 +4,14 @@ package webscraper import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/webscraping/webscraping.go b/pkg/detectors/webscraping/webscraping.go index 5d5118ab7bc57..e1e379246e7d3 100644 --- a/pkg/detectors/webscraping/webscraping.go +++ b/pkg/detectors/webscraping/webscraping.go @@ -1,12 +1,13 @@ package webscraping import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/webscraping/webscraping_test.go b/pkg/detectors/webscraping/webscraping_test.go index ab0399c6467c1..7e0bb6d741df2 100644 --- a/pkg/detectors/webscraping/webscraping_test.go +++ b/pkg/detectors/webscraping/webscraping_test.go @@ -4,12 +4,14 @@ package webscraping import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/websitepulse/websitepulse.go b/pkg/detectors/websitepulse/websitepulse.go index e8eef87645127..a2d61fb21633d 100644 --- a/pkg/detectors/websitepulse/websitepulse.go +++ b/pkg/detectors/websitepulse/websitepulse.go @@ -1,13 +1,14 @@ package websitepulse import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/websitepulse/websitepulse_test.go b/pkg/detectors/websitepulse/websitepulse_test.go index 24e85fc1201a0..433fb1b30c2f0 100644 --- a/pkg/detectors/websitepulse/websitepulse_test.go +++ b/pkg/detectors/websitepulse/websitepulse_test.go @@ -1,12 +1,14 @@ package websitepulse import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/wepay/wepay.go b/pkg/detectors/wepay/wepay.go index 856e94d489202..bceb47d9a7fc3 100644 --- a/pkg/detectors/wepay/wepay.go +++ b/pkg/detectors/wepay/wepay.go @@ -1,11 +1,12 @@ package wepay import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/wepay/wepay_test.go b/pkg/detectors/wepay/wepay_test.go index dc42b6f8f3e9c..dc86873c3a294 100644 --- a/pkg/detectors/wepay/wepay_test.go +++ b/pkg/detectors/wepay/wepay_test.go @@ -4,12 +4,14 @@ package wepay import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/whoxy/whoxy.go b/pkg/detectors/whoxy/whoxy.go index 90478b875da05..f9216a6fa4dff 100644 --- a/pkg/detectors/whoxy/whoxy.go +++ b/pkg/detectors/whoxy/whoxy.go @@ -1,13 +1,14 @@ package whoxy import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/whoxy/whoxy_test.go b/pkg/detectors/whoxy/whoxy_test.go index 503f037a2f207..64f081012f270 100644 --- a/pkg/detectors/whoxy/whoxy_test.go +++ b/pkg/detectors/whoxy/whoxy_test.go @@ -4,12 +4,14 @@ package whoxy import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/wistia/wistia.go b/pkg/detectors/wistia/wistia.go index 5a611ae5b16d7..62096999cbed9 100644 --- a/pkg/detectors/wistia/wistia.go +++ b/pkg/detectors/wistia/wistia.go @@ -1,11 +1,12 @@ package wistia import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/wistia/wistia_test.go b/pkg/detectors/wistia/wistia_test.go index 9bfb0ee85ee9b..28f6157724bcf 100644 --- a/pkg/detectors/wistia/wistia_test.go +++ b/pkg/detectors/wistia/wistia_test.go @@ -4,12 +4,14 @@ package wistia import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/wit/wit.go b/pkg/detectors/wit/wit.go index 239250b21b3c5..547057c89826a 100644 --- a/pkg/detectors/wit/wit.go +++ b/pkg/detectors/wit/wit.go @@ -1,12 +1,13 @@ package wit import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/wit/wit_test.go b/pkg/detectors/wit/wit_test.go index d774a6537ac45..7884edaa195a5 100644 --- a/pkg/detectors/wit/wit_test.go +++ b/pkg/detectors/wit/wit_test.go @@ -4,12 +4,14 @@ package wit import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/worksnaps/worksnaps.go b/pkg/detectors/worksnaps/worksnaps.go index e2e8b8e3036e0..f6ad8dc228fd6 100644 --- a/pkg/detectors/worksnaps/worksnaps.go +++ b/pkg/detectors/worksnaps/worksnaps.go @@ -1,13 +1,14 @@ package worksnaps import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/worksnaps/worksnaps_test.go b/pkg/detectors/worksnaps/worksnaps_test.go index 03d4172ef1826..b395d2695d1e4 100644 --- a/pkg/detectors/worksnaps/worksnaps_test.go +++ b/pkg/detectors/worksnaps/worksnaps_test.go @@ -4,12 +4,14 @@ package worksnaps import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/workstack/workstack.go b/pkg/detectors/workstack/workstack.go index 5cc825923a2dc..685f38e649591 100644 --- a/pkg/detectors/workstack/workstack.go +++ b/pkg/detectors/workstack/workstack.go @@ -1,11 +1,12 @@ package workstack import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/workstack/workstack_test.go b/pkg/detectors/workstack/workstack_test.go index 4ae883faf57a6..092785a4ff40b 100644 --- a/pkg/detectors/workstack/workstack_test.go +++ b/pkg/detectors/workstack/workstack_test.go @@ -4,12 +4,14 @@ package workstack import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/worldcoinindex/worldcoinindex.go b/pkg/detectors/worldcoinindex/worldcoinindex.go index 76cac67f4bc62..2b3fc86875259 100644 --- a/pkg/detectors/worldcoinindex/worldcoinindex.go +++ b/pkg/detectors/worldcoinindex/worldcoinindex.go @@ -1,13 +1,14 @@ package worldcoinindex import ( - "context" "fmt" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/worldcoinindex/worldcoinindex_test.go b/pkg/detectors/worldcoinindex/worldcoinindex_test.go index c64433f5e5137..51d59450313d0 100644 --- a/pkg/detectors/worldcoinindex/worldcoinindex_test.go +++ b/pkg/detectors/worldcoinindex/worldcoinindex_test.go @@ -4,12 +4,14 @@ package worldcoinindex import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/worldweather/worldweather.go b/pkg/detectors/worldweather/worldweather.go index f6d74b7520436..b3a8813adba23 100644 --- a/pkg/detectors/worldweather/worldweather.go +++ b/pkg/detectors/worldweather/worldweather.go @@ -1,12 +1,13 @@ package worldweather import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/worldweather/worldweather_test.go b/pkg/detectors/worldweather/worldweather_test.go index 9bcdb3907d7a1..f52d60a0c4097 100644 --- a/pkg/detectors/worldweather/worldweather_test.go +++ b/pkg/detectors/worldweather/worldweather_test.go @@ -4,12 +4,14 @@ package worldweather import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/wrike/wrike.go b/pkg/detectors/wrike/wrike.go index 1587641677d52..227fc2567f9df 100644 --- a/pkg/detectors/wrike/wrike.go +++ b/pkg/detectors/wrike/wrike.go @@ -1,12 +1,13 @@ package wrike import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/wrike/wrike_test.go b/pkg/detectors/wrike/wrike_test.go index 6bfffcc9e8efc..ca688feb3e7b0 100644 --- a/pkg/detectors/wrike/wrike_test.go +++ b/pkg/detectors/wrike/wrike_test.go @@ -4,12 +4,14 @@ package wrike import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/yandex/yandex.go b/pkg/detectors/yandex/yandex.go index 142e2ce7c1ed1..afc36e9b46f1d 100644 --- a/pkg/detectors/yandex/yandex.go +++ b/pkg/detectors/yandex/yandex.go @@ -1,11 +1,12 @@ package yandex import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/yandex/yandex_test.go b/pkg/detectors/yandex/yandex_test.go index 8e20383628f17..02c1d8450de55 100644 --- a/pkg/detectors/yandex/yandex_test.go +++ b/pkg/detectors/yandex/yandex_test.go @@ -4,12 +4,14 @@ package yandex import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/yelp/yelp.go b/pkg/detectors/yelp/yelp.go index 5278b6d3e1649..2198cb61f946c 100644 --- a/pkg/detectors/yelp/yelp.go +++ b/pkg/detectors/yelp/yelp.go @@ -1,12 +1,13 @@ package yelp import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/yelp/yelp_test.go b/pkg/detectors/yelp/yelp_test.go index 91c16f19bfde1..54cc87881689e 100644 --- a/pkg/detectors/yelp/yelp_test.go +++ b/pkg/detectors/yelp/yelp_test.go @@ -4,12 +4,14 @@ package yelp import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/youneedabudget/youneedabudget.go b/pkg/detectors/youneedabudget/youneedabudget.go index a95e1003f02c5..cbd997a2a11fb 100644 --- a/pkg/detectors/youneedabudget/youneedabudget.go +++ b/pkg/detectors/youneedabudget/youneedabudget.go @@ -1,12 +1,13 @@ package youneedabudget import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/youneedabudget/youneedabudget_test.go b/pkg/detectors/youneedabudget/youneedabudget_test.go index 3c852108e8bad..57835b0e94648 100644 --- a/pkg/detectors/youneedabudget/youneedabudget_test.go +++ b/pkg/detectors/youneedabudget/youneedabudget_test.go @@ -4,12 +4,14 @@ package youneedabudget import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/yousign/yousign.go b/pkg/detectors/yousign/yousign.go index 36cfe6e9f2781..c6fb35735e81e 100644 --- a/pkg/detectors/yousign/yousign.go +++ b/pkg/detectors/yousign/yousign.go @@ -1,12 +1,13 @@ package yousign import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/yousign/yousign_test.go b/pkg/detectors/yousign/yousign_test.go index acecdef047e5a..42afb0317e620 100644 --- a/pkg/detectors/yousign/yousign_test.go +++ b/pkg/detectors/yousign/yousign_test.go @@ -4,12 +4,14 @@ package yousign import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/youtubeapikey/youtubeapikey.go b/pkg/detectors/youtubeapikey/youtubeapikey.go index c4d98ef1ba163..806a809091895 100644 --- a/pkg/detectors/youtubeapikey/youtubeapikey.go +++ b/pkg/detectors/youtubeapikey/youtubeapikey.go @@ -1,11 +1,12 @@ package youtubeapikey import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/youtubeapikey/youtubeapikey_test.go b/pkg/detectors/youtubeapikey/youtubeapikey_test.go index ed24f95be51c9..d084935625ebe 100644 --- a/pkg/detectors/youtubeapikey/youtubeapikey_test.go +++ b/pkg/detectors/youtubeapikey/youtubeapikey_test.go @@ -4,12 +4,14 @@ package youtubeapikey import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zapierwebhook/zapierwebhook.go b/pkg/detectors/zapierwebhook/zapierwebhook.go index 620c027f88516..17889d66e60e6 100644 --- a/pkg/detectors/zapierwebhook/zapierwebhook.go +++ b/pkg/detectors/zapierwebhook/zapierwebhook.go @@ -1,11 +1,12 @@ package zapierwebhook import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/zapierwebhook/zapierwebhook_test.go b/pkg/detectors/zapierwebhook/zapierwebhook_test.go index 77512d872417c..cfa7b21b920c9 100644 --- a/pkg/detectors/zapierwebhook/zapierwebhook_test.go +++ b/pkg/detectors/zapierwebhook/zapierwebhook_test.go @@ -4,12 +4,14 @@ package zapierwebhook import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zendeskapi/zendeskapi.go b/pkg/detectors/zendeskapi/zendeskapi.go index 9438ea38d2426..e688fcef85cdf 100644 --- a/pkg/detectors/zendeskapi/zendeskapi.go +++ b/pkg/detectors/zendeskapi/zendeskapi.go @@ -1,13 +1,14 @@ package zendeskapi import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/zendeskapi/zendeskapi_test.go b/pkg/detectors/zendeskapi/zendeskapi_test.go index 3311161e1150d..ebd1a996b960a 100644 --- a/pkg/detectors/zendeskapi/zendeskapi_test.go +++ b/pkg/detectors/zendeskapi/zendeskapi_test.go @@ -4,12 +4,14 @@ package zendeskapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zenkitapi/zenkitapi.go b/pkg/detectors/zenkitapi/zenkitapi.go index 17bb385abf0dc..c67544bac915d 100644 --- a/pkg/detectors/zenkitapi/zenkitapi.go +++ b/pkg/detectors/zenkitapi/zenkitapi.go @@ -1,11 +1,12 @@ package zenkitapi import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/zenkitapi/zenkitapi_test.go b/pkg/detectors/zenkitapi/zenkitapi_test.go index 3ebfaeb830761..478ffec895371 100644 --- a/pkg/detectors/zenkitapi/zenkitapi_test.go +++ b/pkg/detectors/zenkitapi/zenkitapi_test.go @@ -4,11 +4,12 @@ package zenkitapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zenrows/zenrows.go b/pkg/detectors/zenrows/zenrows.go index 561919b4508c6..0ba5974a049b6 100644 --- a/pkg/detectors/zenrows/zenrows.go +++ b/pkg/detectors/zenrows/zenrows.go @@ -1,12 +1,13 @@ package zenrows import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/zenrows/zenrows_test.go b/pkg/detectors/zenrows/zenrows_test.go index ffe91c405ed61..cd2808ff9b2bf 100644 --- a/pkg/detectors/zenrows/zenrows_test.go +++ b/pkg/detectors/zenrows/zenrows_test.go @@ -4,12 +4,14 @@ package zenrows import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zenscrape/zenscrape.go b/pkg/detectors/zenscrape/zenscrape.go index 1ec246c1fddc9..29f948575e934 100644 --- a/pkg/detectors/zenscrape/zenscrape.go +++ b/pkg/detectors/zenscrape/zenscrape.go @@ -1,12 +1,13 @@ package zenscrape import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/zenscrape/zenscrape_test.go b/pkg/detectors/zenscrape/zenscrape_test.go index 332e7bae8e533..45fc313636b50 100644 --- a/pkg/detectors/zenscrape/zenscrape_test.go +++ b/pkg/detectors/zenscrape/zenscrape_test.go @@ -4,12 +4,14 @@ package zenscrape import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zenserp/zenserp.go b/pkg/detectors/zenserp/zenserp.go index 5ae78e9458b1a..4e10929914f3e 100644 --- a/pkg/detectors/zenserp/zenserp.go +++ b/pkg/detectors/zenserp/zenserp.go @@ -1,13 +1,14 @@ package zenserp import ( - "context" "io" "net/http" "regexp" "strings" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/zenserp/zenserp_test.go b/pkg/detectors/zenserp/zenserp_test.go index 89394bee77917..8bb6a1c032fd9 100644 --- a/pkg/detectors/zenserp/zenserp_test.go +++ b/pkg/detectors/zenserp/zenserp_test.go @@ -4,11 +4,12 @@ package zenserp import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zeplin/zeplin.go b/pkg/detectors/zeplin/zeplin.go index fe41d8d98d0c5..040f8ef6edb3c 100644 --- a/pkg/detectors/zeplin/zeplin.go +++ b/pkg/detectors/zeplin/zeplin.go @@ -1,12 +1,13 @@ package zeplin import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/zeplin/zeplin_test.go b/pkg/detectors/zeplin/zeplin_test.go index d4c4965219363..54d03d18c7bcf 100644 --- a/pkg/detectors/zeplin/zeplin_test.go +++ b/pkg/detectors/zeplin/zeplin_test.go @@ -4,12 +4,14 @@ package zeplin import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zerobounce/zerobounce.go b/pkg/detectors/zerobounce/zerobounce.go index 936b1431aed47..7c185f71007a4 100644 --- a/pkg/detectors/zerobounce/zerobounce.go +++ b/pkg/detectors/zerobounce/zerobounce.go @@ -1,12 +1,13 @@ package zerobounce import ( - "context" "io" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/zerobounce/zerobounce_test.go b/pkg/detectors/zerobounce/zerobounce_test.go index e011c8974468c..def8ddcf82267 100644 --- a/pkg/detectors/zerobounce/zerobounce_test.go +++ b/pkg/detectors/zerobounce/zerobounce_test.go @@ -4,12 +4,14 @@ package zerobounce import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zerotier/zerotier.go b/pkg/detectors/zerotier/zerotier.go index 5c094a1cf3264..803a8d611617b 100644 --- a/pkg/detectors/zerotier/zerotier.go +++ b/pkg/detectors/zerotier/zerotier.go @@ -1,12 +1,13 @@ package zerotier import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/zerotier/zerotier_test.go b/pkg/detectors/zerotier/zerotier_test.go index b35ed7149cdea..01116fb4a899d 100644 --- a/pkg/detectors/zerotier/zerotier_test.go +++ b/pkg/detectors/zerotier/zerotier_test.go @@ -4,11 +4,12 @@ package zerotier import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/pkg/detectors/zipapi/zipapi.go b/pkg/detectors/zipapi/zipapi.go index 2f25c2e8aee5a..ee1155bdeb710 100644 --- a/pkg/detectors/zipapi/zipapi.go +++ b/pkg/detectors/zipapi/zipapi.go @@ -1,13 +1,14 @@ package zipapi import ( - "context" b64 "encoding/base64" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/zipapi/zipapi_test.go b/pkg/detectors/zipapi/zipapi_test.go index 8c5c73a1e847d..f7a025c20706d 100644 --- a/pkg/detectors/zipapi/zipapi_test.go +++ b/pkg/detectors/zipapi/zipapi_test.go @@ -4,12 +4,14 @@ package zipapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zipbooks/zipbooks.go b/pkg/detectors/zipbooks/zipbooks.go index ba7d5801f564b..94b1573b4e9df 100644 --- a/pkg/detectors/zipbooks/zipbooks.go +++ b/pkg/detectors/zipbooks/zipbooks.go @@ -1,12 +1,13 @@ package zipbooks import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/zipbooks/zipbooks_test.go b/pkg/detectors/zipbooks/zipbooks_test.go index 1e5e4532738a7..10529ff14dc44 100644 --- a/pkg/detectors/zipbooks/zipbooks_test.go +++ b/pkg/detectors/zipbooks/zipbooks_test.go @@ -4,11 +4,12 @@ package zipbooks import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zipcodeapi/zipcodeapi.go b/pkg/detectors/zipcodeapi/zipcodeapi.go index a4949f1c1b5d3..87bf6e4b0b6e2 100644 --- a/pkg/detectors/zipcodeapi/zipcodeapi.go +++ b/pkg/detectors/zipcodeapi/zipcodeapi.go @@ -1,12 +1,13 @@ package zipcodeapi import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/zipcodeapi/zipcodeapi_test.go b/pkg/detectors/zipcodeapi/zipcodeapi_test.go index 718f9152eabd0..52a36bb8e54e8 100644 --- a/pkg/detectors/zipcodeapi/zipcodeapi_test.go +++ b/pkg/detectors/zipcodeapi/zipcodeapi_test.go @@ -4,12 +4,14 @@ package zipcodeapi import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zipcodebase/zipcodebase.go b/pkg/detectors/zipcodebase/zipcodebase.go index f153a8a2f6c6f..7ef6d238489c9 100644 --- a/pkg/detectors/zipcodebase/zipcodebase.go +++ b/pkg/detectors/zipcodebase/zipcodebase.go @@ -1,11 +1,12 @@ package zipcodebase import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/zipcodebase/zipcodebase_test.go b/pkg/detectors/zipcodebase/zipcodebase_test.go index 2a5fd2a0d5292..e5832fb607128 100644 --- a/pkg/detectors/zipcodebase/zipcodebase_test.go +++ b/pkg/detectors/zipcodebase/zipcodebase_test.go @@ -4,12 +4,14 @@ package zipcodebase import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zonkafeedback/zonkafeedback.go b/pkg/detectors/zonkafeedback/zonkafeedback.go index 90160fc78e117..8c7046e84a618 100644 --- a/pkg/detectors/zonkafeedback/zonkafeedback.go +++ b/pkg/detectors/zonkafeedback/zonkafeedback.go @@ -1,11 +1,12 @@ package zonkafeedback import ( - "context" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/zonkafeedback/zonkafeedback_test.go b/pkg/detectors/zonkafeedback/zonkafeedback_test.go index 0dc18b8719cc4..6bdc8b4a6b6f6 100644 --- a/pkg/detectors/zonkafeedback/zonkafeedback_test.go +++ b/pkg/detectors/zonkafeedback/zonkafeedback_test.go @@ -4,12 +4,14 @@ package zonkafeedback import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/kylelemons/godebug/pretty" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zulipchat/zulipchat.go b/pkg/detectors/zulipchat/zulipchat.go index 89f9266906f3e..7c4563bbdcd3a 100644 --- a/pkg/detectors/zulipchat/zulipchat.go +++ b/pkg/detectors/zulipchat/zulipchat.go @@ -1,12 +1,13 @@ package zulipchat import ( - "context" "fmt" "net/http" "regexp" "strings" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "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/zulipchat/zulipchat_test.go b/pkg/detectors/zulipchat/zulipchat_test.go index ae76fa9ce9c52..9251f128d1bdc 100644 --- a/pkg/detectors/zulipchat/zulipchat_test.go +++ b/pkg/detectors/zulipchat/zulipchat_test.go @@ -4,11 +4,12 @@ package zulipchat import ( - "context" "fmt" "testing" "time" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" + "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts"