From e44802a31db93e670cec194ebc2e0c163335b20f Mon Sep 17 00:00:00 2001 From: ahrav Date: Tue, 23 Jan 2024 13:16:22 -0800 Subject: [PATCH] [feat] - Replace regexp pkg w/ go-re2 in detectors (#2324) * update detectors to use go-re regex library replacement * update go mod and sum * add tests with invalid utf-8 * revert --- go.mod | 3 + go.sum | 6 ++ pkg/detectors/abbysale/abbysale.go | 2 +- pkg/detectors/abstract/abstract.go | 2 +- pkg/detectors/abuseipdb/abuseipdb.go | 2 +- pkg/detectors/accuweather/accuweather.go | 2 +- pkg/detectors/adafruitio/adafruitio.go | 2 +- pkg/detectors/adobeio/adobeio.go | 2 +- pkg/detectors/adzuna/adzuna.go | 2 +- pkg/detectors/aeroworkflow/aeroworkflow.go | 2 +- pkg/detectors/agora/agora.go | 2 +- pkg/detectors/aha/aha.go | 2 +- .../airbrakeprojectkey/airbrakeprojectkey.go | 2 +- .../airbrakeuserkey/airbrakeuserkey.go | 2 +- pkg/detectors/airship/airship.go | 2 +- .../airtableapikey/airtableapikey.go | 2 +- pkg/detectors/airvisual/airvisual.go | 2 +- pkg/detectors/aiven/aiven.go | 2 +- pkg/detectors/alchemy/alchemy.go | 2 +- pkg/detectors/alconost/alconost.go | 2 +- pkg/detectors/alegra/alegra.go | 2 +- pkg/detectors/aletheiaapi/aletheiaapi.go | 2 +- .../algoliaadminkey/algoliaadminkey.go | 2 +- pkg/detectors/alibaba/alibaba.go | 2 +- pkg/detectors/alienvault/alienvault.go | 2 +- pkg/detectors/allsports/allsports.go | 2 +- pkg/detectors/amadeus/amadeus.go | 2 +- pkg/detectors/ambee/ambee.go | 2 +- .../amplitudeapikey/amplitudeapikey.go | 2 +- pkg/detectors/anthropic/anthropic.go | 2 +- pkg/detectors/anypoint/anypoint.go | 2 +- pkg/detectors/apacta/apacta.go | 2 +- pkg/detectors/api2cart/api2cart.go | 2 +- pkg/detectors/apideck/apideck.go | 2 +- pkg/detectors/apiflash/apiflash.go | 2 +- pkg/detectors/apifonica/apifonica.go | 2 +- pkg/detectors/apify/apify.go | 2 +- pkg/detectors/apilayer/apilayer.go | 2 +- pkg/detectors/apimatic/apimatic.go | 2 +- pkg/detectors/apiscience/apiscience.go | 2 +- pkg/detectors/apitemplate/apitemplate.go | 2 +- pkg/detectors/apollo/apollo.go | 2 +- pkg/detectors/appcues/appcues.go | 2 +- pkg/detectors/appfollow/appfollow.go | 2 +- pkg/detectors/appointedd/appointedd.go | 2 +- pkg/detectors/appoptics/appoptics.go | 2 +- pkg/detectors/appsynergy/appsynergy.go | 2 +- pkg/detectors/apptivo/apptivo.go | 2 +- pkg/detectors/artifactory/artifactory.go | 2 +- pkg/detectors/artsy/artsy.go | 2 +- pkg/detectors/asanaoauth/asanaoauth.go | 2 +- .../asanapersonalaccesstoken.go | 2 +- pkg/detectors/assemblyai/assemblyai.go | 2 +- pkg/detectors/atera/atera.go | 2 +- pkg/detectors/audd/audd.go | 2 +- .../auth0managementapitoken.go | 2 +- pkg/detectors/auth0oauth/auth0oauth.go | 2 +- pkg/detectors/autodesk/autodesk.go | 2 +- pkg/detectors/autoklose/autoklose.go | 2 +- pkg/detectors/autopilot/autopilot.go | 2 +- .../avazapersonalaccesstoken.go | 2 +- pkg/detectors/aviationstack/aviationstack.go | 2 +- pkg/detectors/aws/aws.go | 3 +- pkg/detectors/awssessionkeys/awssessionkey.go | 2 +- pkg/detectors/axonaut/axonaut.go | 2 +- pkg/detectors/aylien/aylien.go | 2 +- pkg/detectors/ayrshare/ayrshare.go | 2 +- pkg/detectors/azure/azure.go | 2 +- pkg/detectors/azurebatch/azurebatch.go | 2 +- .../azurecontainerregistry.go | 2 +- pkg/detectors/azurestorage/azurestorage.go | 2 +- .../azurestorage/azurestorage_test.go | 2 +- pkg/detectors/bannerbear/bannerbear.go | 2 +- pkg/detectors/baremetrics/baremetrics.go | 2 +- pkg/detectors/beamer/beamer.go | 2 +- pkg/detectors/beebole/beebole.go | 2 +- pkg/detectors/besnappy/besnappy.go | 2 +- pkg/detectors/besttime/besttime.go | 2 +- pkg/detectors/betterstack/betterstack.go | 2 +- pkg/detectors/billomat/billomat.go | 2 +- pkg/detectors/bitbar/bitbar.go | 2 +- .../bitcoinaverage/bitcoinaverage.go | 2 +- pkg/detectors/bitfinex/bitfinex.go | 2 +- .../bitlyaccesstoken/bitlyaccesstoken.go | 2 +- pkg/detectors/bitmex/bitmex.go | 2 +- pkg/detectors/blazemeter/blazemeter.go | 2 +- pkg/detectors/blitapp/blitapp.go | 2 +- pkg/detectors/blocknative/blocknative.go | 2 +- pkg/detectors/blogger/blogger.go | 2 +- pkg/detectors/bombbomb/bombbomb.go | 2 +- pkg/detectors/boostnote/boostnote.go | 2 +- pkg/detectors/borgbase/borgbase.go | 2 +- .../braintreepayments/braintreepayments.go | 2 +- pkg/detectors/brandfetch/brandfetch.go | 2 +- pkg/detectors/browserstack/browserstack.go | 2 +- pkg/detectors/browshot/browshot.go | 2 +- pkg/detectors/bscscan/bscscan.go | 34 ++++++------ pkg/detectors/buddyns/buddyns.go | 2 +- pkg/detectors/budibase/budibase.go | 2 +- pkg/detectors/bugherd/bugherd.go | 2 +- pkg/detectors/bugsnag/bugsnag.go | 2 +- pkg/detectors/buildkite/buildkite.go | 2 +- pkg/detectors/buildkitev2/buildkite.go | 2 +- pkg/detectors/bulbul/bulbul.go | 2 +- pkg/detectors/bulksms/bulksms.go | 2 +- pkg/detectors/buttercms/buttercms.go | 2 +- pkg/detectors/caflou/caflou.go | 2 +- pkg/detectors/calendarific/calendarific.go | 2 +- .../calendlyapikey/calendlyapikey.go | 2 +- pkg/detectors/calorieninja/calorieninja.go | 2 +- pkg/detectors/campayn/campayn.go | 2 +- pkg/detectors/cannyio/cannyio.go | 2 +- pkg/detectors/capsulecrm/capsulecrm.go | 2 +- pkg/detectors/captaindata/captaindata.go | 2 +- .../carboninterface/carboninterface.go | 2 +- pkg/detectors/cashboard/cashboard.go | 2 +- pkg/detectors/caspio/caspio.go | 2 +- pkg/detectors/censys/censys.go | 2 +- .../centralstationcrm/centralstationcrm.go | 2 +- pkg/detectors/cexio/cexio.go | 2 +- pkg/detectors/chartmogul/chartmogul.go | 2 +- pkg/detectors/chatbot/chatbot.go | 2 +- pkg/detectors/chatfule/chatfule.go | 2 +- pkg/detectors/checio/checio.go | 2 +- pkg/detectors/checklyhq/checklyhq.go | 2 +- pkg/detectors/checkout/checkout.go | 2 +- pkg/detectors/checkvist/checkvist.go | 2 +- pkg/detectors/cicero/cicero.go | 2 +- pkg/detectors/circleci/circleci.go | 2 +- pkg/detectors/clarifai/clarifai.go | 2 +- pkg/detectors/clearbit/clearbit.go | 2 +- pkg/detectors/clickhelp/clickhelp.go | 2 +- pkg/detectors/clicksendsms/clicksendsms.go | 2 +- .../clickuppersonaltoken.go | 2 +- pkg/detectors/cliengo/cliengo.go | 2 +- pkg/detectors/clinchpad/clinchpad.go | 2 +- pkg/detectors/clockify/clockify.go | 2 +- pkg/detectors/clockworksms/clockworksms.go | 2 +- pkg/detectors/closecrm/close.go | 2 +- pkg/detectors/cloudconvert/cloudconvert.go | 2 +- pkg/detectors/cloudelements/cloudelements.go | 2 +- .../cloudflareapitoken/cloudflareapitoken.go | 2 +- .../cloudflarecakey/cloudflarecakey.go | 2 +- .../cloudflareglobalapikey.go | 2 +- pkg/detectors/cloudimage/cloudimage.go | 2 +- pkg/detectors/cloudmersive/cloudmersive.go | 2 +- pkg/detectors/cloudplan/cloudplan.go | 2 +- pkg/detectors/cloudsmith/cloudsmith.go | 2 +- pkg/detectors/cloverly/cloverly.go | 2 +- pkg/detectors/cloze/cloze.go | 2 +- pkg/detectors/clustdoc/clustdoc.go | 2 +- pkg/detectors/coda/coda.go | 2 +- pkg/detectors/codacy/codacy.go | 2 +- pkg/detectors/codeclimate/codeclimate.go | 2 +- pkg/detectors/codemagic/codemagic.go | 2 +- pkg/detectors/codequiry/codequiry.go | 2 +- pkg/detectors/coinapi/coinapi.go | 2 +- pkg/detectors/coinbase/coinbase.go | 2 +- pkg/detectors/coinbase_waas/coinbase_waas.go | 2 +- pkg/detectors/coinlayer/coinlayer.go | 2 +- pkg/detectors/coinlib/coinlib.go | 2 +- pkg/detectors/coinmarketcap/coinmarketcap.go | 2 +- pkg/detectors/collect2/collect2.go | 2 +- pkg/detectors/column/column.go | 2 +- pkg/detectors/commercejs/commercejs.go | 2 +- pkg/detectors/commodities/commodities.go | 2 +- pkg/detectors/companyhub/companyhub.go | 2 +- pkg/detectors/confluent/confluent.go | 2 +- .../contentfulpersonalaccesstoken.go | 2 +- .../conversiontools/conversiontools.go | 2 +- pkg/detectors/convertapi/convertapi.go | 2 +- pkg/detectors/convertkit/convertkit.go | 2 +- pkg/detectors/convier/convier.go | 2 +- pkg/detectors/copper/copper.go | 2 +- pkg/detectors/couchbase/couchbase.go | 4 +- pkg/detectors/countrylayer/countrylayer.go | 2 +- pkg/detectors/courier/courier.go | 2 +- pkg/detectors/coveralls/coveralls.go | 2 +- pkg/detectors/craftmypdf/craftmypdf.go | 3 +- .../crossbrowsertesting.go | 2 +- pkg/detectors/crowdin/crowdin.go | 2 +- pkg/detectors/cryptocompare/cryptocompare.go | 2 +- pkg/detectors/currencycloud/currencycloud.go | 2 +- .../currencyfreaks/currencyfreaks.go | 2 +- pkg/detectors/currencylayer/currencylayer.go | 2 +- pkg/detectors/currencyscoop/currencyscoop.go | 2 +- pkg/detectors/currentsapi/currentsapi.go | 2 +- pkg/detectors/customerguru/customerguru.go | 2 +- pkg/detectors/customerio/customerio.go | 2 +- pkg/detectors/d7network/d7network.go | 2 +- pkg/detectors/dailyco/dailyco.go | 2 +- pkg/detectors/dandelion/dandelion.go | 2 +- pkg/detectors/dareboost/dareboost.go | 2 +- pkg/detectors/databox/databox.go | 2 +- .../databrickstoken/databrickstoken.go | 2 +- pkg/detectors/datadogtoken/datadogtoken.go | 2 +- pkg/detectors/datagov/datagov.go | 2 +- pkg/detectors/debounce/debounce.go | 2 +- pkg/detectors/deepai/deepai.go | 2 +- pkg/detectors/deepgram/deepgram.go | 2 +- pkg/detectors/delighted/delighted.go | 2 +- pkg/detectors/demio/demio.go | 2 +- pkg/detectors/deno/denodeploy.go | 2 +- pkg/detectors/deputy/deputy.go | 2 +- pkg/detectors/detectify/detectify.go | 2 +- .../detectlanguage/detectlanguage.go | 2 +- pkg/detectors/dfuse/dfuse.go | 2 +- pkg/detectors/diffbot/diffbot.go | 2 +- pkg/detectors/diggernaut/diggernaut.go | 2 +- .../digitaloceantoken/digitaloceantoken.go | 2 +- .../digitaloceanv2/digitaloceanv2.go | 2 +- .../discordbottoken/discordbottoken.go | 2 +- .../discordwebhook/discordwebhook.go | 2 +- pkg/detectors/disqus/disqus.go | 2 +- pkg/detectors/ditto/ditto.go | 2 +- pkg/detectors/dnscheck/dnscheck.go | 2 +- pkg/detectors/dockerhub/dockerhub.go | 2 +- pkg/detectors/docparser/docparser.go | 2 +- pkg/detectors/documo/documo.go | 2 +- pkg/detectors/docusign/docusign.go | 2 +- pkg/detectors/doppler/doppler.go | 2 +- pkg/detectors/dotmailer/dotmailer.go | 2 +- pkg/detectors/dovico/dovico.go | 2 +- pkg/detectors/dronahq/dronahq.go | 2 +- pkg/detectors/droneci/droneci.go | 2 +- pkg/detectors/dropbox/dropbox.go | 2 +- pkg/detectors/duply/duply.go | 2 +- pkg/detectors/dwolla/dwolla.go | 2 +- pkg/detectors/dynalist/dynalist.go | 2 +- pkg/detectors/dyspatch/dyspatch.go | 2 +- .../eagleeyenetworks/eagleeyenetworks.go | 2 +- pkg/detectors/easyinsight/easyinsight.go | 2 +- pkg/detectors/ecostruxureit/ecostruxureit.go | 2 +- pkg/detectors/edamam/edamam.go | 2 +- pkg/detectors/edenai/edenai.go | 2 +- pkg/detectors/eightxeight/eightxeight.go | 2 +- pkg/detectors/elasticemail/elasticemail.go | 2 +- pkg/detectors/enablex/enablex.go | 2 +- pkg/detectors/enigma/enigma.go | 2 +- pkg/detectors/envoyapikey/envoyapikey.go | 2 +- pkg/detectors/etherscan/etherscan.go | 2 +- pkg/detectors/ethplorer/ethplorer.go | 2 +- pkg/detectors/etsyapikey/etsyapikey.go | 2 +- pkg/detectors/eventbrite/eventbrite.go | 2 +- pkg/detectors/everhour/everhour.go | 2 +- .../exchangerateapi/exchangerateapi.go | 2 +- .../exchangeratesapi/exchangeratesapi.go | 2 +- pkg/detectors/exportsdk/exportsdk.go | 2 +- pkg/detectors/extractorapi/extractorapi.go | 2 +- pkg/detectors/facebookoauth/facebookoauth.go | 2 +- pkg/detectors/faceplusplus/faceplusplus.go | 2 +- pkg/detectors/fastforex/fastforex.go | 2 +- .../fastlypersonaltoken.go | 2 +- pkg/detectors/feedier/feedier.go | 2 +- pkg/detectors/fetchrss/fetchrss.go | 2 +- pkg/detectors/fibery/fibery.go | 2 +- .../v1/figmapersonalaccesstoken.go | 2 +- .../v2/figmapersonalaccesstoken_v2.go | 2 +- pkg/detectors/fileio/fileio.go | 2 +- pkg/detectors/finage/finage.go | 2 +- .../financialmodelingprep.go | 2 +- pkg/detectors/findl/findl.go | 2 +- pkg/detectors/finnhub/finnhub.go | 2 +- pkg/detectors/fixerio/fixerio.go | 2 +- pkg/detectors/flatio/flatio.go | 2 +- pkg/detectors/fleetbase/fleetbase.go | 2 +- pkg/detectors/flickr/flickr.go | 2 +- pkg/detectors/flightapi/flightapi.go | 2 +- pkg/detectors/flightlabs/flightlabs.go | 2 +- pkg/detectors/flightstats/flightstats.go | 2 +- pkg/detectors/float/float.go | 2 +- pkg/detectors/flowdash/flowdash.go | 2 +- pkg/detectors/flowflu/flowflu.go | 2 +- pkg/detectors/flutterwave/flutterwave.go | 2 +- pkg/detectors/fmfw/fmfw.go | 2 +- pkg/detectors/formbucket/formbucket.go | 2 +- pkg/detectors/formcraft/formcraft.go | 2 +- pkg/detectors/formio/formio.go | 2 +- pkg/detectors/formsite/formsite.go | 2 +- pkg/detectors/foursquare/foursquare.go | 2 +- pkg/detectors/frameio/frameio.go | 2 +- pkg/detectors/freshbooks/freshbooks.go | 2 +- pkg/detectors/freshdesk/freshdesk.go | 2 +- pkg/detectors/front/front.go | 2 +- pkg/detectors/ftp/ftp.go | 2 +- pkg/detectors/fulcrum/fulcrum.go | 2 +- pkg/detectors/fullstory/fullstory.go | 2 +- pkg/detectors/fullstory_v2/fullstory_v2.go | 2 +- pkg/detectors/fusebill/fusebill.go | 2 +- pkg/detectors/fxmarket/fxmarket.go | 2 +- pkg/detectors/gcp/gcp.go | 2 +- pkg/detectors/geckoboard/geckoboard.go | 2 +- pkg/detectors/gemini/gemini.go | 2 +- pkg/detectors/generic/generic.go | 2 +- pkg/detectors/gengo/gengo.go | 2 +- pkg/detectors/geoapify/geoapify.go | 2 +- pkg/detectors/geocode/geocode.go | 2 +- pkg/detectors/geocodify/geocodify.go | 2 +- pkg/detectors/geocodio/geocodio.go | 2 +- pkg/detectors/geoipifi/geoipifi.go | 2 +- pkg/detectors/getemail/getemail.go | 2 +- pkg/detectors/getemails/getemails.go | 2 +- pkg/detectors/getgeoapi/getgeoapi.go | 2 +- pkg/detectors/getgist/getgist.go | 2 +- pkg/detectors/getresponse/getresponse.go | 2 +- pkg/detectors/getsandbox/getsandbox.go | 2 +- pkg/detectors/github/github.go | 2 +- pkg/detectors/github_oauth2/github_oauth2.go | 2 +- pkg/detectors/github_old/github_old.go | 2 +- pkg/detectors/githubapp/githubapp.go | 2 +- pkg/detectors/gitlab/gitlab.go | 2 +- pkg/detectors/gitlabv2/gitlab_v2.go | 2 +- pkg/detectors/gitter/gitter.go | 2 +- pkg/detectors/glassnode/glassnode.go | 2 +- pkg/detectors/gocanvas/gocanvas.go | 2 +- pkg/detectors/gocardless/gocardless.go | 2 +- pkg/detectors/goodday/goodday.go | 2 +- pkg/detectors/grafana/grafana.go | 2 +- .../grafanaserviceaccount.go | 2 +- pkg/detectors/graphcms/graphcms.go | 2 +- pkg/detectors/graphhopper/graphhopper.go | 2 +- pkg/detectors/groovehq/groovehq.go | 2 +- pkg/detectors/gtmetrix/gtmetrix.go | 2 +- pkg/detectors/guardianapi/guardianapi.go | 2 +- pkg/detectors/gumroad/gumroad.go | 2 +- pkg/detectors/guru/guru.go | 2 +- pkg/detectors/gyazo/gyazo.go | 2 +- pkg/detectors/happyscribe/happyscribe.go | 2 +- pkg/detectors/harvest/harvest.go | 2 +- pkg/detectors/hellosign/hellosign.go | 2 +- pkg/detectors/helpcrunch/helpcrunch.go | 2 +- pkg/detectors/helpscout/helpscout.go | 2 +- pkg/detectors/hereapi/hereapi.go | 2 +- pkg/detectors/heroku/heroku.go | 2 +- pkg/detectors/hive/hive.go | 2 +- pkg/detectors/hiveage/hiveage.go | 2 +- pkg/detectors/holidayapi/holidayapi.go | 2 +- pkg/detectors/holistic/holistic.go | 2 +- pkg/detectors/honeycomb/honeycomb.go | 2 +- pkg/detectors/host/host.go | 2 +- pkg/detectors/html2pdf/html2pdf.go | 2 +- pkg/detectors/hubspotapikey/hubspotapikey.go | 2 +- pkg/detectors/huggingface/huggingface.go | 2 +- pkg/detectors/huggingface/huggingface_test.go | 55 +++++++++++++++++++ pkg/detectors/humanity/humanity.go | 2 +- pkg/detectors/hunter/hunter.go | 2 +- pkg/detectors/hybiscus/hybiscus.go | 2 +- pkg/detectors/hypertrack/hypertrack.go | 2 +- .../ibmclouduserkey/ibmclouduserkey.go | 2 +- pkg/detectors/iconfinder/iconfinder.go | 2 +- pkg/detectors/iexapis/iexapis.go | 2 +- pkg/detectors/iexcloud/iexcloud.go | 2 +- pkg/detectors/imagekit/imagekit.go | 2 +- pkg/detectors/imagga/imagga.go | 2 +- pkg/detectors/impala/impala.go | 2 +- pkg/detectors/infura/infura.go | 2 +- pkg/detectors/insightly/insightly.go | 2 +- pkg/detectors/instabot/instabot.go | 2 +- pkg/detectors/instamojo/instamojo.go | 6 +- pkg/detectors/integromat/integromat.go | 2 +- pkg/detectors/intercom/intercom.go | 2 +- pkg/detectors/interseller/interseller.go | 2 +- pkg/detectors/intrinio/intrinio.go | 2 +- pkg/detectors/invoiceocean/invoiceocean.go | 2 +- pkg/detectors/ip2location/ip2location.go | 2 +- pkg/detectors/ipapi/ipapi.go | 2 +- pkg/detectors/ipgeolocation/ipgeolocation.go | 2 +- pkg/detectors/ipify/ipify.go | 2 +- pkg/detectors/ipinfo/ipinfo.go | 2 +- pkg/detectors/ipinfodb/ipinfodb.go | 2 +- pkg/detectors/ipquality/ipquality.go | 2 +- pkg/detectors/ipstack/ipstack.go | 2 +- pkg/detectors/jiratoken/jiratoken.go | 2 +- pkg/detectors/jiratoken_v2/jiratoken_v2.go | 2 +- pkg/detectors/jotform/jotform.go | 2 +- pkg/detectors/jumpcloud/jumpcloud.go | 2 +- pkg/detectors/juro/juro.go | 2 +- pkg/detectors/kanban/kanban.go | 2 +- pkg/detectors/kanbantool/kanbantool.go | 2 +- pkg/detectors/karmacrm/karmacrm.go | 2 +- pkg/detectors/keenio/keenio.go | 2 +- pkg/detectors/kickbox/kickbox.go | 2 +- pkg/detectors/klaviyo/klaviyo.go | 2 +- pkg/detectors/klipfolio/klipfolio.go | 2 +- pkg/detectors/knapsackpro/knapsackpro.go | 2 +- pkg/detectors/kontent/kontent.go | 2 +- pkg/detectors/kraken/kraken.go | 2 +- pkg/detectors/kucoin/kucoin.go | 2 +- pkg/detectors/kylas/kylas.go | 2 +- pkg/detectors/languagelayer/languagelayer.go | 2 +- pkg/detectors/lastfm/lastfm.go | 2 +- pkg/detectors/launchdarkly/launchdarkly.go | 2 +- pkg/detectors/ldap/ldap.go | 2 +- pkg/detectors/leadfeeder/leadfeeder.go | 2 +- pkg/detectors/lemlist/lemlist.go | 2 +- pkg/detectors/lemonsqueezy/lemonsqueezy.go | 2 +- pkg/detectors/lendflow/lendflow.go | 2 +- .../lessannoyingcrm/lessannoyingcrm.go | 2 +- pkg/detectors/lexigram/lexigram.go | 2 +- pkg/detectors/linearapi/linearapi.go | 2 +- pkg/detectors/linemessaging/linemessaging.go | 2 +- pkg/detectors/linenotify/linenotify.go | 2 +- pkg/detectors/linkpreview/linkpreview.go | 2 +- pkg/detectors/liveagent/liveagent.go | 2 +- pkg/detectors/livestorm/livestorm.go | 2 +- pkg/detectors/loadmill/loadmill.go | 2 +- pkg/detectors/lob/lob.go | 2 +- pkg/detectors/locationiq/locationiq.go | 2 +- pkg/detectors/loggly/loggly.go | 2 +- pkg/detectors/loginradius/loginradius.go | 2 +- pkg/detectors/logzio/logzio.go | 2 +- pkg/detectors/lokalisetoken/lokalisetoken.go | 2 +- pkg/detectors/loyverse/loyverse.go | 2 +- pkg/detectors/lunchmoney/lunchmoney.go | 2 +- pkg/detectors/luno/luno.go | 2 +- pkg/detectors/m3o/m3o.go | 2 +- pkg/detectors/macaddress/macaddress.go | 2 +- pkg/detectors/madkudu/madkudu.go | 2 +- pkg/detectors/magicbell/magicbell.go | 2 +- pkg/detectors/magnetic/magnetic.go | 2 +- pkg/detectors/mailboxlayer/mailboxlayer.go | 2 +- pkg/detectors/mailchimp/mailchimp.go | 4 +- pkg/detectors/mailerlite/mailerlite.go | 2 +- pkg/detectors/mailgun/mailgun.go | 4 +- .../mailjetbasicauth/mailjetbasicauth.go | 2 +- pkg/detectors/mailjetsms/mailjetsms.go | 2 +- pkg/detectors/mailmodo/mailmodo.go | 2 +- pkg/detectors/mailsac/mailsac.go | 2 +- pkg/detectors/mandrill/mandrill.go | 2 +- pkg/detectors/manifest/manifest.go | 2 +- pkg/detectors/mapbox/mapbox.go | 2 +- pkg/detectors/mapquest/mapquest.go | 2 +- pkg/detectors/marketstack/marketstack.go | 2 +- .../mattermostpersonaltoken.go | 2 +- pkg/detectors/mavenlink/mavenlink.go | 2 +- .../maxmindlicense/maxmindlicense.go | 2 +- pkg/detectors/meaningcloud/meaningcloud.go | 2 +- pkg/detectors/mediastack/mediastack.go | 2 +- pkg/detectors/meistertask/meistertask.go | 2 +- pkg/detectors/mesibo/mesibo.go | 3 +- pkg/detectors/messagebird/messagebird.go | 2 +- pkg/detectors/metaapi/metaapi.go | 2 +- pkg/detectors/metabase/metabase.go | 2 +- pkg/detectors/metrilo/metrilo.go | 2 +- .../microsoftteamswebhook.go | 2 +- pkg/detectors/mindmeister/mindmeister.go | 2 +- pkg/detectors/miro/miro.go | 2 +- pkg/detectors/mite/mite.go | 2 +- pkg/detectors/mixmax/mixmax.go | 2 +- pkg/detectors/mixpanel/mixpanel.go | 2 +- pkg/detectors/mockaroo/mockaroo.go | 2 +- pkg/detectors/moderation/moderation.go | 2 +- pkg/detectors/monday/monday.go | 2 +- pkg/detectors/mongodb/mongodb.go | 2 +- pkg/detectors/monkeylearn/monkeylearn.go | 2 +- pkg/detectors/moonclerk/moonclerk.go | 2 +- pkg/detectors/moosend/moosend.go | 2 +- pkg/detectors/moralis/moralis.go | 2 +- pkg/detectors/mrticktock/mrticktock.go | 2 +- pkg/detectors/mux/mux.go | 2 +- pkg/detectors/myfreshworks/myfreshworks.go | 2 +- pkg/detectors/myintervals/myintervals.go | 2 +- .../nasdaqdatalink/nasdaqdatalink.go | 2 +- pkg/detectors/nethunt/nethunt.go | 2 +- pkg/detectors/netlify/netlify.go | 2 +- pkg/detectors/neutrinoapi/neutrinoapi.go | 2 +- .../newrelicpersonalapikey.go | 4 +- pkg/detectors/newsapi/newsapi.go | 2 +- pkg/detectors/newscatcher/newscatcher.go | 2 +- pkg/detectors/nexmoapikey/nexmoapikey.go | 2 +- pkg/detectors/nftport/nftport.go | 2 +- pkg/detectors/ngc/ngc.go | 2 +- pkg/detectors/ngrok/ngrok.go | 2 +- pkg/detectors/nicereply/nicereply.go | 2 +- pkg/detectors/nightfall/nightfall.go | 2 +- pkg/detectors/nimble/nimble.go | 2 +- pkg/detectors/nitro/nitro.go | 2 +- pkg/detectors/noticeable/noticeable.go | 2 +- pkg/detectors/notion/notion.go | 2 +- pkg/detectors/nozbeteams/nozbeteams.go | 2 +- pkg/detectors/npmtoken/npmtoken.go | 2 +- pkg/detectors/npmtokenv2/npmtokenv2.go | 2 +- pkg/detectors/nugetapikey/nugetapikey.go | 4 +- pkg/detectors/numverify/numverify.go | 2 +- pkg/detectors/nutritionix/nutritionix.go | 2 +- pkg/detectors/nylas/nylas.go | 2 +- pkg/detectors/nytimes/nytimes.go | 2 +- pkg/detectors/oanda/oanda.go | 2 +- pkg/detectors/okta/okta.go | 2 +- pkg/detectors/omnisend/omnisend.go | 2 +- pkg/detectors/onedesk/onedesk.go | 2 +- pkg/detectors/onelogin/onelogin.go | 2 +- pkg/detectors/onepagecrm/onepagecrm.go | 2 +- pkg/detectors/onesignal/onesignal.go | 2 +- pkg/detectors/onwaterio/onwaterio.go | 2 +- pkg/detectors/oopspam/oopspam.go | 2 +- pkg/detectors/openai/openai.go | 2 +- pkg/detectors/opencagedata/opencagedata.go | 2 +- pkg/detectors/opengraphr/opengraphr.go | 2 +- pkg/detectors/openuv/openuv.go | 2 +- pkg/detectors/openvpn/openvpn.go | 2 +- pkg/detectors/openweather/openweather.go | 2 +- pkg/detectors/opsgenie/opsgenie.go | 2 +- pkg/detectors/optimizely/optimizely.go | 2 +- pkg/detectors/overloop/overloop.go | 2 +- pkg/detectors/owlbot/owlbot.go | 2 +- pkg/detectors/packagecloud/packagecloud.go | 2 +- .../pagerdutyapikey/pagerdutyapikey.go | 2 +- pkg/detectors/pandadoc/pandadoc.go | 2 +- pkg/detectors/pandascore/pandascore.go | 2 +- pkg/detectors/paperform/paperform.go | 2 +- pkg/detectors/paralleldots/paralleldots.go | 2 +- pkg/detectors/parsehub/parsehub.go | 2 +- pkg/detectors/parsers/parsers.go | 2 +- pkg/detectors/parseur/parseur.go | 2 +- pkg/detectors/partnerstack/partnerstack.go | 2 +- pkg/detectors/pastebin/pastebin.go | 2 +- pkg/detectors/paydirtapp/paydirtapp.go | 2 +- pkg/detectors/paymoapp/paymoapp.go | 2 +- pkg/detectors/paymongo/paymongo.go | 2 +- pkg/detectors/paypaloauth/paypaloauth.go | 2 +- pkg/detectors/paystack/paystack.go | 2 +- pkg/detectors/pdflayer/pdflayer.go | 2 +- pkg/detectors/pdfshift/pdfshift.go | 2 +- .../peopledatalabs/peopledatalabs.go | 2 +- pkg/detectors/pepipost/pepipost.go | 2 +- pkg/detectors/percy/percy.go | 2 +- pkg/detectors/pinata/pinata.go | 2 +- pkg/detectors/pipedream/pipedream.go | 2 +- pkg/detectors/pipedrive/pipedrive.go | 2 +- .../pivotaltracker/pivotaltracker.go | 2 +- pkg/detectors/pixabay/pixabay.go | 2 +- pkg/detectors/plaidkey/plaidkey.go | 2 +- pkg/detectors/planetscale/planetscale.go | 2 +- pkg/detectors/planetscaledb/planetscaledb.go | 2 +- .../planviewleankit/planviewleankit.go | 2 +- pkg/detectors/planyo/planyo.go | 2 +- pkg/detectors/plivo/plivo.go | 2 +- pkg/detectors/podio/podio.go | 2 +- pkg/detectors/pollsapi/pollsapi.go | 2 +- pkg/detectors/poloniex/poloniex.go | 2 +- pkg/detectors/polygon/polygon.go | 2 +- pkg/detectors/portainer/portainer.go | 2 +- .../portainertoken/portainertoken.go | 2 +- pkg/detectors/positionstack/positionstack.go | 2 +- pkg/detectors/postageapp/postageapp.go | 2 +- pkg/detectors/postbacks/postbacks.go | 2 +- pkg/detectors/postgres/postgres.go | 3 +- pkg/detectors/posthog/posthog.go | 4 +- pkg/detectors/postman/postman.go | 2 +- pkg/detectors/postmark/postmark.go | 2 +- pkg/detectors/powrbot/powrbot.go | 2 +- pkg/detectors/prefect/prefect.go | 2 +- pkg/detectors/privacy/privacy.go | 2 +- pkg/detectors/privatekey/privatekey.go | 2 +- pkg/detectors/prodpad/prodpad.go | 2 +- pkg/detectors/prospectcrm/prospectcrm.go | 2 +- pkg/detectors/protocolsio/protocolsio.go | 2 +- pkg/detectors/proxycrawl/proxycrawl.go | 2 +- .../pubnubpublishkey/pubnubpublishkey.go | 2 +- .../pubnubsubscriptionkey.go | 2 +- pkg/detectors/pulumi/pulumi.go | 2 +- pkg/detectors/purestake/purestake.go | 2 +- .../pushbulletapikey/pushbulletapikey.go | 2 +- .../pusherchannelkey/pusherchannelkey.go | 2 +- pkg/detectors/qase/qase.go | 2 +- pkg/detectors/qualaroo/qualaroo.go | 2 +- pkg/detectors/qubole/qubole.go | 2 +- pkg/detectors/rabbitmq/rabbitmq.go | 2 +- pkg/detectors/ramp/ramp.go | 2 +- pkg/detectors/rapidapi/rapidapi.go | 2 +- pkg/detectors/raven/raven.go | 2 +- pkg/detectors/rawg/rawg.go | 2 +- pkg/detectors/razorpay/razorpay.go | 2 +- pkg/detectors/reachmail/reachmail.go | 2 +- pkg/detectors/readme/readme.go | 2 +- .../reallysimplesystems.go | 2 +- pkg/detectors/rebrandly/rebrandly.go | 2 +- .../rechargepayments/rechargepayments.go | 2 +- pkg/detectors/redis/redis.go | 2 +- pkg/detectors/refiner/refiner.go | 2 +- pkg/detectors/rentman/rentman.go | 2 +- pkg/detectors/repairshopr/repairshopr.go | 2 +- pkg/detectors/replicate/replicate.go | 2 +- pkg/detectors/replyio/replyio.go | 2 +- .../requestfinance/requestfinance.go | 2 +- pkg/detectors/restpack/restpack.go | 2 +- .../restpackhtmltopdfapi.go | 2 +- .../restpackscreenshotapi.go | 2 +- pkg/detectors/rev/rev.go | 2 +- pkg/detectors/revampcrm/revampcrm.go | 2 +- pkg/detectors/ringcentral/ringcentral.go | 2 +- pkg/detectors/ritekit/ritekit.go | 2 +- pkg/detectors/roaring/roaring.go | 2 +- pkg/detectors/rocketreach/rocketreach.go | 2 +- pkg/detectors/rockset/rockset.go | 2 +- pkg/detectors/roninapp/roninapp.go | 2 +- pkg/detectors/route4me/route4me.go | 2 +- pkg/detectors/rownd/rownd.go | 2 +- pkg/detectors/rubygems/rubygems.go | 2 +- pkg/detectors/runrunit/runrunit.go | 2 +- pkg/detectors/salesblink/salesblink.go | 2 +- pkg/detectors/salescookie/salescookie.go | 2 +- pkg/detectors/salesflare/salesflare.go | 2 +- pkg/detectors/salesforce/salesforce.go | 2 +- pkg/detectors/salesmate/salesmate.go | 2 +- .../satismeterprojectkey.go | 2 +- .../satismeterwritekey/satismeterwritekey.go | 2 +- pkg/detectors/saucelabs/saucelabs.go | 2 +- pkg/detectors/scalewaykey/scalewaykey.go | 2 +- pkg/detectors/scalr/scalr.go | 2 +- pkg/detectors/scrapeowl/scrapeowl.go | 2 +- pkg/detectors/scraperapi/scraperapi.go | 2 +- pkg/detectors/scraperbox/scraperbox.go | 2 +- pkg/detectors/scrapestack/scrapestack.go | 2 +- pkg/detectors/scrapfly/scrapfly.go | 2 +- pkg/detectors/scrapingant/scrapingant.go | 2 +- pkg/detectors/scrapingbee/scrapingbee.go | 2 +- pkg/detectors/screenshotapi/screenshotapi.go | 2 +- .../screenshotlayer/screenshotlayer.go | 2 +- pkg/detectors/scrutinizerci/scrutinizerci.go | 2 +- .../securitytrails/securitytrails.go | 2 +- pkg/detectors/segmentapikey/segmentapikey.go | 2 +- pkg/detectors/selectpdf/selectpdf.go | 2 +- pkg/detectors/semaphore/semaphore.go | 2 +- pkg/detectors/sendbird/sendbird.go | 2 +- .../sendbirdorganizationapi.go | 2 +- pkg/detectors/sendgrid/sendgrid.go | 2 +- pkg/detectors/sendinbluev2/sendinbluev2.go | 2 +- pkg/detectors/sentrytoken/sentrytoken.go | 2 +- pkg/detectors/serphouse/serphouse.go | 2 +- pkg/detectors/serpstack/serpstack.go | 2 +- pkg/detectors/sheety/sheety.go | 2 +- pkg/detectors/sherpadesk/sherpadesk.go | 2 +- pkg/detectors/shipday/shipday.go | 2 +- pkg/detectors/shodankey/shodankey.go | 2 +- pkg/detectors/shopify/shopify.go | 2 +- pkg/detectors/shortcut/shortcut.go | 2 +- pkg/detectors/shotstack/shotstack.go | 2 +- pkg/detectors/shutterstock/shutterstock.go | 2 +- .../shutterstockoauth/shutterstockoauth.go | 2 +- pkg/detectors/signable/signable.go | 2 +- pkg/detectors/signalwire/signalwire.go | 2 +- pkg/detectors/signaturit/signaturit.go | 2 +- pkg/detectors/signupgenius/signupgenius.go | 2 +- pkg/detectors/sigopt/sigopt.go | 2 +- pkg/detectors/simfin/simfin.go | 2 +- pkg/detectors/simplesat/simplesat.go | 2 +- pkg/detectors/simplynoted/simplynoted.go | 2 +- pkg/detectors/simvoly/simvoly.go | 2 +- pkg/detectors/sinchmessage/sinchmessage.go | 2 +- pkg/detectors/sirv/sirv.go | 2 +- pkg/detectors/siteleaf/siteleaf.go | 2 +- pkg/detectors/skrappio/skrappio.go | 2 +- pkg/detectors/skybiometry/skybiometry.go | 2 +- pkg/detectors/slack/slack.go | 2 +- pkg/detectors/slackwebhook/slackwebhook.go | 2 +- pkg/detectors/smartsheets/smartsheets.go | 2 +- pkg/detectors/smartystreets/smartystreets.go | 2 +- pkg/detectors/smooch/smooch.go | 2 +- pkg/detectors/snipcart/snipcart.go | 2 +- pkg/detectors/snowflake/snowflake.go | 2 +- pkg/detectors/snykkey/snykkey.go | 2 +- pkg/detectors/sonarcloud/sonarcloud.go | 2 +- pkg/detectors/sourcegraph/sourcegraph.go | 2 +- .../sourcegraphcody/sourcegraphcody.go | 2 +- pkg/detectors/sparkpost/sparkpost.go | 2 +- pkg/detectors/speechtextai/speechtextai.go | 2 +- .../splunkobservabilitytoken.go | 2 +- pkg/detectors/spoonacular/spoonacular.go | 2 +- pkg/detectors/sportsmonk/sportsmonk.go | 2 +- pkg/detectors/spotifykey/spotifykey.go | 2 +- pkg/detectors/sqlserver/sqlserver.go | 2 +- pkg/detectors/square/square.go | 4 +- pkg/detectors/squareapp/squareapp.go | 2 +- pkg/detectors/squarespace/squarespace.go | 2 +- pkg/detectors/squareup/squareup.go | 2 +- pkg/detectors/sslmate/sslmate.go | 2 +- pkg/detectors/statuscake/statuscake.go | 2 +- pkg/detectors/statuspage/statuspage.go | 2 +- pkg/detectors/statuspal/statuspal.go | 2 +- pkg/detectors/stitchdata/stitchdata.go | 2 +- pkg/detectors/stockdata/stockdata.go | 2 +- pkg/detectors/storecove/storecove.go | 2 +- pkg/detectors/stormboard/stormboard.go | 2 +- pkg/detectors/stormglass/stormglass.go | 2 +- pkg/detectors/storyblok/storyblok.go | 2 +- pkg/detectors/storychief/storychief.go | 2 +- pkg/detectors/strava/strava.go | 2 +- pkg/detectors/streak/streak.go | 2 +- pkg/detectors/stripe/stripe.go | 4 +- pkg/detectors/stripo/stripo.go | 2 +- pkg/detectors/stytch/stytch.go | 2 +- pkg/detectors/sugester/sugester.go | 2 +- pkg/detectors/sumologickey/sumologickey.go | 2 +- pkg/detectors/supabasetoken/supabasetoken.go | 2 +- pkg/detectors/supernotesapi/supernotesapi.go | 2 +- .../surveyanyplace/surveyanyplace.go | 2 +- pkg/detectors/surveybot/surveybot.go | 2 +- pkg/detectors/surveysparrow/surveysparrow.go | 2 +- pkg/detectors/survicate/survicate.go | 2 +- pkg/detectors/swell/swell.go | 2 +- pkg/detectors/swiftype/swiftype.go | 2 +- pkg/detectors/tailscale/tailscale.go | 2 +- pkg/detectors/tallyfy/tallyfy.go | 2 +- pkg/detectors/tatumio/tatumio.go | 2 +- pkg/detectors/taxjar/taxjar.go | 2 +- pkg/detectors/teamgate/teamgate.go | 2 +- pkg/detectors/teamworkcrm/teamworkcrm.go | 2 +- pkg/detectors/teamworkdesk/teamworkdesk.go | 2 +- .../teamworkspaces/teamworkspaces.go | 2 +- .../technicalanalysisapi.go | 2 +- pkg/detectors/tefter/tefter.go | 2 +- .../telegrambottoken/telegrambottoken.go | 2 +- pkg/detectors/teletype/teletype.go | 2 +- pkg/detectors/telnyx/telnyx.go | 2 +- .../terraformcloudpersonaltoken.go | 2 +- pkg/detectors/testingbot/testingbot.go | 2 +- pkg/detectors/textmagic/textmagic.go | 2 +- pkg/detectors/theoddsapi/theoddsapi.go | 2 +- pkg/detectors/thinkific/thinkific.go | 2 +- pkg/detectors/thousandeyes/thousandeyes.go | 2 +- pkg/detectors/ticketmaster/ticketmaster.go | 2 +- pkg/detectors/tickettailor/tickettailor.go | 2 +- pkg/detectors/tiingo/tiingo.go | 2 +- pkg/detectors/timecamp/timecamp.go | 2 +- pkg/detectors/timezoneapi/timezoneapi.go | 2 +- pkg/detectors/tineswebhook/tineswebhook.go | 2 +- pkg/detectors/tly/tly.go | 2 +- pkg/detectors/tmetric/tmetric.go | 2 +- pkg/detectors/todoist/todoist.go | 2 +- pkg/detectors/toggltrack/toggltrack.go | 2 +- pkg/detectors/tokeet/tokeet.go | 2 +- pkg/detectors/tomorrowio/tomorrowio.go | 2 +- pkg/detectors/tomtom/tomtom.go | 2 +- pkg/detectors/tradier/tradier.go | 2 +- pkg/detectors/transferwise/transferwise.go | 2 +- pkg/detectors/travelpayouts/travelpayouts.go | 2 +- pkg/detectors/travisci/travisci.go | 2 +- pkg/detectors/trelloapikey/trelloapikey.go | 2 +- pkg/detectors/tru/tru.go | 2 +- .../trufflehogenterprise.go | 2 +- pkg/detectors/twelvedata/twelvedata.go | 2 +- pkg/detectors/twilio/twilio.go | 2 +- pkg/detectors/twist/twist.go | 2 +- pkg/detectors/twitch/twitch.go | 2 +- pkg/detectors/twitter/twitter.go | 2 +- pkg/detectors/tyntec/tyntec.go | 2 +- pkg/detectors/typeform/typeform.go | 2 +- pkg/detectors/typetalk/typetalk.go | 2 +- pkg/detectors/ubidots/ubidots.go | 2 +- pkg/detectors/uclassify/uclassify.go | 2 +- pkg/detectors/unifyid/unifyid.go | 2 +- pkg/detectors/unplugg/unplugg.go | 2 +- pkg/detectors/unsplash/unsplash.go | 2 +- pkg/detectors/upcdatabase/upcdatabase.go | 2 +- pkg/detectors/uplead/uplead.go | 2 +- pkg/detectors/uploadcare/uploadcare.go | 2 +- pkg/detectors/uptimerobot/uptimerobot.go | 2 +- pkg/detectors/upwave/upwave.go | 2 +- pkg/detectors/uri/uri.go | 2 +- pkg/detectors/urlscan/urlscan.go | 2 +- pkg/detectors/user/user.go | 2 +- pkg/detectors/userflow/userflow.go | 2 +- pkg/detectors/userstack/userstack.go | 2 +- .../vagrantcloudpersonaltoken.go | 2 +- pkg/detectors/vatlayer/vatlayer.go | 2 +- pkg/detectors/vbout/vbout.go | 2 +- pkg/detectors/vercel/vercel.go | 2 +- pkg/detectors/verifier/verifier.go | 2 +- pkg/detectors/verimail/verimail.go | 2 +- pkg/detectors/veriphone/veriphone.go | 2 +- pkg/detectors/versioneye/versioneye.go | 2 +- pkg/detectors/viewneo/viewneo.go | 2 +- pkg/detectors/virustotal/virustotal.go | 2 +- .../visualcrossing/visualcrossing.go | 2 +- pkg/detectors/voiceflow/voiceflow.go | 4 +- pkg/detectors/voicegain/voicegain.go | 2 +- pkg/detectors/voodoosms/voodoosms.go | 2 +- pkg/detectors/vouchery/vouchery.go | 2 +- pkg/detectors/vpnapi/vpnapi.go | 2 +- pkg/detectors/vultrapikey/vultrapikey.go | 2 +- pkg/detectors/vyte/vyte.go | 2 +- pkg/detectors/walkscore/walkscore.go | 2 +- pkg/detectors/weatherbit/weatherbit.go | 2 +- pkg/detectors/weatherstack/weatherstack.go | 2 +- pkg/detectors/web3storage/web3storage.go | 2 +- pkg/detectors/webex/webex.go | 2 +- pkg/detectors/webflow/webflow.go | 2 +- pkg/detectors/webscraper/webscraper.go | 2 +- pkg/detectors/webscraping/webscraping.go | 2 +- pkg/detectors/websitepulse/websitepulse.go | 2 +- pkg/detectors/wepay/wepay.go | 2 +- pkg/detectors/whoxy/whoxy.go | 2 +- pkg/detectors/wistia/wistia.go | 2 +- pkg/detectors/wit/wit.go | 2 +- pkg/detectors/worksnaps/worksnaps.go | 2 +- pkg/detectors/workstack/workstack.go | 2 +- .../worldcoinindex/worldcoinindex.go | 2 +- pkg/detectors/worldweather/worldweather.go | 2 +- pkg/detectors/wrike/wrike.go | 2 +- pkg/detectors/yandex/yandex.go | 2 +- pkg/detectors/yelp/yelp.go | 2 +- .../youneedabudget/youneedabudget.go | 2 +- pkg/detectors/yousign/yousign.go | 2 +- pkg/detectors/youtubeapikey/youtubeapikey.go | 2 +- pkg/detectors/zapierwebhook/zapierwebhook.go | 2 +- pkg/detectors/zendeskapi/zendeskapi.go | 2 +- pkg/detectors/zenkitapi/zenkitapi.go | 2 +- pkg/detectors/zenrows/zenrows.go | 2 +- pkg/detectors/zenscrape/zenscrape.go | 3 +- pkg/detectors/zenserp/zenserp.go | 2 +- pkg/detectors/zeplin/zeplin.go | 2 +- pkg/detectors/zerobounce/zerobounce.go | 2 +- pkg/detectors/zerotier/zerotier.go | 2 +- pkg/detectors/zipapi/zipapi.go | 2 +- pkg/detectors/zipbooks/zipbooks.go | 2 +- pkg/detectors/zipcodeapi/zipcodeapi.go | 2 +- pkg/detectors/zipcodebase/zipcodebase.go | 2 +- pkg/detectors/zonkafeedback/zonkafeedback.go | 2 +- pkg/detectors/zulipchat/zulipchat.go | 2 +- 821 files changed, 914 insertions(+), 845 deletions(-) diff --git a/go.mod b/go.mod index 374eafb4087f..0d260f798fea 100644 --- a/go.mod +++ b/go.mod @@ -204,6 +204,7 @@ require ( github.com/launchdarkly/go-semver v1.0.2 // indirect github.com/launchdarkly/go-server-sdk-evaluation/v2 v2.0.2 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect + github.com/magefile/mage v1.14.0 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-localereader v0.0.1 // indirect @@ -235,9 +236,11 @@ require ( github.com/sahilm/fuzzy v0.1.0 // indirect github.com/sirupsen/logrus v1.9.1 // indirect github.com/skeema/knownhosts v1.2.1 // indirect + github.com/tetratelabs/wazero v1.5.0 // indirect github.com/therootcompany/xz v1.0.1 // indirect github.com/ulikunitz/xz v0.5.11 // indirect github.com/vbatts/tar-split v0.11.3 // indirect + github.com/wasilibs/go-re2 v1.4.1 // indirect github.com/xanzy/ssh-agent v0.3.3 // indirect github.com/xdg-go/pbkdf2 v1.0.0 // indirect github.com/xdg-go/scram v1.1.2 // indirect diff --git a/go.sum b/go.sum index 3a2baed7653b..5b0e993deb88 100644 --- a/go.sum +++ b/go.sum @@ -528,6 +528,8 @@ github.com/lrstanley/bubblezone v0.0.0-20230911164824-e3824f1adde9 h1:+7bxeCzFs4 github.com/lrstanley/bubblezone v0.0.0-20230911164824-e3824f1adde9/go.mod h1:v5lEwWaguF1o2MW/ucO0ZIA/IZymdBYJJ+2cMRLE7LU= github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY= github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= +github.com/magefile/mage v1.14.0 h1:6QDX3g6z1YvJ4olPhT1wksUcSa/V0a1B+pJb73fBjyo= +github.com/magefile/mage v1.14.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/marusama/semaphore/v2 v2.5.0 h1:o/1QJD9DBYOWRnDhPwDVAXQn6mQYD0gZaS1Tpx6DJGM= @@ -682,6 +684,8 @@ github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcU github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/tailscale/depaware v0.0.0-20210622194025-720c4b409502 h1:34icjjmqJ2HPjrSuJYEkdZ+0ItmGQAQ75cRHIiftIyE= github.com/tailscale/depaware v0.0.0-20210622194025-720c4b409502/go.mod h1:p9lPsd+cx33L3H9nNoecRRxPssFKUwwI50I3pZ0yT+8= +github.com/tetratelabs/wazero v1.5.0 h1:Yz3fZHivfDiZFUXnWMPUoiW7s8tC1sjdBtlJn08qYa0= +github.com/tetratelabs/wazero v1.5.0/go.mod h1:0U0G41+ochRKoPKCJlh0jMg1CHkyfK8kDqiirMmKY8A= github.com/therootcompany/xz v1.0.1 h1:CmOtsn1CbtmyYiusbfmhmkpAAETj0wBIH6kCYaX+xzw= github.com/therootcompany/xz v1.0.1/go.mod h1:3K3UH1yCKgBneZYhuQUvJ9HPD19UEXEI0BWbMn8qNMY= github.com/trufflesecurity/disk-buffer-reader v0.2.1 h1:K9nNpX3xeWT2E6YRjlcc1X5c1NjgV9JS5T9aw2FjA8Q= @@ -694,6 +698,8 @@ github.com/ulikunitz/xz v0.5.11/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0o github.com/urfave/cli v1.22.12/go.mod h1:sSBEIC79qR6OvcmsD4U3KABeOTxDqQtdDnaFuUN30b8= github.com/vbatts/tar-split v0.11.3 h1:hLFqsOLQ1SsppQNTMpkpPXClLDfC2A3Zgy9OUU+RVck= github.com/vbatts/tar-split v0.11.3/go.mod h1:9QlHN18E+fEH7RdG+QAJJcuya3rqT7eXSTY7wGrAokY= +github.com/wasilibs/go-re2 v1.4.1 h1:E5+9O1M8UoGeqLB2A9omeoaWImqpuYDs9cKwvTJq/Oo= +github.com/wasilibs/go-re2 v1.4.1/go.mod h1:ynB8eCwd9JsqUnsk8WlPDk6cEeme8BguZmnqOSURE4Y= github.com/wsxiaoys/terminal v0.0.0-20160513160801-0940f3fc43a0 h1:3UeQBvD0TFrlVjOeLOBz+CPAI8dnbqNSVwUwRrkp7vQ= github.com/wsxiaoys/terminal v0.0.0-20160513160801-0940f3fc43a0/go.mod h1:IXCdmsXIht47RaVFLEdVnh1t+pgYtTAhQGj73kz+2DM= github.com/xanzy/go-gitlab v0.94.0 h1:GmBl2T5zqUHqyjkxFSvsT7CbelGdAH/dmBqUBqS+4BE= diff --git a/pkg/detectors/abbysale/abbysale.go b/pkg/detectors/abbysale/abbysale.go index f71dfd76bb37..7f816d40f203 100644 --- a/pkg/detectors/abbysale/abbysale.go +++ b/pkg/detectors/abbysale/abbysale.go @@ -2,8 +2,8 @@ package abbysale import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/abstract/abstract.go b/pkg/detectors/abstract/abstract.go index 5cdba22bba06..0005e6326ecd 100644 --- a/pkg/detectors/abstract/abstract.go +++ b/pkg/detectors/abstract/abstract.go @@ -3,8 +3,8 @@ package abstract import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/abuseipdb/abuseipdb.go b/pkg/detectors/abuseipdb/abuseipdb.go index bcfda4826c62..dfb40ec6ec88 100644 --- a/pkg/detectors/abuseipdb/abuseipdb.go +++ b/pkg/detectors/abuseipdb/abuseipdb.go @@ -5,7 +5,7 @@ import ( "io" "net/http" // "log" - "regexp" + regexp "github.com/wasilibs/go-re2" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/accuweather/accuweather.go b/pkg/detectors/accuweather/accuweather.go index bf15c6d12475..77ad2543025f 100644 --- a/pkg/detectors/accuweather/accuweather.go +++ b/pkg/detectors/accuweather/accuweather.go @@ -2,8 +2,8 @@ package accuweather import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/adafruitio/adafruitio.go b/pkg/detectors/adafruitio/adafruitio.go index f0c3271b353e..b699af6bdff8 100644 --- a/pkg/detectors/adafruitio/adafruitio.go +++ b/pkg/detectors/adafruitio/adafruitio.go @@ -2,8 +2,8 @@ package adafruitio import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/adobeio/adobeio.go b/pkg/detectors/adobeio/adobeio.go index 2d9e24f1c3cc..fae2111f7f3f 100644 --- a/pkg/detectors/adobeio/adobeio.go +++ b/pkg/detectors/adobeio/adobeio.go @@ -2,8 +2,8 @@ package adobeio import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/adzuna/adzuna.go b/pkg/detectors/adzuna/adzuna.go index b95862fc6200..adf07c597780 100644 --- a/pkg/detectors/adzuna/adzuna.go +++ b/pkg/detectors/adzuna/adzuna.go @@ -3,8 +3,8 @@ package adzuna import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/aeroworkflow/aeroworkflow.go b/pkg/detectors/aeroworkflow/aeroworkflow.go index 7b905d7601b4..ef534924a65d 100644 --- a/pkg/detectors/aeroworkflow/aeroworkflow.go +++ b/pkg/detectors/aeroworkflow/aeroworkflow.go @@ -2,8 +2,8 @@ package aeroworkflow import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/agora/agora.go b/pkg/detectors/agora/agora.go index 07bb106e66c2..132274a17227 100644 --- a/pkg/detectors/agora/agora.go +++ b/pkg/detectors/agora/agora.go @@ -2,8 +2,8 @@ package agora import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/aha/aha.go b/pkg/detectors/aha/aha.go index 3007853d18b4..27659d21a2e6 100644 --- a/pkg/detectors/aha/aha.go +++ b/pkg/detectors/aha/aha.go @@ -3,8 +3,8 @@ package aha import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go b/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go index 97342081ce45..4fdd1bca7605 100644 --- a/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go +++ b/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go @@ -2,8 +2,8 @@ package airbrakeprojectkey import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go b/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go index 06e260696788..fc9b13f35ecc 100644 --- a/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go +++ b/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go @@ -2,8 +2,8 @@ package airbrakeuserkey import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/airship/airship.go b/pkg/detectors/airship/airship.go index 4ee0d00b17b5..70c32d54b346 100644 --- a/pkg/detectors/airship/airship.go +++ b/pkg/detectors/airship/airship.go @@ -3,8 +3,8 @@ package airship import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/airtableapikey/airtableapikey.go b/pkg/detectors/airtableapikey/airtableapikey.go index fea0d844c39d..1eaaf2032895 100644 --- a/pkg/detectors/airtableapikey/airtableapikey.go +++ b/pkg/detectors/airtableapikey/airtableapikey.go @@ -4,8 +4,8 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/airvisual/airvisual.go b/pkg/detectors/airvisual/airvisual.go index 4a4ccf46b682..72d09348f813 100644 --- a/pkg/detectors/airvisual/airvisual.go +++ b/pkg/detectors/airvisual/airvisual.go @@ -3,8 +3,8 @@ package airvisual import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/aiven/aiven.go b/pkg/detectors/aiven/aiven.go index 9ed94729b692..451ed8ad0f05 100644 --- a/pkg/detectors/aiven/aiven.go +++ b/pkg/detectors/aiven/aiven.go @@ -3,8 +3,8 @@ package aiven import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/alchemy/alchemy.go b/pkg/detectors/alchemy/alchemy.go index 2e806bdbcdb5..d9699dc0b71b 100644 --- a/pkg/detectors/alchemy/alchemy.go +++ b/pkg/detectors/alchemy/alchemy.go @@ -3,8 +3,8 @@ package alchemy import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/alconost/alconost.go b/pkg/detectors/alconost/alconost.go index 9ce7746cdd1c..99699c9f01e4 100644 --- a/pkg/detectors/alconost/alconost.go +++ b/pkg/detectors/alconost/alconost.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/alegra/alegra.go b/pkg/detectors/alegra/alegra.go index 681677f4c056..8ef7c0b9cf39 100644 --- a/pkg/detectors/alegra/alegra.go +++ b/pkg/detectors/alegra/alegra.go @@ -2,8 +2,8 @@ package alegra import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/aletheiaapi/aletheiaapi.go b/pkg/detectors/aletheiaapi/aletheiaapi.go index 7e3e987c74aa..c22eee4c8124 100644 --- a/pkg/detectors/aletheiaapi/aletheiaapi.go +++ b/pkg/detectors/aletheiaapi/aletheiaapi.go @@ -2,8 +2,8 @@ package aletheiaapi import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/algoliaadminkey/algoliaadminkey.go b/pkg/detectors/algoliaadminkey/algoliaadminkey.go index bd5c43507877..49c15b3e33e9 100644 --- a/pkg/detectors/algoliaadminkey/algoliaadminkey.go +++ b/pkg/detectors/algoliaadminkey/algoliaadminkey.go @@ -2,8 +2,8 @@ package algoliaadminkey import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/alibaba/alibaba.go b/pkg/detectors/alibaba/alibaba.go index 3dd5ce0efa91..2e03009aa83d 100644 --- a/pkg/detectors/alibaba/alibaba.go +++ b/pkg/detectors/alibaba/alibaba.go @@ -6,9 +6,9 @@ import ( "crypto/rand" "crypto/sha1" "encoding/base64" + regexp "github.com/wasilibs/go-re2" "net/http" "net/url" - "regexp" "strconv" "strings" "time" diff --git a/pkg/detectors/alienvault/alienvault.go b/pkg/detectors/alienvault/alienvault.go index b1c434328114..61a38ced5b0c 100644 --- a/pkg/detectors/alienvault/alienvault.go +++ b/pkg/detectors/alienvault/alienvault.go @@ -2,8 +2,8 @@ package alienvault import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/allsports/allsports.go b/pkg/detectors/allsports/allsports.go index 2250e76908d0..2fef074fb118 100644 --- a/pkg/detectors/allsports/allsports.go +++ b/pkg/detectors/allsports/allsports.go @@ -5,7 +5,7 @@ import ( "io" "net/http" // "log" - "regexp" + regexp "github.com/wasilibs/go-re2" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/amadeus/amadeus.go b/pkg/detectors/amadeus/amadeus.go index 2682f154fe52..561dba6faeb1 100644 --- a/pkg/detectors/amadeus/amadeus.go +++ b/pkg/detectors/amadeus/amadeus.go @@ -2,9 +2,9 @@ package amadeus import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ambee/ambee.go b/pkg/detectors/ambee/ambee.go index d35ee2d55987..1441e6eb4a1a 100644 --- a/pkg/detectors/ambee/ambee.go +++ b/pkg/detectors/ambee/ambee.go @@ -2,8 +2,8 @@ package ambee import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/amplitudeapikey/amplitudeapikey.go b/pkg/detectors/amplitudeapikey/amplitudeapikey.go index c39de0da0a2a..9cfcb725df88 100644 --- a/pkg/detectors/amplitudeapikey/amplitudeapikey.go +++ b/pkg/detectors/amplitudeapikey/amplitudeapikey.go @@ -2,8 +2,8 @@ package amplitudeapikey import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/anthropic/anthropic.go b/pkg/detectors/anthropic/anthropic.go index bf4d74d57ce9..53319dbedbd8 100644 --- a/pkg/detectors/anthropic/anthropic.go +++ b/pkg/detectors/anthropic/anthropic.go @@ -5,8 +5,8 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/anypoint/anypoint.go b/pkg/detectors/anypoint/anypoint.go index b501da67357c..826a15f5e1eb 100644 --- a/pkg/detectors/anypoint/anypoint.go +++ b/pkg/detectors/anypoint/anypoint.go @@ -3,8 +3,8 @@ package anypoint import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apacta/apacta.go b/pkg/detectors/apacta/apacta.go index fea8c0ad26d6..7789c20442b9 100644 --- a/pkg/detectors/apacta/apacta.go +++ b/pkg/detectors/apacta/apacta.go @@ -3,8 +3,8 @@ package apacta import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/api2cart/api2cart.go b/pkg/detectors/api2cart/api2cart.go index 013b830dca76..dd3080963f6a 100644 --- a/pkg/detectors/api2cart/api2cart.go +++ b/pkg/detectors/api2cart/api2cart.go @@ -4,9 +4,9 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apideck/apideck.go b/pkg/detectors/apideck/apideck.go index 5bac10c5df30..03a6eb10f0e2 100644 --- a/pkg/detectors/apideck/apideck.go +++ b/pkg/detectors/apideck/apideck.go @@ -3,8 +3,8 @@ package apideck import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apiflash/apiflash.go b/pkg/detectors/apiflash/apiflash.go index 65209b7c8658..ed07a722a32c 100644 --- a/pkg/detectors/apiflash/apiflash.go +++ b/pkg/detectors/apiflash/apiflash.go @@ -3,8 +3,8 @@ package apiflash import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apifonica/apifonica.go b/pkg/detectors/apifonica/apifonica.go index e47e24b5622d..dbe1dcd5549e 100644 --- a/pkg/detectors/apifonica/apifonica.go +++ b/pkg/detectors/apifonica/apifonica.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apify/apify.go b/pkg/detectors/apify/apify.go index e1e4361b4451..d75b1980011d 100644 --- a/pkg/detectors/apify/apify.go +++ b/pkg/detectors/apify/apify.go @@ -2,8 +2,8 @@ package apify import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apilayer/apilayer.go b/pkg/detectors/apilayer/apilayer.go index a0c92f537e3f..144510bb750b 100644 --- a/pkg/detectors/apilayer/apilayer.go +++ b/pkg/detectors/apilayer/apilayer.go @@ -2,8 +2,8 @@ package apilayer import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apimatic/apimatic.go b/pkg/detectors/apimatic/apimatic.go index 2ea2e070c1a9..ca37f0e2a3d5 100644 --- a/pkg/detectors/apimatic/apimatic.go +++ b/pkg/detectors/apimatic/apimatic.go @@ -2,8 +2,8 @@ package apimatic import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/apiscience/apiscience.go b/pkg/detectors/apiscience/apiscience.go index e26e2fd3f524..c7308f8e5d15 100644 --- a/pkg/detectors/apiscience/apiscience.go +++ b/pkg/detectors/apiscience/apiscience.go @@ -3,8 +3,8 @@ package apiscience import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apitemplate/apitemplate.go b/pkg/detectors/apitemplate/apitemplate.go index d7e403edc2aa..554f2fffb23a 100644 --- a/pkg/detectors/apitemplate/apitemplate.go +++ b/pkg/detectors/apitemplate/apitemplate.go @@ -2,8 +2,8 @@ package apitemplate import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apollo/apollo.go b/pkg/detectors/apollo/apollo.go index ef9664943153..30ff0f0b1c06 100644 --- a/pkg/detectors/apollo/apollo.go +++ b/pkg/detectors/apollo/apollo.go @@ -3,8 +3,8 @@ package apollo import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/appcues/appcues.go b/pkg/detectors/appcues/appcues.go index f3d168a54ffc..687e1f0f55ce 100644 --- a/pkg/detectors/appcues/appcues.go +++ b/pkg/detectors/appcues/appcues.go @@ -3,8 +3,8 @@ package appcues import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/appfollow/appfollow.go b/pkg/detectors/appfollow/appfollow.go index 7e3e37abf0d7..d0bf67166d47 100644 --- a/pkg/detectors/appfollow/appfollow.go +++ b/pkg/detectors/appfollow/appfollow.go @@ -2,8 +2,8 @@ package appfollow import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/appointedd/appointedd.go b/pkg/detectors/appointedd/appointedd.go index 2ce2c0378eb4..6c6e3fe383a6 100644 --- a/pkg/detectors/appointedd/appointedd.go +++ b/pkg/detectors/appointedd/appointedd.go @@ -2,9 +2,9 @@ package appointedd import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/appoptics/appoptics.go b/pkg/detectors/appoptics/appoptics.go index 90229a97c93e..3b623ffbfd9a 100644 --- a/pkg/detectors/appoptics/appoptics.go +++ b/pkg/detectors/appoptics/appoptics.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/appsynergy/appsynergy.go b/pkg/detectors/appsynergy/appsynergy.go index 57284e2412ba..210732e8aaa6 100644 --- a/pkg/detectors/appsynergy/appsynergy.go +++ b/pkg/detectors/appsynergy/appsynergy.go @@ -3,8 +3,8 @@ package appsynergy import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/apptivo/apptivo.go b/pkg/detectors/apptivo/apptivo.go index 0763e06a93d4..5a4362c0b095 100644 --- a/pkg/detectors/apptivo/apptivo.go +++ b/pkg/detectors/apptivo/apptivo.go @@ -3,9 +3,9 @@ package apptivo import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/artifactory/artifactory.go b/pkg/detectors/artifactory/artifactory.go index e0af41f4d659..a5bf889943cd 100644 --- a/pkg/detectors/artifactory/artifactory.go +++ b/pkg/detectors/artifactory/artifactory.go @@ -2,8 +2,8 @@ package artifactory import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/artsy/artsy.go b/pkg/detectors/artsy/artsy.go index 2cd90e0197c7..d99a8a5c62fc 100644 --- a/pkg/detectors/artsy/artsy.go +++ b/pkg/detectors/artsy/artsy.go @@ -2,8 +2,8 @@ package artsy import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/asanaoauth/asanaoauth.go b/pkg/detectors/asanaoauth/asanaoauth.go index e20c07f28385..f6bb6dd17dfd 100644 --- a/pkg/detectors/asanaoauth/asanaoauth.go +++ b/pkg/detectors/asanaoauth/asanaoauth.go @@ -3,8 +3,8 @@ package asanaoauth import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go b/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go index de5a83d7f6f9..0f220fbffec9 100644 --- a/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go +++ b/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go @@ -3,8 +3,8 @@ package asanapersonalaccesstoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/assemblyai/assemblyai.go b/pkg/detectors/assemblyai/assemblyai.go index 0a55dc376e04..56715eea135d 100644 --- a/pkg/detectors/assemblyai/assemblyai.go +++ b/pkg/detectors/assemblyai/assemblyai.go @@ -2,8 +2,8 @@ package assemblyai import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/atera/atera.go b/pkg/detectors/atera/atera.go index 8b5d89da1619..44f9b5c8b415 100644 --- a/pkg/detectors/atera/atera.go +++ b/pkg/detectors/atera/atera.go @@ -2,8 +2,8 @@ package atera import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/audd/audd.go b/pkg/detectors/audd/audd.go index 439ff4c1714d..a73673d797b1 100644 --- a/pkg/detectors/audd/audd.go +++ b/pkg/detectors/audd/audd.go @@ -3,9 +3,9 @@ package audd import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go b/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go index 358ed1aea120..657033025ae9 100644 --- a/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go +++ b/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go @@ -3,8 +3,8 @@ package auth0managementapitoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/auth0oauth/auth0oauth.go b/pkg/detectors/auth0oauth/auth0oauth.go index d5db3ad6f0c6..5694fb9f54e4 100644 --- a/pkg/detectors/auth0oauth/auth0oauth.go +++ b/pkg/detectors/auth0oauth/auth0oauth.go @@ -2,10 +2,10 @@ package auth0oauth import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" "net/url" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/autodesk/autodesk.go b/pkg/detectors/autodesk/autodesk.go index a02ccbf8d28c..f40c75f2341d 100644 --- a/pkg/detectors/autodesk/autodesk.go +++ b/pkg/detectors/autodesk/autodesk.go @@ -3,8 +3,8 @@ package autodesk import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/autoklose/autoklose.go b/pkg/detectors/autoklose/autoklose.go index 77f3f2ac2be6..cadbb030f36b 100644 --- a/pkg/detectors/autoklose/autoklose.go +++ b/pkg/detectors/autoklose/autoklose.go @@ -4,9 +4,9 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/autopilot/autopilot.go b/pkg/detectors/autopilot/autopilot.go index bf14824e6747..fca023681149 100644 --- a/pkg/detectors/autopilot/autopilot.go +++ b/pkg/detectors/autopilot/autopilot.go @@ -2,8 +2,8 @@ package autopilot import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go b/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go index 9bcda4010a9b..60a8d77ce673 100644 --- a/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go +++ b/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go @@ -3,8 +3,8 @@ package avazapersonalaccesstoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/aviationstack/aviationstack.go b/pkg/detectors/aviationstack/aviationstack.go index f2f251bca637..bf4aabbe4733 100644 --- a/pkg/detectors/aviationstack/aviationstack.go +++ b/pkg/detectors/aviationstack/aviationstack.go @@ -3,8 +3,8 @@ package aviationstack import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/aws/aws.go b/pkg/detectors/aws/aws.go index b29cd83802df..cd17dd249c8c 100644 --- a/pkg/detectors/aws/aws.go +++ b/pkg/detectors/aws/aws.go @@ -8,10 +8,11 @@ import ( "encoding/json" "fmt" "net/http" - "regexp" "strings" "time" + regexp "github.com/wasilibs/go-re2" + "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" diff --git a/pkg/detectors/awssessionkeys/awssessionkey.go b/pkg/detectors/awssessionkeys/awssessionkey.go index 16e87bc7af9d..8d68e548a954 100644 --- a/pkg/detectors/awssessionkeys/awssessionkey.go +++ b/pkg/detectors/awssessionkeys/awssessionkey.go @@ -7,8 +7,8 @@ import ( "encoding/hex" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/axonaut/axonaut.go b/pkg/detectors/axonaut/axonaut.go index 4464f5982184..4b6424eeb0d6 100644 --- a/pkg/detectors/axonaut/axonaut.go +++ b/pkg/detectors/axonaut/axonaut.go @@ -2,8 +2,8 @@ package axonaut import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/aylien/aylien.go b/pkg/detectors/aylien/aylien.go index cfa4407c9d43..af413b8d1291 100644 --- a/pkg/detectors/aylien/aylien.go +++ b/pkg/detectors/aylien/aylien.go @@ -2,8 +2,8 @@ package aylien import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ayrshare/ayrshare.go b/pkg/detectors/ayrshare/ayrshare.go index 2c013a232dfa..b5e2a2c8a9c1 100644 --- a/pkg/detectors/ayrshare/ayrshare.go +++ b/pkg/detectors/ayrshare/ayrshare.go @@ -3,8 +3,8 @@ package ayrshare import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/azure/azure.go b/pkg/detectors/azure/azure.go index 67a54e371678..c20a2f882293 100644 --- a/pkg/detectors/azure/azure.go +++ b/pkg/detectors/azure/azure.go @@ -3,7 +3,7 @@ package azure import ( "context" "fmt" - "regexp" + regexp "github.com/wasilibs/go-re2" "strings" "github.com/Azure/go-autorest/autorest/azure/auth" diff --git a/pkg/detectors/azurebatch/azurebatch.go b/pkg/detectors/azurebatch/azurebatch.go index 576fcd43af40..5297ae69397b 100644 --- a/pkg/detectors/azurebatch/azurebatch.go +++ b/pkg/detectors/azurebatch/azurebatch.go @@ -6,8 +6,8 @@ import ( "crypto/sha256" "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/azurecontainerregistry/azurecontainerregistry.go b/pkg/detectors/azurecontainerregistry/azurecontainerregistry.go index d29e81572a74..ae831c7f1f24 100644 --- a/pkg/detectors/azurecontainerregistry/azurecontainerregistry.go +++ b/pkg/detectors/azurecontainerregistry/azurecontainerregistry.go @@ -4,8 +4,8 @@ import ( "context" "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/azurestorage/azurestorage.go b/pkg/detectors/azurestorage/azurestorage.go index b43be3d18c5a..362fffd84770 100644 --- a/pkg/detectors/azurestorage/azurestorage.go +++ b/pkg/detectors/azurestorage/azurestorage.go @@ -6,8 +6,8 @@ import ( "crypto/sha256" "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/azurestorage/azurestorage_test.go b/pkg/detectors/azurestorage/azurestorage_test.go index b48844266cc4..343f65390ab0 100644 --- a/pkg/detectors/azurestorage/azurestorage_test.go +++ b/pkg/detectors/azurestorage/azurestorage_test.go @@ -6,7 +6,7 @@ package azurestorage import ( "context" "fmt" - "regexp" + regexp "github.com/wasilibs/go-re2" "strings" "testing" "time" diff --git a/pkg/detectors/bannerbear/bannerbear.go b/pkg/detectors/bannerbear/bannerbear.go index 3ab0ae88d548..3c4e9a66ffb0 100644 --- a/pkg/detectors/bannerbear/bannerbear.go +++ b/pkg/detectors/bannerbear/bannerbear.go @@ -3,8 +3,8 @@ package bannerbear import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/baremetrics/baremetrics.go b/pkg/detectors/baremetrics/baremetrics.go index 9d29b6722c93..f30568096d9c 100644 --- a/pkg/detectors/baremetrics/baremetrics.go +++ b/pkg/detectors/baremetrics/baremetrics.go @@ -3,8 +3,8 @@ package baremetrics import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/beamer/beamer.go b/pkg/detectors/beamer/beamer.go index 30f7333d1a3a..f6b8d5fa5217 100644 --- a/pkg/detectors/beamer/beamer.go +++ b/pkg/detectors/beamer/beamer.go @@ -2,8 +2,8 @@ package beamer import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/beebole/beebole.go b/pkg/detectors/beebole/beebole.go index f7464231060c..23936d10e297 100644 --- a/pkg/detectors/beebole/beebole.go +++ b/pkg/detectors/beebole/beebole.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/besnappy/besnappy.go b/pkg/detectors/besnappy/besnappy.go index d51d93f4c905..4ccedbc1b106 100644 --- a/pkg/detectors/besnappy/besnappy.go +++ b/pkg/detectors/besnappy/besnappy.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/besttime/besttime.go b/pkg/detectors/besttime/besttime.go index e251de7c8101..9afd781f7478 100644 --- a/pkg/detectors/besttime/besttime.go +++ b/pkg/detectors/besttime/besttime.go @@ -2,9 +2,9 @@ package besttime import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/betterstack/betterstack.go b/pkg/detectors/betterstack/betterstack.go index a95552b034ec..c38b6b67a95a 100644 --- a/pkg/detectors/betterstack/betterstack.go +++ b/pkg/detectors/betterstack/betterstack.go @@ -3,8 +3,8 @@ package betterstack import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/billomat/billomat.go b/pkg/detectors/billomat/billomat.go index 8eb7756206df..5dd10e87f1de 100644 --- a/pkg/detectors/billomat/billomat.go +++ b/pkg/detectors/billomat/billomat.go @@ -3,8 +3,8 @@ package billomat import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bitbar/bitbar.go b/pkg/detectors/bitbar/bitbar.go index 4463fe035236..1a93dded5f4c 100644 --- a/pkg/detectors/bitbar/bitbar.go +++ b/pkg/detectors/bitbar/bitbar.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bitcoinaverage/bitcoinaverage.go b/pkg/detectors/bitcoinaverage/bitcoinaverage.go index c278292a728a..079f5a8bf711 100644 --- a/pkg/detectors/bitcoinaverage/bitcoinaverage.go +++ b/pkg/detectors/bitcoinaverage/bitcoinaverage.go @@ -3,8 +3,8 @@ package bitcoinaverage import ( "context" "encoding/json" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bitfinex/bitfinex.go b/pkg/detectors/bitfinex/bitfinex.go index c53c9f07ee08..1c1145ffbbe9 100644 --- a/pkg/detectors/bitfinex/bitfinex.go +++ b/pkg/detectors/bitfinex/bitfinex.go @@ -3,8 +3,8 @@ package bitfinex import ( "context" "flag" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/bitfinexcom/bitfinex-api-go/v2/rest" diff --git a/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go b/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go index 30ce2d1f22a5..136ce30e060d 100644 --- a/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go +++ b/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go @@ -3,8 +3,8 @@ package bitlyaccesstoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bitmex/bitmex.go b/pkg/detectors/bitmex/bitmex.go index d83e8f4d422c..a2fa65a6badf 100644 --- a/pkg/detectors/bitmex/bitmex.go +++ b/pkg/detectors/bitmex/bitmex.go @@ -5,9 +5,9 @@ import ( "crypto/hmac" "crypto/sha256" "encoding/hex" + regexp "github.com/wasilibs/go-re2" "net/http" "net/url" - "regexp" "strconv" "strings" "time" diff --git a/pkg/detectors/blazemeter/blazemeter.go b/pkg/detectors/blazemeter/blazemeter.go index de794b75feec..8245e2b8fc38 100644 --- a/pkg/detectors/blazemeter/blazemeter.go +++ b/pkg/detectors/blazemeter/blazemeter.go @@ -3,8 +3,8 @@ package blazemeter import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/blitapp/blitapp.go b/pkg/detectors/blitapp/blitapp.go index 430945870000..f390a25876be 100644 --- a/pkg/detectors/blitapp/blitapp.go +++ b/pkg/detectors/blitapp/blitapp.go @@ -2,8 +2,8 @@ package blitapp import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/blocknative/blocknative.go b/pkg/detectors/blocknative/blocknative.go index 2da32a623f46..3da23aa8b6ee 100644 --- a/pkg/detectors/blocknative/blocknative.go +++ b/pkg/detectors/blocknative/blocknative.go @@ -2,9 +2,9 @@ package blocknative import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/blogger/blogger.go b/pkg/detectors/blogger/blogger.go index 7070b619b64b..2f3db1dfec89 100644 --- a/pkg/detectors/blogger/blogger.go +++ b/pkg/detectors/blogger/blogger.go @@ -2,8 +2,8 @@ package blogger import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bombbomb/bombbomb.go b/pkg/detectors/bombbomb/bombbomb.go index e241e5433dc0..cfee96adf662 100644 --- a/pkg/detectors/bombbomb/bombbomb.go +++ b/pkg/detectors/bombbomb/bombbomb.go @@ -2,8 +2,8 @@ package bombbomb import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/boostnote/boostnote.go b/pkg/detectors/boostnote/boostnote.go index 83fa99d0534a..b3a026f0552d 100644 --- a/pkg/detectors/boostnote/boostnote.go +++ b/pkg/detectors/boostnote/boostnote.go @@ -3,8 +3,8 @@ package boostnote import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/borgbase/borgbase.go b/pkg/detectors/borgbase/borgbase.go index 8a0267409c5e..eeb90c3cb54e 100644 --- a/pkg/detectors/borgbase/borgbase.go +++ b/pkg/detectors/borgbase/borgbase.go @@ -3,9 +3,9 @@ package borgbase import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/braintreepayments/braintreepayments.go b/pkg/detectors/braintreepayments/braintreepayments.go index 8c79d42842b6..ffbb433c6bd6 100644 --- a/pkg/detectors/braintreepayments/braintreepayments.go +++ b/pkg/detectors/braintreepayments/braintreepayments.go @@ -3,9 +3,9 @@ package braintreepayments import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/brandfetch/brandfetch.go b/pkg/detectors/brandfetch/brandfetch.go index 606e7153c396..fbcfb57051f9 100644 --- a/pkg/detectors/brandfetch/brandfetch.go +++ b/pkg/detectors/brandfetch/brandfetch.go @@ -2,8 +2,8 @@ package brandfetch import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/browserstack/browserstack.go b/pkg/detectors/browserstack/browserstack.go index d0f1f52a4f9c..7d31d0ebe266 100644 --- a/pkg/detectors/browserstack/browserstack.go +++ b/pkg/detectors/browserstack/browserstack.go @@ -3,10 +3,10 @@ package browserstack import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" "net/http/cookiejar" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/browshot/browshot.go b/pkg/detectors/browshot/browshot.go index 4bd7266ec284..b58595a6632b 100644 --- a/pkg/detectors/browshot/browshot.go +++ b/pkg/detectors/browshot/browshot.go @@ -2,8 +2,8 @@ package browshot import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bscscan/bscscan.go b/pkg/detectors/bscscan/bscscan.go index ebd2718f933b..83bc89b0a033 100644 --- a/pkg/detectors/bscscan/bscscan.go +++ b/pkg/detectors/bscscan/bscscan.go @@ -2,9 +2,9 @@ package bscscan import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" @@ -55,22 +55,22 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result res, err := client.Do(req) if err == nil { defer res.Body.Close() - bodyBytes, err := io.ReadAll(res.Body) - if err != nil { - continue - } - body := string(bodyBytes) - - if !strings.Contains(body, "NOTOK") { - s1.Verified = true - } else { - // This function will check false positives for common test words, but also it will make sur> - if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) { - continue - } - } - } - } + bodyBytes, err := io.ReadAll(res.Body) + if err != nil { + continue + } + body := string(bodyBytes) + + if !strings.Contains(body, "NOTOK") { + s1.Verified = true + } else { + // This function will check false positives for common test words, but also it will make sur> + if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) { + continue + } + } + } + } results = append(results, s1) } diff --git a/pkg/detectors/buddyns/buddyns.go b/pkg/detectors/buddyns/buddyns.go index fbf4d206cc66..c3ff73ff960e 100644 --- a/pkg/detectors/buddyns/buddyns.go +++ b/pkg/detectors/buddyns/buddyns.go @@ -3,8 +3,8 @@ package buddyns import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/budibase/budibase.go b/pkg/detectors/budibase/budibase.go index 22186b03e380..d5d7edb3068d 100644 --- a/pkg/detectors/budibase/budibase.go +++ b/pkg/detectors/budibase/budibase.go @@ -3,8 +3,8 @@ package budibase import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bugherd/bugherd.go b/pkg/detectors/bugherd/bugherd.go index f7c789cad222..94b5e302a414 100644 --- a/pkg/detectors/bugherd/bugherd.go +++ b/pkg/detectors/bugherd/bugherd.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bugsnag/bugsnag.go b/pkg/detectors/bugsnag/bugsnag.go index 1c4f7a33d299..4d1fba369f0d 100644 --- a/pkg/detectors/bugsnag/bugsnag.go +++ b/pkg/detectors/bugsnag/bugsnag.go @@ -3,8 +3,8 @@ package bugsnag import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/buildkite/buildkite.go b/pkg/detectors/buildkite/buildkite.go index d04c4c753da1..a8f0c3a9ba55 100644 --- a/pkg/detectors/buildkite/buildkite.go +++ b/pkg/detectors/buildkite/buildkite.go @@ -3,8 +3,8 @@ package buildkite import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/buildkitev2/buildkite.go b/pkg/detectors/buildkitev2/buildkite.go index 8e5d4a783d2e..4c97e7b7e73b 100644 --- a/pkg/detectors/buildkitev2/buildkite.go +++ b/pkg/detectors/buildkitev2/buildkite.go @@ -3,8 +3,8 @@ package buildkitev2 import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bulbul/bulbul.go b/pkg/detectors/bulbul/bulbul.go index 81e37ca04483..2a2d6c8096d9 100644 --- a/pkg/detectors/bulbul/bulbul.go +++ b/pkg/detectors/bulbul/bulbul.go @@ -3,9 +3,9 @@ package bulbul import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/bulksms/bulksms.go b/pkg/detectors/bulksms/bulksms.go index faf202736bd0..7240b1da34bf 100644 --- a/pkg/detectors/bulksms/bulksms.go +++ b/pkg/detectors/bulksms/bulksms.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/buttercms/buttercms.go b/pkg/detectors/buttercms/buttercms.go index f6d83c2cc1bf..abd813fb3b86 100644 --- a/pkg/detectors/buttercms/buttercms.go +++ b/pkg/detectors/buttercms/buttercms.go @@ -2,8 +2,8 @@ package buttercms import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/caflou/caflou.go b/pkg/detectors/caflou/caflou.go index 8ff5c5e86faa..ccd28ccb4f4f 100644 --- a/pkg/detectors/caflou/caflou.go +++ b/pkg/detectors/caflou/caflou.go @@ -3,8 +3,8 @@ package caflou import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/calendarific/calendarific.go b/pkg/detectors/calendarific/calendarific.go index 26e704a0b021..774685bb0c92 100644 --- a/pkg/detectors/calendarific/calendarific.go +++ b/pkg/detectors/calendarific/calendarific.go @@ -2,8 +2,8 @@ package calendarific import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/calendlyapikey/calendlyapikey.go b/pkg/detectors/calendlyapikey/calendlyapikey.go index bdd92123d7b0..730c24f9c991 100644 --- a/pkg/detectors/calendlyapikey/calendlyapikey.go +++ b/pkg/detectors/calendlyapikey/calendlyapikey.go @@ -3,8 +3,8 @@ package calendlyapikey import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/calorieninja/calorieninja.go b/pkg/detectors/calorieninja/calorieninja.go index 41f1608231b4..d6bc61c10f0a 100644 --- a/pkg/detectors/calorieninja/calorieninja.go +++ b/pkg/detectors/calorieninja/calorieninja.go @@ -2,8 +2,8 @@ package calorieninja import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/campayn/campayn.go b/pkg/detectors/campayn/campayn.go index 3625a30783bc..1f66cc3bb09f 100644 --- a/pkg/detectors/campayn/campayn.go +++ b/pkg/detectors/campayn/campayn.go @@ -2,8 +2,8 @@ package campayn import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cannyio/cannyio.go b/pkg/detectors/cannyio/cannyio.go index e1bfd845c6f4..8abc2ea02489 100644 --- a/pkg/detectors/cannyio/cannyio.go +++ b/pkg/detectors/cannyio/cannyio.go @@ -2,8 +2,8 @@ package cannyio import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/capsulecrm/capsulecrm.go b/pkg/detectors/capsulecrm/capsulecrm.go index cb2e176c5f6d..4a2a14b219bc 100644 --- a/pkg/detectors/capsulecrm/capsulecrm.go +++ b/pkg/detectors/capsulecrm/capsulecrm.go @@ -3,8 +3,8 @@ package capsulecrm import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/captaindata/captaindata.go b/pkg/detectors/captaindata/captaindata.go index 308ddeeb22d8..d4301253464c 100644 --- a/pkg/detectors/captaindata/captaindata.go +++ b/pkg/detectors/captaindata/captaindata.go @@ -2,8 +2,8 @@ package captaindata import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/carboninterface/carboninterface.go b/pkg/detectors/carboninterface/carboninterface.go index eb29a4ab4e24..cd70bc5bc0a0 100644 --- a/pkg/detectors/carboninterface/carboninterface.go +++ b/pkg/detectors/carboninterface/carboninterface.go @@ -3,8 +3,8 @@ package carboninterface import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cashboard/cashboard.go b/pkg/detectors/cashboard/cashboard.go index df7110d82b76..bc48620f806d 100644 --- a/pkg/detectors/cashboard/cashboard.go +++ b/pkg/detectors/cashboard/cashboard.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/caspio/caspio.go b/pkg/detectors/caspio/caspio.go index 6be190135d3d..c5d115e013d1 100644 --- a/pkg/detectors/caspio/caspio.go +++ b/pkg/detectors/caspio/caspio.go @@ -3,8 +3,8 @@ package caspio import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/censys/censys.go b/pkg/detectors/censys/censys.go index f9a0234d6dd8..766184f9bab8 100644 --- a/pkg/detectors/censys/censys.go +++ b/pkg/detectors/censys/censys.go @@ -2,8 +2,8 @@ package censys import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/centralstationcrm/centralstationcrm.go b/pkg/detectors/centralstationcrm/centralstationcrm.go index 89b6b1f4f97c..4d033163a4e6 100644 --- a/pkg/detectors/centralstationcrm/centralstationcrm.go +++ b/pkg/detectors/centralstationcrm/centralstationcrm.go @@ -2,8 +2,8 @@ package centralstationcrm import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cexio/cexio.go b/pkg/detectors/cexio/cexio.go index baf4f29c1b8f..bb4ec51e7ea3 100644 --- a/pkg/detectors/cexio/cexio.go +++ b/pkg/detectors/cexio/cexio.go @@ -6,10 +6,10 @@ import ( "crypto/sha256" "encoding/hex" "encoding/json" + regexp "github.com/wasilibs/go-re2" "io" "net/http" "net/url" - "regexp" "strconv" "strings" "time" diff --git a/pkg/detectors/chartmogul/chartmogul.go b/pkg/detectors/chartmogul/chartmogul.go index 03baa481fe66..fd65f52cd82e 100644 --- a/pkg/detectors/chartmogul/chartmogul.go +++ b/pkg/detectors/chartmogul/chartmogul.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/chatbot/chatbot.go b/pkg/detectors/chatbot/chatbot.go index 458810e6dd8e..fb3ceeb93e6c 100644 --- a/pkg/detectors/chatbot/chatbot.go +++ b/pkg/detectors/chatbot/chatbot.go @@ -3,8 +3,8 @@ package chatbot import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/chatfule/chatfule.go b/pkg/detectors/chatfule/chatfule.go index 1fc150119cbb..15d18b01e613 100644 --- a/pkg/detectors/chatfule/chatfule.go +++ b/pkg/detectors/chatfule/chatfule.go @@ -3,8 +3,8 @@ package chatfule import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/checio/checio.go b/pkg/detectors/checio/checio.go index 690c8883192b..0b3a1823b90e 100644 --- a/pkg/detectors/checio/checio.go +++ b/pkg/detectors/checio/checio.go @@ -3,8 +3,8 @@ package checio import ( "context" // "log" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/checklyhq/checklyhq.go b/pkg/detectors/checklyhq/checklyhq.go index ec89e87b635d..e36e73537f37 100644 --- a/pkg/detectors/checklyhq/checklyhq.go +++ b/pkg/detectors/checklyhq/checklyhq.go @@ -3,8 +3,8 @@ package checklyhq import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/checkout/checkout.go b/pkg/detectors/checkout/checkout.go index c845e2654d5b..daa4eef90a5f 100644 --- a/pkg/detectors/checkout/checkout.go +++ b/pkg/detectors/checkout/checkout.go @@ -2,8 +2,8 @@ package checkout import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/checkvist/checkvist.go b/pkg/detectors/checkvist/checkvist.go index b2a4887bef57..8affe43e54a3 100644 --- a/pkg/detectors/checkvist/checkvist.go +++ b/pkg/detectors/checkvist/checkvist.go @@ -2,9 +2,9 @@ package checkvist import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" "net/url" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cicero/cicero.go b/pkg/detectors/cicero/cicero.go index 6e317bf8a63a..8461aab26f65 100644 --- a/pkg/detectors/cicero/cicero.go +++ b/pkg/detectors/cicero/cicero.go @@ -3,8 +3,8 @@ package cicero import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/circleci/circleci.go b/pkg/detectors/circleci/circleci.go index 8c8d77da78da..22ab9cdced66 100644 --- a/pkg/detectors/circleci/circleci.go +++ b/pkg/detectors/circleci/circleci.go @@ -2,8 +2,8 @@ package circleci import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "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 14ba3545694a..d019d8744dac 100644 --- a/pkg/detectors/clarifai/clarifai.go +++ b/pkg/detectors/clarifai/clarifai.go @@ -3,8 +3,8 @@ package clarifai import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/clearbit/clearbit.go b/pkg/detectors/clearbit/clearbit.go index 6fcb7e8dbf2d..376f96cb028e 100644 --- a/pkg/detectors/clearbit/clearbit.go +++ b/pkg/detectors/clearbit/clearbit.go @@ -3,8 +3,8 @@ package clearbit import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/clickhelp/clickhelp.go b/pkg/detectors/clickhelp/clickhelp.go index 97f356175a08..6a92ae929c5b 100644 --- a/pkg/detectors/clickhelp/clickhelp.go +++ b/pkg/detectors/clickhelp/clickhelp.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/clicksendsms/clicksendsms.go b/pkg/detectors/clicksendsms/clicksendsms.go index 45c050f43ca8..365eaa1542d6 100644 --- a/pkg/detectors/clicksendsms/clicksendsms.go +++ b/pkg/detectors/clicksendsms/clicksendsms.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go b/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go index 4ceed898d62f..156ee5f31dea 100644 --- a/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go +++ b/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go @@ -2,8 +2,8 @@ package clickuppersonaltoken import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cliengo/cliengo.go b/pkg/detectors/cliengo/cliengo.go index 86ef11e80523..2b43d6c27a0f 100644 --- a/pkg/detectors/cliengo/cliengo.go +++ b/pkg/detectors/cliengo/cliengo.go @@ -2,8 +2,8 @@ package cliengo import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/clinchpad/clinchpad.go b/pkg/detectors/clinchpad/clinchpad.go index 27c4c755271b..a92b89537e07 100644 --- a/pkg/detectors/clinchpad/clinchpad.go +++ b/pkg/detectors/clinchpad/clinchpad.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/clockify/clockify.go b/pkg/detectors/clockify/clockify.go index bb7d21584ce6..75a9bdb6dd26 100644 --- a/pkg/detectors/clockify/clockify.go +++ b/pkg/detectors/clockify/clockify.go @@ -2,8 +2,8 @@ package clockify import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/clockworksms/clockworksms.go b/pkg/detectors/clockworksms/clockworksms.go index 643ab8511b95..c3a494607828 100644 --- a/pkg/detectors/clockworksms/clockworksms.go +++ b/pkg/detectors/clockworksms/clockworksms.go @@ -2,8 +2,8 @@ package clockworksms import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/closecrm/close.go b/pkg/detectors/closecrm/close.go index e55c56d5bccd..ee6c0ffda547 100644 --- a/pkg/detectors/closecrm/close.go +++ b/pkg/detectors/closecrm/close.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudconvert/cloudconvert.go b/pkg/detectors/cloudconvert/cloudconvert.go index f454543c41c0..21121d7d05ba 100644 --- a/pkg/detectors/cloudconvert/cloudconvert.go +++ b/pkg/detectors/cloudconvert/cloudconvert.go @@ -3,8 +3,8 @@ package cloudconvert import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudelements/cloudelements.go b/pkg/detectors/cloudelements/cloudelements.go index 4413783f54ff..e9f3dc96010d 100644 --- a/pkg/detectors/cloudelements/cloudelements.go +++ b/pkg/detectors/cloudelements/cloudelements.go @@ -3,8 +3,8 @@ package cloudelements import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go b/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go index 3557ba86d732..8eb2cb3d9f27 100644 --- a/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go +++ b/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go @@ -3,8 +3,8 @@ package cloudflareapitoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudflarecakey/cloudflarecakey.go b/pkg/detectors/cloudflarecakey/cloudflarecakey.go index f2d7783fd289..bfd70ef56d0d 100644 --- a/pkg/detectors/cloudflarecakey/cloudflarecakey.go +++ b/pkg/detectors/cloudflarecakey/cloudflarecakey.go @@ -4,8 +4,8 @@ import ( "context" // "fmt" // "log" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go b/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go index c1798fc902d4..b0d6b46bd7dd 100644 --- a/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go +++ b/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go @@ -2,8 +2,8 @@ package cloudflareglobalapikey import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudimage/cloudimage.go b/pkg/detectors/cloudimage/cloudimage.go index c097f0b58bfb..7d48687f4a14 100644 --- a/pkg/detectors/cloudimage/cloudimage.go +++ b/pkg/detectors/cloudimage/cloudimage.go @@ -2,8 +2,8 @@ package cloudimage import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/cloudmersive/cloudmersive.go b/pkg/detectors/cloudmersive/cloudmersive.go index 768b3c39e4d3..6bfd4bc32618 100644 --- a/pkg/detectors/cloudmersive/cloudmersive.go +++ b/pkg/detectors/cloudmersive/cloudmersive.go @@ -2,8 +2,8 @@ package cloudmersive import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudplan/cloudplan.go b/pkg/detectors/cloudplan/cloudplan.go index df0db176953e..3d0116658ad3 100644 --- a/pkg/detectors/cloudplan/cloudplan.go +++ b/pkg/detectors/cloudplan/cloudplan.go @@ -2,8 +2,8 @@ package cloudplan import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloudsmith/cloudsmith.go b/pkg/detectors/cloudsmith/cloudsmith.go index 44d0125555e8..efe2a0f9bdc2 100644 --- a/pkg/detectors/cloudsmith/cloudsmith.go +++ b/pkg/detectors/cloudsmith/cloudsmith.go @@ -3,8 +3,8 @@ package cloudsmith import ( "context" "encoding/json" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloverly/cloverly.go b/pkg/detectors/cloverly/cloverly.go index 6736948e0897..72ecab95c91d 100644 --- a/pkg/detectors/cloverly/cloverly.go +++ b/pkg/detectors/cloverly/cloverly.go @@ -3,8 +3,8 @@ package cloverly import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cloze/cloze.go b/pkg/detectors/cloze/cloze.go index 06f18ed51799..2fe6f62b0284 100644 --- a/pkg/detectors/cloze/cloze.go +++ b/pkg/detectors/cloze/cloze.go @@ -2,9 +2,9 @@ package cloze import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" "net/url" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/clustdoc/clustdoc.go b/pkg/detectors/clustdoc/clustdoc.go index 17bc35babb0c..8f9195cb48f5 100644 --- a/pkg/detectors/clustdoc/clustdoc.go +++ b/pkg/detectors/clustdoc/clustdoc.go @@ -3,8 +3,8 @@ package clustdoc import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/coda/coda.go b/pkg/detectors/coda/coda.go index 109e7f56de23..1ea12bcfc7d0 100644 --- a/pkg/detectors/coda/coda.go +++ b/pkg/detectors/coda/coda.go @@ -3,8 +3,8 @@ package coda import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/codacy/codacy.go b/pkg/detectors/codacy/codacy.go index d33f22bc870a..4a2e7a469bca 100644 --- a/pkg/detectors/codacy/codacy.go +++ b/pkg/detectors/codacy/codacy.go @@ -2,8 +2,8 @@ package codacy import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/codeclimate/codeclimate.go b/pkg/detectors/codeclimate/codeclimate.go index f5ee30fc5594..d29c4d9e975f 100644 --- a/pkg/detectors/codeclimate/codeclimate.go +++ b/pkg/detectors/codeclimate/codeclimate.go @@ -4,8 +4,8 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/codemagic/codemagic.go b/pkg/detectors/codemagic/codemagic.go index bef4692f0957..494ec04a95a9 100644 --- a/pkg/detectors/codemagic/codemagic.go +++ b/pkg/detectors/codemagic/codemagic.go @@ -2,8 +2,8 @@ package codemagic import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/codequiry/codequiry.go b/pkg/detectors/codequiry/codequiry.go index 17ba6a0768a7..c41587da72b6 100644 --- a/pkg/detectors/codequiry/codequiry.go +++ b/pkg/detectors/codequiry/codequiry.go @@ -2,8 +2,8 @@ package codequiry import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/coinapi/coinapi.go b/pkg/detectors/coinapi/coinapi.go index 016652aca1db..8d192aec7e1b 100644 --- a/pkg/detectors/coinapi/coinapi.go +++ b/pkg/detectors/coinapi/coinapi.go @@ -2,8 +2,8 @@ package coinapi import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/coinbase/coinbase.go b/pkg/detectors/coinbase/coinbase.go index ab13f820a07a..d84482f55b4d 100644 --- a/pkg/detectors/coinbase/coinbase.go +++ b/pkg/detectors/coinbase/coinbase.go @@ -3,8 +3,8 @@ package coinbase import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/coinbase_waas/coinbase_waas.go b/pkg/detectors/coinbase_waas/coinbase_waas.go index 383ed8325833..ac7ab6ddfe61 100644 --- a/pkg/detectors/coinbase_waas/coinbase_waas.go +++ b/pkg/detectors/coinbase_waas/coinbase_waas.go @@ -6,8 +6,8 @@ import ( "crypto/x509" "encoding/pem" "errors" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/coinbase/waas-client-library-go/auth" diff --git a/pkg/detectors/coinlayer/coinlayer.go b/pkg/detectors/coinlayer/coinlayer.go index 161f57144449..e8316f3a5dca 100644 --- a/pkg/detectors/coinlayer/coinlayer.go +++ b/pkg/detectors/coinlayer/coinlayer.go @@ -3,9 +3,9 @@ package coinlayer import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/coinlib/coinlib.go b/pkg/detectors/coinlib/coinlib.go index 6f8d330412e8..820f1aeb6389 100644 --- a/pkg/detectors/coinlib/coinlib.go +++ b/pkg/detectors/coinlib/coinlib.go @@ -3,8 +3,8 @@ package coinlib import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/coinmarketcap/coinmarketcap.go b/pkg/detectors/coinmarketcap/coinmarketcap.go index bb75a27b037a..b79744852724 100644 --- a/pkg/detectors/coinmarketcap/coinmarketcap.go +++ b/pkg/detectors/coinmarketcap/coinmarketcap.go @@ -2,8 +2,8 @@ package coinmarketcap import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/collect2/collect2.go b/pkg/detectors/collect2/collect2.go index 79bcb0b38608..6091e981cc8f 100644 --- a/pkg/detectors/collect2/collect2.go +++ b/pkg/detectors/collect2/collect2.go @@ -3,8 +3,8 @@ package collect2 import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/column/column.go b/pkg/detectors/column/column.go index 4c2ea840325a..044a0c13d69e 100644 --- a/pkg/detectors/column/column.go +++ b/pkg/detectors/column/column.go @@ -4,9 +4,9 @@ import ( "context" "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "log" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/commercejs/commercejs.go b/pkg/detectors/commercejs/commercejs.go index e1347cfa2dfe..edeb67af2375 100644 --- a/pkg/detectors/commercejs/commercejs.go +++ b/pkg/detectors/commercejs/commercejs.go @@ -2,8 +2,8 @@ package commercejs import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/commodities/commodities.go b/pkg/detectors/commodities/commodities.go index 527e1906319a..1b3e597c9a78 100644 --- a/pkg/detectors/commodities/commodities.go +++ b/pkg/detectors/commodities/commodities.go @@ -2,9 +2,9 @@ package commodities import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/companyhub/companyhub.go b/pkg/detectors/companyhub/companyhub.go index b7621bc8c660..97ce50a76751 100644 --- a/pkg/detectors/companyhub/companyhub.go +++ b/pkg/detectors/companyhub/companyhub.go @@ -3,8 +3,8 @@ package companyhub import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/confluent/confluent.go b/pkg/detectors/confluent/confluent.go index 0257c506c0c8..ac460bd86f25 100644 --- a/pkg/detectors/confluent/confluent.go +++ b/pkg/detectors/confluent/confluent.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go b/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go index b1557473808b..8f12c530d629 100644 --- a/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go +++ b/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go @@ -3,8 +3,8 @@ package contentfulpersonalaccesstoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/conversiontools/conversiontools.go b/pkg/detectors/conversiontools/conversiontools.go index 64adf6ffe61e..87420df39a80 100644 --- a/pkg/detectors/conversiontools/conversiontools.go +++ b/pkg/detectors/conversiontools/conversiontools.go @@ -3,8 +3,8 @@ package conversiontools import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/convertapi/convertapi.go b/pkg/detectors/convertapi/convertapi.go index 9513b6d62075..1ead72a3b2e3 100644 --- a/pkg/detectors/convertapi/convertapi.go +++ b/pkg/detectors/convertapi/convertapi.go @@ -3,8 +3,8 @@ package convertapi import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/convertkit/convertkit.go b/pkg/detectors/convertkit/convertkit.go index 9f9dbbf2fb49..f22a89e202fa 100644 --- a/pkg/detectors/convertkit/convertkit.go +++ b/pkg/detectors/convertkit/convertkit.go @@ -2,8 +2,8 @@ package convertkit import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/convier/convier.go b/pkg/detectors/convier/convier.go index a0d2732ce5b6..e8dbb3b2045f 100644 --- a/pkg/detectors/convier/convier.go +++ b/pkg/detectors/convier/convier.go @@ -3,9 +3,9 @@ package convier import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/copper/copper.go b/pkg/detectors/copper/copper.go index b25b23a0dc53..daa047f5824d 100644 --- a/pkg/detectors/copper/copper.go +++ b/pkg/detectors/copper/copper.go @@ -2,8 +2,8 @@ package copper import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/couchbase/couchbase.go b/pkg/detectors/couchbase/couchbase.go index 09a1a4379a0d..971876f9d961 100644 --- a/pkg/detectors/couchbase/couchbase.go +++ b/pkg/detectors/couchbase/couchbase.go @@ -3,8 +3,8 @@ package couchbase import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "log" - "regexp" "strings" "time" "unicode" @@ -26,7 +26,7 @@ var ( connectionStringPat = regexp.MustCompile(`\bcb\.[a-z0-9]+\.cloud\.couchbase\.com\b`) usernamePat = `?()/\+=\s\n` passwordPat = `^<>;.*&|£\n\s` - //passwordPat = regexp.MustCompile(`(?i)(?:pass|pwd)(?:.|[\n\r]){0,15}(\b[^<>;.*&|£\n\s]{8,100}$)`) + // passwordPat = regexp.MustCompile(`(?i)(?:pass|pwd)(?:.|[\n\r]){0,15}(\b[^<>;.*&|£\n\s]{8,100}$)`) // passwordPat = regexp.MustCompile(`(?im)(?:pass|pwd)\S{0,40}?[:=\s]{1,3}[ '"=]{0,1}([^:?()/\+=\s\n]{4,40})\b`) ) diff --git a/pkg/detectors/countrylayer/countrylayer.go b/pkg/detectors/countrylayer/countrylayer.go index 6726c0536152..56efad482d86 100644 --- a/pkg/detectors/countrylayer/countrylayer.go +++ b/pkg/detectors/countrylayer/countrylayer.go @@ -3,8 +3,8 @@ package countrylayer import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/courier/courier.go b/pkg/detectors/courier/courier.go index 84419ddf8690..0519a0334b28 100644 --- a/pkg/detectors/courier/courier.go +++ b/pkg/detectors/courier/courier.go @@ -3,8 +3,8 @@ package courier import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/coveralls/coveralls.go b/pkg/detectors/coveralls/coveralls.go index c03bfe6edd8f..05125b5947a2 100644 --- a/pkg/detectors/coveralls/coveralls.go +++ b/pkg/detectors/coveralls/coveralls.go @@ -3,8 +3,8 @@ package coveralls import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/craftmypdf/craftmypdf.go b/pkg/detectors/craftmypdf/craftmypdf.go index 894d40bb89ba..578ef865c761 100644 --- a/pkg/detectors/craftmypdf/craftmypdf.go +++ b/pkg/detectors/craftmypdf/craftmypdf.go @@ -3,9 +3,10 @@ package craftmypdf import ( "context" "net/http" - "regexp" "strings" + regexp "github.com/wasilibs/go-re2" + "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" diff --git a/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go b/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go index 46ca3d55e8f5..2ac78f4c9d7e 100644 --- a/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go +++ b/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go @@ -2,8 +2,8 @@ package crossbrowsertesting import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/crowdin/crowdin.go b/pkg/detectors/crowdin/crowdin.go index 1a742241d213..57725aa05c13 100644 --- a/pkg/detectors/crowdin/crowdin.go +++ b/pkg/detectors/crowdin/crowdin.go @@ -3,8 +3,8 @@ package crowdin import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/cryptocompare/cryptocompare.go b/pkg/detectors/cryptocompare/cryptocompare.go index b10bc5eb0ad3..594fa661ef07 100644 --- a/pkg/detectors/cryptocompare/cryptocompare.go +++ b/pkg/detectors/cryptocompare/cryptocompare.go @@ -2,9 +2,9 @@ package cryptocompare import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/currencycloud/currencycloud.go b/pkg/detectors/currencycloud/currencycloud.go index 66c0d433a3ed..15f08f9ccf31 100644 --- a/pkg/detectors/currencycloud/currencycloud.go +++ b/pkg/detectors/currencycloud/currencycloud.go @@ -3,9 +3,9 @@ package currencycloud import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/currencyfreaks/currencyfreaks.go b/pkg/detectors/currencyfreaks/currencyfreaks.go index d796d4ab4b3b..7a3fead425ae 100644 --- a/pkg/detectors/currencyfreaks/currencyfreaks.go +++ b/pkg/detectors/currencyfreaks/currencyfreaks.go @@ -2,8 +2,8 @@ package currencyfreaks import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/currencylayer/currencylayer.go b/pkg/detectors/currencylayer/currencylayer.go index 215dd737caa4..bf2ea0b50401 100644 --- a/pkg/detectors/currencylayer/currencylayer.go +++ b/pkg/detectors/currencylayer/currencylayer.go @@ -3,9 +3,9 @@ package currencylayer import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/currencyscoop/currencyscoop.go b/pkg/detectors/currencyscoop/currencyscoop.go index 8071d45c8c95..1ca9058771e8 100644 --- a/pkg/detectors/currencyscoop/currencyscoop.go +++ b/pkg/detectors/currencyscoop/currencyscoop.go @@ -3,8 +3,8 @@ package currencyscoop import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/currentsapi/currentsapi.go b/pkg/detectors/currentsapi/currentsapi.go index c3129989bab8..ae19160aec8d 100644 --- a/pkg/detectors/currentsapi/currentsapi.go +++ b/pkg/detectors/currentsapi/currentsapi.go @@ -2,8 +2,8 @@ package currentsapi import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/customerguru/customerguru.go b/pkg/detectors/customerguru/customerguru.go index 4347b9a85296..d27825643b13 100644 --- a/pkg/detectors/customerguru/customerguru.go +++ b/pkg/detectors/customerguru/customerguru.go @@ -2,8 +2,8 @@ package customerguru import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/customerio/customerio.go b/pkg/detectors/customerio/customerio.go index 771d1260c6b3..450ac8a70b93 100644 --- a/pkg/detectors/customerio/customerio.go +++ b/pkg/detectors/customerio/customerio.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/d7network/d7network.go b/pkg/detectors/d7network/d7network.go index a8d4608c9f1c..722ab4981e0b 100644 --- a/pkg/detectors/d7network/d7network.go +++ b/pkg/detectors/d7network/d7network.go @@ -2,8 +2,8 @@ package d7network import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/dailyco/dailyco.go b/pkg/detectors/dailyco/dailyco.go index 77de08308be9..83cb3aebcd4b 100644 --- a/pkg/detectors/dailyco/dailyco.go +++ b/pkg/detectors/dailyco/dailyco.go @@ -3,8 +3,8 @@ package dailyco import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dandelion/dandelion.go b/pkg/detectors/dandelion/dandelion.go index 973db3013800..88ca74f4a398 100644 --- a/pkg/detectors/dandelion/dandelion.go +++ b/pkg/detectors/dandelion/dandelion.go @@ -3,8 +3,8 @@ package dandelion import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dareboost/dareboost.go b/pkg/detectors/dareboost/dareboost.go index fbb13093306d..353cabb0af60 100644 --- a/pkg/detectors/dareboost/dareboost.go +++ b/pkg/detectors/dareboost/dareboost.go @@ -2,9 +2,9 @@ package dareboost import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/databox/databox.go b/pkg/detectors/databox/databox.go index 4c36b7644d37..5cc563771473 100644 --- a/pkg/detectors/databox/databox.go +++ b/pkg/detectors/databox/databox.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/databrickstoken/databrickstoken.go b/pkg/detectors/databrickstoken/databrickstoken.go index 0429bdc74d70..a50c667b2768 100644 --- a/pkg/detectors/databrickstoken/databrickstoken.go +++ b/pkg/detectors/databrickstoken/databrickstoken.go @@ -3,8 +3,8 @@ package databrickstoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/datadogtoken/datadogtoken.go b/pkg/detectors/datadogtoken/datadogtoken.go index eeda41ae36c9..c588864a4a63 100644 --- a/pkg/detectors/datadogtoken/datadogtoken.go +++ b/pkg/detectors/datadogtoken/datadogtoken.go @@ -2,8 +2,8 @@ package datadogtoken import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/datagov/datagov.go b/pkg/detectors/datagov/datagov.go index 2bc2c06cb4cc..10bb08919618 100644 --- a/pkg/detectors/datagov/datagov.go +++ b/pkg/detectors/datagov/datagov.go @@ -3,8 +3,8 @@ package datagov import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/debounce/debounce.go b/pkg/detectors/debounce/debounce.go index f63e200ce3b2..18100138c498 100644 --- a/pkg/detectors/debounce/debounce.go +++ b/pkg/detectors/debounce/debounce.go @@ -2,8 +2,8 @@ package debounce import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/deepai/deepai.go b/pkg/detectors/deepai/deepai.go index 390ddb451975..39ba0159762e 100644 --- a/pkg/detectors/deepai/deepai.go +++ b/pkg/detectors/deepai/deepai.go @@ -3,10 +3,10 @@ package deepai import ( "bytes" "context" + regexp "github.com/wasilibs/go-re2" "io" "mime/multipart" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/deepgram/deepgram.go b/pkg/detectors/deepgram/deepgram.go index bdab52a9b1c5..f7e3e5c7d87a 100644 --- a/pkg/detectors/deepgram/deepgram.go +++ b/pkg/detectors/deepgram/deepgram.go @@ -3,8 +3,8 @@ package deepgram import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/delighted/delighted.go b/pkg/detectors/delighted/delighted.go index 5aad8cf9e38f..9a1444ba0221 100644 --- a/pkg/detectors/delighted/delighted.go +++ b/pkg/detectors/delighted/delighted.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/demio/demio.go b/pkg/detectors/demio/demio.go index 22fce3ca29ae..e686ed77ed2e 100644 --- a/pkg/detectors/demio/demio.go +++ b/pkg/detectors/demio/demio.go @@ -3,8 +3,8 @@ package demio import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/deno/denodeploy.go b/pkg/detectors/deno/denodeploy.go index 5fc20bb453a1..8f8dd032aa8f 100644 --- a/pkg/detectors/deno/denodeploy.go +++ b/pkg/detectors/deno/denodeploy.go @@ -4,9 +4,9 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/deputy/deputy.go b/pkg/detectors/deputy/deputy.go index e9033c9cbe65..996c695a9b78 100644 --- a/pkg/detectors/deputy/deputy.go +++ b/pkg/detectors/deputy/deputy.go @@ -3,8 +3,8 @@ package deputy import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/detectify/detectify.go b/pkg/detectors/detectify/detectify.go index d7896fdd8738..23c25ca2af8b 100644 --- a/pkg/detectors/detectify/detectify.go +++ b/pkg/detectors/detectify/detectify.go @@ -2,8 +2,8 @@ package detectify import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/detectlanguage/detectlanguage.go b/pkg/detectors/detectlanguage/detectlanguage.go index 881e8336adc5..06880fea6968 100644 --- a/pkg/detectors/detectlanguage/detectlanguage.go +++ b/pkg/detectors/detectlanguage/detectlanguage.go @@ -3,8 +3,8 @@ package detectlanguage import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dfuse/dfuse.go b/pkg/detectors/dfuse/dfuse.go index 8b170f8bab69..e19b8ced75fc 100644 --- a/pkg/detectors/dfuse/dfuse.go +++ b/pkg/detectors/dfuse/dfuse.go @@ -2,8 +2,8 @@ package dfuse import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/diffbot/diffbot.go b/pkg/detectors/diffbot/diffbot.go index 47fb787f98d4..8fda47e5ce84 100644 --- a/pkg/detectors/diffbot/diffbot.go +++ b/pkg/detectors/diffbot/diffbot.go @@ -3,9 +3,9 @@ package diffbot import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/diggernaut/diggernaut.go b/pkg/detectors/diggernaut/diggernaut.go index 4b48f029d002..ae025a1e1406 100644 --- a/pkg/detectors/diggernaut/diggernaut.go +++ b/pkg/detectors/diggernaut/diggernaut.go @@ -3,8 +3,8 @@ package diggernaut import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/digitaloceantoken/digitaloceantoken.go b/pkg/detectors/digitaloceantoken/digitaloceantoken.go index 869bdd3e593f..e5faca4b5b72 100644 --- a/pkg/detectors/digitaloceantoken/digitaloceantoken.go +++ b/pkg/detectors/digitaloceantoken/digitaloceantoken.go @@ -3,8 +3,8 @@ package digitaloceantoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/digitaloceanv2/digitaloceanv2.go b/pkg/detectors/digitaloceanv2/digitaloceanv2.go index bc0dd5c10edf..152f938ab8da 100644 --- a/pkg/detectors/digitaloceanv2/digitaloceanv2.go +++ b/pkg/detectors/digitaloceanv2/digitaloceanv2.go @@ -3,9 +3,9 @@ package digitaloceanv2 import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/discordbottoken/discordbottoken.go b/pkg/detectors/discordbottoken/discordbottoken.go index d126e384c79f..1e85c5865a85 100644 --- a/pkg/detectors/discordbottoken/discordbottoken.go +++ b/pkg/detectors/discordbottoken/discordbottoken.go @@ -3,8 +3,8 @@ package discordbottoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/discordwebhook/discordwebhook.go b/pkg/detectors/discordwebhook/discordwebhook.go index 2db4f57d3a97..8994363243a7 100644 --- a/pkg/detectors/discordwebhook/discordwebhook.go +++ b/pkg/detectors/discordwebhook/discordwebhook.go @@ -2,8 +2,8 @@ package discordwebhook import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/disqus/disqus.go b/pkg/detectors/disqus/disqus.go index 565753fed978..70cda3e9091f 100644 --- a/pkg/detectors/disqus/disqus.go +++ b/pkg/detectors/disqus/disqus.go @@ -2,8 +2,8 @@ package disqus import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ditto/ditto.go b/pkg/detectors/ditto/ditto.go index 5ade311d555d..afdad473b636 100644 --- a/pkg/detectors/ditto/ditto.go +++ b/pkg/detectors/ditto/ditto.go @@ -3,8 +3,8 @@ package ditto import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dnscheck/dnscheck.go b/pkg/detectors/dnscheck/dnscheck.go index 9abb4540523f..ed1161dfd0dc 100644 --- a/pkg/detectors/dnscheck/dnscheck.go +++ b/pkg/detectors/dnscheck/dnscheck.go @@ -2,8 +2,8 @@ package dnscheck import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dockerhub/dockerhub.go b/pkg/detectors/dockerhub/dockerhub.go index d304e3d3d2cf..7dd4713f97b2 100644 --- a/pkg/detectors/dockerhub/dockerhub.go +++ b/pkg/detectors/dockerhub/dockerhub.go @@ -3,9 +3,9 @@ package dockerhub import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/docparser/docparser.go b/pkg/detectors/docparser/docparser.go index ce9a16fd5ef8..bb8fc286009d 100644 --- a/pkg/detectors/docparser/docparser.go +++ b/pkg/detectors/docparser/docparser.go @@ -3,8 +3,8 @@ package docparser import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/documo/documo.go b/pkg/detectors/documo/documo.go index 7f0d0986be31..3f98cca0866b 100644 --- a/pkg/detectors/documo/documo.go +++ b/pkg/detectors/documo/documo.go @@ -3,8 +3,8 @@ package documo import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/docusign/docusign.go b/pkg/detectors/docusign/docusign.go index 92008dee46b3..78c4774e893e 100644 --- a/pkg/detectors/docusign/docusign.go +++ b/pkg/detectors/docusign/docusign.go @@ -5,8 +5,8 @@ import ( "encoding/base64" "fmt" "github.com/go-errors/errors" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/doppler/doppler.go b/pkg/detectors/doppler/doppler.go index 654a1232246e..1e27f15667a7 100644 --- a/pkg/detectors/doppler/doppler.go +++ b/pkg/detectors/doppler/doppler.go @@ -2,8 +2,8 @@ package doppler import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dotmailer/dotmailer.go b/pkg/detectors/dotmailer/dotmailer.go index 77c9bd0b9854..205cea1aa427 100644 --- a/pkg/detectors/dotmailer/dotmailer.go +++ b/pkg/detectors/dotmailer/dotmailer.go @@ -2,8 +2,8 @@ package dotmailer import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/dovico/dovico.go b/pkg/detectors/dovico/dovico.go index 76d96816f353..766c76db3d2a 100644 --- a/pkg/detectors/dovico/dovico.go +++ b/pkg/detectors/dovico/dovico.go @@ -3,8 +3,8 @@ package dovico import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dronahq/dronahq.go b/pkg/detectors/dronahq/dronahq.go index dff7a25ff0e3..0665aa4ed08e 100644 --- a/pkg/detectors/dronahq/dronahq.go +++ b/pkg/detectors/dronahq/dronahq.go @@ -3,8 +3,8 @@ package dronahq import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/droneci/droneci.go b/pkg/detectors/droneci/droneci.go index 4bbcc18e6eb8..3cd976c30f98 100644 --- a/pkg/detectors/droneci/droneci.go +++ b/pkg/detectors/droneci/droneci.go @@ -3,8 +3,8 @@ package droneci import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dropbox/dropbox.go b/pkg/detectors/dropbox/dropbox.go index 6bd92a494c44..6bdd2a0b3e08 100644 --- a/pkg/detectors/dropbox/dropbox.go +++ b/pkg/detectors/dropbox/dropbox.go @@ -3,8 +3,8 @@ package dropbox import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/duply/duply.go b/pkg/detectors/duply/duply.go index 23ee96710aab..3ffd81a94b37 100644 --- a/pkg/detectors/duply/duply.go +++ b/pkg/detectors/duply/duply.go @@ -2,8 +2,8 @@ package duply import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/dwolla/dwolla.go b/pkg/detectors/dwolla/dwolla.go index fb738289f927..d67c74f1dd41 100644 --- a/pkg/detectors/dwolla/dwolla.go +++ b/pkg/detectors/dwolla/dwolla.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dynalist/dynalist.go b/pkg/detectors/dynalist/dynalist.go index 1ba986802f0a..7a22037745ea 100644 --- a/pkg/detectors/dynalist/dynalist.go +++ b/pkg/detectors/dynalist/dynalist.go @@ -3,9 +3,9 @@ package dynalist import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/dyspatch/dyspatch.go b/pkg/detectors/dyspatch/dyspatch.go index 8f078345182f..5547d2f4460e 100644 --- a/pkg/detectors/dyspatch/dyspatch.go +++ b/pkg/detectors/dyspatch/dyspatch.go @@ -3,9 +3,9 @@ package dyspatch import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go b/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go index 3c3fd4e7bbdf..47d1f5677df6 100644 --- a/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go +++ b/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go @@ -3,8 +3,8 @@ package eagleeyenetworks import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/easyinsight/easyinsight.go b/pkg/detectors/easyinsight/easyinsight.go index 7011dacd6b7b..12ba7de62be4 100644 --- a/pkg/detectors/easyinsight/easyinsight.go +++ b/pkg/detectors/easyinsight/easyinsight.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ecostruxureit/ecostruxureit.go b/pkg/detectors/ecostruxureit/ecostruxureit.go index b4762cf53e1d..2fa4776679cc 100644 --- a/pkg/detectors/ecostruxureit/ecostruxureit.go +++ b/pkg/detectors/ecostruxureit/ecostruxureit.go @@ -3,8 +3,8 @@ package ecostruxureit import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/edamam/edamam.go b/pkg/detectors/edamam/edamam.go index 65773b15821b..f1a30ad1699c 100644 --- a/pkg/detectors/edamam/edamam.go +++ b/pkg/detectors/edamam/edamam.go @@ -3,8 +3,8 @@ package edamam import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/edenai/edenai.go b/pkg/detectors/edenai/edenai.go index 9301fe6c62ec..471514dfd25e 100644 --- a/pkg/detectors/edenai/edenai.go +++ b/pkg/detectors/edenai/edenai.go @@ -3,8 +3,8 @@ package edenai import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/eightxeight/eightxeight.go b/pkg/detectors/eightxeight/eightxeight.go index 3e62e51f1394..628942c4b8af 100644 --- a/pkg/detectors/eightxeight/eightxeight.go +++ b/pkg/detectors/eightxeight/eightxeight.go @@ -3,8 +3,8 @@ package eightxeight import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/elasticemail/elasticemail.go b/pkg/detectors/elasticemail/elasticemail.go index 39289c95d972..436cd94e75e8 100644 --- a/pkg/detectors/elasticemail/elasticemail.go +++ b/pkg/detectors/elasticemail/elasticemail.go @@ -3,9 +3,9 @@ package elasticemail import ( "context" "encoding/json" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/enablex/enablex.go b/pkg/detectors/enablex/enablex.go index 3242450798a3..13c8c24098bf 100644 --- a/pkg/detectors/enablex/enablex.go +++ b/pkg/detectors/enablex/enablex.go @@ -2,8 +2,8 @@ package enablex import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/enigma/enigma.go b/pkg/detectors/enigma/enigma.go index b201d355d27c..729b44f48b66 100644 --- a/pkg/detectors/enigma/enigma.go +++ b/pkg/detectors/enigma/enigma.go @@ -2,8 +2,8 @@ package enigma import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/envoyapikey/envoyapikey.go b/pkg/detectors/envoyapikey/envoyapikey.go index 263fb44278c7..b34d3493d133 100644 --- a/pkg/detectors/envoyapikey/envoyapikey.go +++ b/pkg/detectors/envoyapikey/envoyapikey.go @@ -2,9 +2,9 @@ package envoyapikey import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/etherscan/etherscan.go b/pkg/detectors/etherscan/etherscan.go index b34a6fa9d7ee..585d5bf694ef 100644 --- a/pkg/detectors/etherscan/etherscan.go +++ b/pkg/detectors/etherscan/etherscan.go @@ -2,9 +2,9 @@ package etherscan import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ethplorer/ethplorer.go b/pkg/detectors/ethplorer/ethplorer.go index 93f3853c05f5..3c101d5b6eab 100644 --- a/pkg/detectors/ethplorer/ethplorer.go +++ b/pkg/detectors/ethplorer/ethplorer.go @@ -2,8 +2,8 @@ package ethplorer import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/etsyapikey/etsyapikey.go b/pkg/detectors/etsyapikey/etsyapikey.go index f1a4d6e937d4..e71d82b5074a 100644 --- a/pkg/detectors/etsyapikey/etsyapikey.go +++ b/pkg/detectors/etsyapikey/etsyapikey.go @@ -2,8 +2,8 @@ package etsyapikey import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/eventbrite/eventbrite.go b/pkg/detectors/eventbrite/eventbrite.go index 43f2decc1f24..d81fe7e44264 100644 --- a/pkg/detectors/eventbrite/eventbrite.go +++ b/pkg/detectors/eventbrite/eventbrite.go @@ -3,8 +3,8 @@ package eventbrite import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/everhour/everhour.go b/pkg/detectors/everhour/everhour.go index 8d7876bad77a..1bb2f14617e4 100644 --- a/pkg/detectors/everhour/everhour.go +++ b/pkg/detectors/everhour/everhour.go @@ -2,8 +2,8 @@ package everhour import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/exchangerateapi/exchangerateapi.go b/pkg/detectors/exchangerateapi/exchangerateapi.go index 39e7c1b6808b..b033c90af108 100644 --- a/pkg/detectors/exchangerateapi/exchangerateapi.go +++ b/pkg/detectors/exchangerateapi/exchangerateapi.go @@ -3,8 +3,8 @@ package exchangerateapi import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/exchangeratesapi/exchangeratesapi.go b/pkg/detectors/exchangeratesapi/exchangeratesapi.go index 3d8113779f2e..2316b94dc1c3 100644 --- a/pkg/detectors/exchangeratesapi/exchangeratesapi.go +++ b/pkg/detectors/exchangeratesapi/exchangeratesapi.go @@ -3,8 +3,8 @@ package exchangeratesapi import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/exportsdk/exportsdk.go b/pkg/detectors/exportsdk/exportsdk.go index 024184f65717..62ac8ddfa852 100644 --- a/pkg/detectors/exportsdk/exportsdk.go +++ b/pkg/detectors/exportsdk/exportsdk.go @@ -2,8 +2,8 @@ package exportsdk import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/extractorapi/extractorapi.go b/pkg/detectors/extractorapi/extractorapi.go index 922e0a98f2ee..95e15c608bb6 100644 --- a/pkg/detectors/extractorapi/extractorapi.go +++ b/pkg/detectors/extractorapi/extractorapi.go @@ -2,8 +2,8 @@ package extractorapi import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/facebookoauth/facebookoauth.go b/pkg/detectors/facebookoauth/facebookoauth.go index 6fe5d2e80317..194aa7d7ff90 100644 --- a/pkg/detectors/facebookoauth/facebookoauth.go +++ b/pkg/detectors/facebookoauth/facebookoauth.go @@ -3,8 +3,8 @@ package facebookoauth import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/faceplusplus/faceplusplus.go b/pkg/detectors/faceplusplus/faceplusplus.go index d0163eaf5f9c..24914f0832be 100644 --- a/pkg/detectors/faceplusplus/faceplusplus.go +++ b/pkg/detectors/faceplusplus/faceplusplus.go @@ -3,8 +3,8 @@ package faceplusplus import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fastforex/fastforex.go b/pkg/detectors/fastforex/fastforex.go index 6d05255b92b4..0c8b772f411b 100644 --- a/pkg/detectors/fastforex/fastforex.go +++ b/pkg/detectors/fastforex/fastforex.go @@ -3,8 +3,8 @@ package fastforex import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go b/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go index 9a2416a06020..27a6da02c721 100644 --- a/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go +++ b/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go @@ -4,9 +4,9 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/feedier/feedier.go b/pkg/detectors/feedier/feedier.go index 94b41d598704..099caea9493d 100644 --- a/pkg/detectors/feedier/feedier.go +++ b/pkg/detectors/feedier/feedier.go @@ -3,8 +3,8 @@ package feedier import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fetchrss/fetchrss.go b/pkg/detectors/fetchrss/fetchrss.go index 19490cfe286b..8c3b3690f15f 100644 --- a/pkg/detectors/fetchrss/fetchrss.go +++ b/pkg/detectors/fetchrss/fetchrss.go @@ -2,9 +2,9 @@ package fetchrss import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fibery/fibery.go b/pkg/detectors/fibery/fibery.go index 11f11eb313da..ce23a1d1a9ed 100644 --- a/pkg/detectors/fibery/fibery.go +++ b/pkg/detectors/fibery/fibery.go @@ -3,8 +3,8 @@ package fibery import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/figmapersonalaccesstoken/v1/figmapersonalaccesstoken.go b/pkg/detectors/figmapersonalaccesstoken/v1/figmapersonalaccesstoken.go index 4968b1e1ee05..73ed18385e9f 100644 --- a/pkg/detectors/figmapersonalaccesstoken/v1/figmapersonalaccesstoken.go +++ b/pkg/detectors/figmapersonalaccesstoken/v1/figmapersonalaccesstoken.go @@ -3,8 +3,8 @@ package figmapersonalaccesstoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/figmapersonalaccesstoken/v2/figmapersonalaccesstoken_v2.go b/pkg/detectors/figmapersonalaccesstoken/v2/figmapersonalaccesstoken_v2.go index 0fa7b4ecc2ea..b2d40991a356 100644 --- a/pkg/detectors/figmapersonalaccesstoken/v2/figmapersonalaccesstoken_v2.go +++ b/pkg/detectors/figmapersonalaccesstoken/v2/figmapersonalaccesstoken_v2.go @@ -3,8 +3,8 @@ package figmapersonalaccesstoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fileio/fileio.go b/pkg/detectors/fileio/fileio.go index 4bb6cdb8b373..136a967623a2 100644 --- a/pkg/detectors/fileio/fileio.go +++ b/pkg/detectors/fileio/fileio.go @@ -4,9 +4,9 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/finage/finage.go b/pkg/detectors/finage/finage.go index 1901ed601a9d..fc43ec4a5d96 100644 --- a/pkg/detectors/finage/finage.go +++ b/pkg/detectors/finage/finage.go @@ -3,8 +3,8 @@ package finage import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/financialmodelingprep/financialmodelingprep.go b/pkg/detectors/financialmodelingprep/financialmodelingprep.go index cf7d7a17fc78..6f3d20194c87 100644 --- a/pkg/detectors/financialmodelingprep/financialmodelingprep.go +++ b/pkg/detectors/financialmodelingprep/financialmodelingprep.go @@ -3,9 +3,9 @@ package financialmodelingprep import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/findl/findl.go b/pkg/detectors/findl/findl.go index 323cd90c9fa0..0f6150957c31 100644 --- a/pkg/detectors/findl/findl.go +++ b/pkg/detectors/findl/findl.go @@ -2,8 +2,8 @@ package findl import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/finnhub/finnhub.go b/pkg/detectors/finnhub/finnhub.go index 57e0caaf7b63..442e908c6c5f 100644 --- a/pkg/detectors/finnhub/finnhub.go +++ b/pkg/detectors/finnhub/finnhub.go @@ -3,8 +3,8 @@ package finnhub import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fixerio/fixerio.go b/pkg/detectors/fixerio/fixerio.go index 17df2ef99f33..070a8ca2c454 100644 --- a/pkg/detectors/fixerio/fixerio.go +++ b/pkg/detectors/fixerio/fixerio.go @@ -2,9 +2,9 @@ package fixerio import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/flatio/flatio.go b/pkg/detectors/flatio/flatio.go index bffb97a9fb94..20a39d0c1ff7 100644 --- a/pkg/detectors/flatio/flatio.go +++ b/pkg/detectors/flatio/flatio.go @@ -3,8 +3,8 @@ package flatio import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fleetbase/fleetbase.go b/pkg/detectors/fleetbase/fleetbase.go index 0b5746efe282..fd5c4e385e84 100644 --- a/pkg/detectors/fleetbase/fleetbase.go +++ b/pkg/detectors/fleetbase/fleetbase.go @@ -3,8 +3,8 @@ package fleetbase import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/flickr/flickr.go b/pkg/detectors/flickr/flickr.go index 2eabda609384..1df3abf16cf9 100644 --- a/pkg/detectors/flickr/flickr.go +++ b/pkg/detectors/flickr/flickr.go @@ -3,9 +3,9 @@ package flickr import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/flightapi/flightapi.go b/pkg/detectors/flightapi/flightapi.go index a6249c300a6b..049947ac7e4f 100644 --- a/pkg/detectors/flightapi/flightapi.go +++ b/pkg/detectors/flightapi/flightapi.go @@ -3,8 +3,8 @@ package flightapi import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/flightlabs/flightlabs.go b/pkg/detectors/flightlabs/flightlabs.go index 18a3e390d93c..516c56fdc40a 100644 --- a/pkg/detectors/flightlabs/flightlabs.go +++ b/pkg/detectors/flightlabs/flightlabs.go @@ -3,9 +3,9 @@ package flightlabs import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/flightstats/flightstats.go b/pkg/detectors/flightstats/flightstats.go index 2d6253c90404..9a898ec7e006 100644 --- a/pkg/detectors/flightstats/flightstats.go +++ b/pkg/detectors/flightstats/flightstats.go @@ -3,9 +3,9 @@ package flightstats import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/float/float.go b/pkg/detectors/float/float.go index 211911932007..fd5c09415994 100644 --- a/pkg/detectors/float/float.go +++ b/pkg/detectors/float/float.go @@ -3,8 +3,8 @@ package float import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/flowdash/flowdash.go b/pkg/detectors/flowdash/flowdash.go index 2cc5d72fa596..83b2bc68dd3f 100644 --- a/pkg/detectors/flowdash/flowdash.go +++ b/pkg/detectors/flowdash/flowdash.go @@ -3,8 +3,8 @@ package flowdash import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/flowflu/flowflu.go b/pkg/detectors/flowflu/flowflu.go index bc58079823a7..6848c9848121 100644 --- a/pkg/detectors/flowflu/flowflu.go +++ b/pkg/detectors/flowflu/flowflu.go @@ -3,9 +3,9 @@ package flowflu import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/flutterwave/flutterwave.go b/pkg/detectors/flutterwave/flutterwave.go index bad763f7c8a9..aee9fcc19dac 100644 --- a/pkg/detectors/flutterwave/flutterwave.go +++ b/pkg/detectors/flutterwave/flutterwave.go @@ -3,8 +3,8 @@ package flutterwave import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fmfw/fmfw.go b/pkg/detectors/fmfw/fmfw.go index f406be1387e1..1ff4f32866c0 100644 --- a/pkg/detectors/fmfw/fmfw.go +++ b/pkg/detectors/fmfw/fmfw.go @@ -2,8 +2,8 @@ package fmfw import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/formbucket/formbucket.go b/pkg/detectors/formbucket/formbucket.go index 62ab3fd929d3..8ace8aca6b52 100644 --- a/pkg/detectors/formbucket/formbucket.go +++ b/pkg/detectors/formbucket/formbucket.go @@ -3,9 +3,9 @@ package formbucket import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/formcraft/formcraft.go b/pkg/detectors/formcraft/formcraft.go index 1b040a17cfbc..5e417914ff87 100644 --- a/pkg/detectors/formcraft/formcraft.go +++ b/pkg/detectors/formcraft/formcraft.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/formio/formio.go b/pkg/detectors/formio/formio.go index f843d6e9bd81..3c9aba537481 100644 --- a/pkg/detectors/formio/formio.go +++ b/pkg/detectors/formio/formio.go @@ -2,8 +2,8 @@ package formio import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/formsite/formsite.go b/pkg/detectors/formsite/formsite.go index 38addb63a14d..53cc440099a1 100644 --- a/pkg/detectors/formsite/formsite.go +++ b/pkg/detectors/formsite/formsite.go @@ -3,8 +3,8 @@ package formsite import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/foursquare/foursquare.go b/pkg/detectors/foursquare/foursquare.go index 6fbc66e03bc3..12c0a3e9493e 100644 --- a/pkg/detectors/foursquare/foursquare.go +++ b/pkg/detectors/foursquare/foursquare.go @@ -3,8 +3,8 @@ package foursquare import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/frameio/frameio.go b/pkg/detectors/frameio/frameio.go index 5c0d47d6eb1e..a257a5214698 100644 --- a/pkg/detectors/frameio/frameio.go +++ b/pkg/detectors/frameio/frameio.go @@ -3,8 +3,8 @@ package frameio import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/freshbooks/freshbooks.go b/pkg/detectors/freshbooks/freshbooks.go index 271ec9072549..e5a6b5311ac3 100644 --- a/pkg/detectors/freshbooks/freshbooks.go +++ b/pkg/detectors/freshbooks/freshbooks.go @@ -3,9 +3,9 @@ package freshbooks import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/freshdesk/freshdesk.go b/pkg/detectors/freshdesk/freshdesk.go index a0f425b9ad91..f46f601d428b 100644 --- a/pkg/detectors/freshdesk/freshdesk.go +++ b/pkg/detectors/freshdesk/freshdesk.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/front/front.go b/pkg/detectors/front/front.go index f059f41baf12..40de6007d41d 100644 --- a/pkg/detectors/front/front.go +++ b/pkg/detectors/front/front.go @@ -3,8 +3,8 @@ package front import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ftp/ftp.go b/pkg/detectors/ftp/ftp.go index 8d77f12f1b4a..58c0d01ebc07 100644 --- a/pkg/detectors/ftp/ftp.go +++ b/pkg/detectors/ftp/ftp.go @@ -3,9 +3,9 @@ package ftp import ( "context" "errors" + regexp "github.com/wasilibs/go-re2" "net/textproto" "net/url" - "regexp" "strings" "time" diff --git a/pkg/detectors/fulcrum/fulcrum.go b/pkg/detectors/fulcrum/fulcrum.go index eae2e4463052..8503dfa4a954 100644 --- a/pkg/detectors/fulcrum/fulcrum.go +++ b/pkg/detectors/fulcrum/fulcrum.go @@ -2,8 +2,8 @@ package fulcrum import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fullstory/fullstory.go b/pkg/detectors/fullstory/fullstory.go index 641080516a06..9325b7883df9 100644 --- a/pkg/detectors/fullstory/fullstory.go +++ b/pkg/detectors/fullstory/fullstory.go @@ -3,8 +3,8 @@ package fullstory import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "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 196d80d2c8cc..0783a45c24f5 100644 --- a/pkg/detectors/fullstory_v2/fullstory_v2.go +++ b/pkg/detectors/fullstory_v2/fullstory_v2.go @@ -3,8 +3,8 @@ package fullstory_v2 import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fusebill/fusebill.go b/pkg/detectors/fusebill/fusebill.go index 689db0269829..2df1eb36b645 100644 --- a/pkg/detectors/fusebill/fusebill.go +++ b/pkg/detectors/fusebill/fusebill.go @@ -3,8 +3,8 @@ package fusebill import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/fxmarket/fxmarket.go b/pkg/detectors/fxmarket/fxmarket.go index 5a229f99440e..12713622bcab 100644 --- a/pkg/detectors/fxmarket/fxmarket.go +++ b/pkg/detectors/fxmarket/fxmarket.go @@ -3,8 +3,8 @@ package fxmarket import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gcp/gcp.go b/pkg/detectors/gcp/gcp.go index 8771fc252bb2..dc5836833c1b 100644 --- a/pkg/detectors/gcp/gcp.go +++ b/pkg/detectors/gcp/gcp.go @@ -3,7 +3,7 @@ package gcp import ( "context" "encoding/json" - "regexp" + regexp "github.com/wasilibs/go-re2" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/geckoboard/geckoboard.go b/pkg/detectors/geckoboard/geckoboard.go index eda0bd430b74..39caa8c6db5a 100644 --- a/pkg/detectors/geckoboard/geckoboard.go +++ b/pkg/detectors/geckoboard/geckoboard.go @@ -3,8 +3,8 @@ package geckoboard import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gemini/gemini.go b/pkg/detectors/gemini/gemini.go index 7e47f10a5b3a..668763e6a43e 100644 --- a/pkg/detectors/gemini/gemini.go +++ b/pkg/detectors/gemini/gemini.go @@ -8,8 +8,8 @@ import ( "encoding/base64" "encoding/hex" "encoding/json" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/generic/generic.go b/pkg/detectors/generic/generic.go index 371e17878c9c..9ef51da4ce52 100644 --- a/pkg/detectors/generic/generic.go +++ b/pkg/detectors/generic/generic.go @@ -6,7 +6,7 @@ import ( "context" "encoding/base64" "fmt" - "regexp" + regexp "github.com/wasilibs/go-re2" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/gengo/gengo.go b/pkg/detectors/gengo/gengo.go index e90e14fac5d3..e3c908b643ac 100644 --- a/pkg/detectors/gengo/gengo.go +++ b/pkg/detectors/gengo/gengo.go @@ -7,9 +7,9 @@ import ( "encoding/hex" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strconv" "strings" "time" diff --git a/pkg/detectors/geoapify/geoapify.go b/pkg/detectors/geoapify/geoapify.go index d20c890b85ec..8dc27f81e125 100644 --- a/pkg/detectors/geoapify/geoapify.go +++ b/pkg/detectors/geoapify/geoapify.go @@ -3,8 +3,8 @@ package geoapify import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/geocode/geocode.go b/pkg/detectors/geocode/geocode.go index 9b6bce1a4daa..ee5dabbc4a3d 100644 --- a/pkg/detectors/geocode/geocode.go +++ b/pkg/detectors/geocode/geocode.go @@ -3,9 +3,9 @@ package geocode import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/geocodify/geocodify.go b/pkg/detectors/geocodify/geocodify.go index e93dc296284e..ff01b7aeff0f 100644 --- a/pkg/detectors/geocodify/geocodify.go +++ b/pkg/detectors/geocodify/geocodify.go @@ -2,8 +2,8 @@ package geocodify import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/geocodio/geocodio.go b/pkg/detectors/geocodio/geocodio.go index 21cbdb2f189f..917847e4a8b0 100644 --- a/pkg/detectors/geocodio/geocodio.go +++ b/pkg/detectors/geocodio/geocodio.go @@ -3,8 +3,8 @@ package geocodio import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/geoipifi/geoipifi.go b/pkg/detectors/geoipifi/geoipifi.go index 3a0d31464ebd..1ffebd08663a 100644 --- a/pkg/detectors/geoipifi/geoipifi.go +++ b/pkg/detectors/geoipifi/geoipifi.go @@ -2,8 +2,8 @@ package geoipifi import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/getemail/getemail.go b/pkg/detectors/getemail/getemail.go index 4bf56ee19c40..5a4c0bf23cab 100644 --- a/pkg/detectors/getemail/getemail.go +++ b/pkg/detectors/getemail/getemail.go @@ -3,9 +3,9 @@ package getemail import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/getemails/getemails.go b/pkg/detectors/getemails/getemails.go index 4d33a59ccb6e..ca40e0501afc 100644 --- a/pkg/detectors/getemails/getemails.go +++ b/pkg/detectors/getemails/getemails.go @@ -2,8 +2,8 @@ package getemails import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/getgeoapi/getgeoapi.go b/pkg/detectors/getgeoapi/getgeoapi.go index c3784f36b63c..eae4b465c7df 100644 --- a/pkg/detectors/getgeoapi/getgeoapi.go +++ b/pkg/detectors/getgeoapi/getgeoapi.go @@ -3,8 +3,8 @@ package getgeoapi import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/getgist/getgist.go b/pkg/detectors/getgist/getgist.go index 3a0158bb3fab..b3a985217781 100644 --- a/pkg/detectors/getgist/getgist.go +++ b/pkg/detectors/getgist/getgist.go @@ -3,8 +3,8 @@ package getgist import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/getresponse/getresponse.go b/pkg/detectors/getresponse/getresponse.go index 9e77cf0b7591..f58b13444588 100644 --- a/pkg/detectors/getresponse/getresponse.go +++ b/pkg/detectors/getresponse/getresponse.go @@ -3,8 +3,8 @@ package getresponse import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/getsandbox/getsandbox.go b/pkg/detectors/getsandbox/getsandbox.go index a45cc70c2eed..f2eeff849ac0 100644 --- a/pkg/detectors/getsandbox/getsandbox.go +++ b/pkg/detectors/getsandbox/getsandbox.go @@ -3,8 +3,8 @@ package getsandbox import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/github/github.go b/pkg/detectors/github/github.go index 192f3d97ab17..038cd08c2124 100644 --- a/pkg/detectors/github/github.go +++ b/pkg/detectors/github/github.go @@ -4,8 +4,8 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "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 a3678a3970e3..ea70de7daafb 100644 --- a/pkg/detectors/github_oauth2/github_oauth2.go +++ b/pkg/detectors/github_oauth2/github_oauth2.go @@ -2,7 +2,7 @@ package github_oauth2 import ( "context" - "regexp" + regexp "github.com/wasilibs/go-re2" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/github_old/github_old.go b/pkg/detectors/github_old/github_old.go index 45724309ce52..26d056801826 100644 --- a/pkg/detectors/github_old/github_old.go +++ b/pkg/detectors/github_old/github_old.go @@ -4,8 +4,8 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/githubapp/githubapp.go b/pkg/detectors/githubapp/githubapp.go index ec1c07588ff5..ed27fdd920ad 100644 --- a/pkg/detectors/githubapp/githubapp.go +++ b/pkg/detectors/githubapp/githubapp.go @@ -5,8 +5,8 @@ import ( // b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/gitlab/gitlab.go b/pkg/detectors/gitlab/gitlab.go index 33ac756b7d93..90f8fa02e57b 100644 --- a/pkg/detectors/gitlab/gitlab.go +++ b/pkg/detectors/gitlab/gitlab.go @@ -4,9 +4,9 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gitlabv2/gitlab_v2.go b/pkg/detectors/gitlabv2/gitlab_v2.go index 4c8c26150483..24f0f1e7536d 100644 --- a/pkg/detectors/gitlabv2/gitlab_v2.go +++ b/pkg/detectors/gitlabv2/gitlab_v2.go @@ -3,8 +3,8 @@ package gitlabv2 import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gitter/gitter.go b/pkg/detectors/gitter/gitter.go index f190118e039e..21c7d113ab2f 100644 --- a/pkg/detectors/gitter/gitter.go +++ b/pkg/detectors/gitter/gitter.go @@ -3,8 +3,8 @@ package gitter import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/glassnode/glassnode.go b/pkg/detectors/glassnode/glassnode.go index b09e84870e29..ec1c427781ce 100644 --- a/pkg/detectors/glassnode/glassnode.go +++ b/pkg/detectors/glassnode/glassnode.go @@ -2,8 +2,8 @@ package glassnode import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gocanvas/gocanvas.go b/pkg/detectors/gocanvas/gocanvas.go index 00854e62a25e..e05336b26ef8 100644 --- a/pkg/detectors/gocanvas/gocanvas.go +++ b/pkg/detectors/gocanvas/gocanvas.go @@ -4,10 +4,10 @@ import ( "context" "encoding/xml" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" "net/url" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gocardless/gocardless.go b/pkg/detectors/gocardless/gocardless.go index 693911adb293..d98498622b26 100644 --- a/pkg/detectors/gocardless/gocardless.go +++ b/pkg/detectors/gocardless/gocardless.go @@ -3,8 +3,8 @@ package gocardless import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/goodday/goodday.go b/pkg/detectors/goodday/goodday.go index 7523e3a0acaa..1b637bc7aeb6 100644 --- a/pkg/detectors/goodday/goodday.go +++ b/pkg/detectors/goodday/goodday.go @@ -2,8 +2,8 @@ package goodday import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/grafana/grafana.go b/pkg/detectors/grafana/grafana.go index 5bd7676ba71e..9ca0431b2b1c 100644 --- a/pkg/detectors/grafana/grafana.go +++ b/pkg/detectors/grafana/grafana.go @@ -3,8 +3,8 @@ package grafana import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/grafanaserviceaccount/grafanaserviceaccount.go b/pkg/detectors/grafanaserviceaccount/grafanaserviceaccount.go index 94c1771cf208..61d02c8c4e0f 100644 --- a/pkg/detectors/grafanaserviceaccount/grafanaserviceaccount.go +++ b/pkg/detectors/grafanaserviceaccount/grafanaserviceaccount.go @@ -3,8 +3,8 @@ package grafanaserviceaccount import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/graphcms/graphcms.go b/pkg/detectors/graphcms/graphcms.go index 1059b7d3b2c8..63c17507a42a 100644 --- a/pkg/detectors/graphcms/graphcms.go +++ b/pkg/detectors/graphcms/graphcms.go @@ -3,8 +3,8 @@ package graphcms import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/graphhopper/graphhopper.go b/pkg/detectors/graphhopper/graphhopper.go index b3e249613a31..84c25ff88733 100644 --- a/pkg/detectors/graphhopper/graphhopper.go +++ b/pkg/detectors/graphhopper/graphhopper.go @@ -3,8 +3,8 @@ package graphhopper import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/groovehq/groovehq.go b/pkg/detectors/groovehq/groovehq.go index ca5c7b7b8177..c1bfa8daddbc 100644 --- a/pkg/detectors/groovehq/groovehq.go +++ b/pkg/detectors/groovehq/groovehq.go @@ -3,8 +3,8 @@ package groovehq import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gtmetrix/gtmetrix.go b/pkg/detectors/gtmetrix/gtmetrix.go index 7decbba1263b..e1a06782b1d9 100644 --- a/pkg/detectors/gtmetrix/gtmetrix.go +++ b/pkg/detectors/gtmetrix/gtmetrix.go @@ -2,8 +2,8 @@ package gtmetrix import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/guardianapi/guardianapi.go b/pkg/detectors/guardianapi/guardianapi.go index 0630f582dfc3..549492e9a846 100644 --- a/pkg/detectors/guardianapi/guardianapi.go +++ b/pkg/detectors/guardianapi/guardianapi.go @@ -2,8 +2,8 @@ package guardianapi import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gumroad/gumroad.go b/pkg/detectors/gumroad/gumroad.go index 5725574c514c..cd341d3b966b 100644 --- a/pkg/detectors/gumroad/gumroad.go +++ b/pkg/detectors/gumroad/gumroad.go @@ -2,8 +2,8 @@ package gumroad import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/guru/guru.go b/pkg/detectors/guru/guru.go index 563a1fc9df01..8622faec9ec0 100644 --- a/pkg/detectors/guru/guru.go +++ b/pkg/detectors/guru/guru.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/gyazo/gyazo.go b/pkg/detectors/gyazo/gyazo.go index b52555071fd4..5c908ebafa84 100644 --- a/pkg/detectors/gyazo/gyazo.go +++ b/pkg/detectors/gyazo/gyazo.go @@ -2,8 +2,8 @@ package gyazo import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/happyscribe/happyscribe.go b/pkg/detectors/happyscribe/happyscribe.go index 354206563d90..7cf67309bad8 100644 --- a/pkg/detectors/happyscribe/happyscribe.go +++ b/pkg/detectors/happyscribe/happyscribe.go @@ -3,8 +3,8 @@ package happyscribe import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/harvest/harvest.go b/pkg/detectors/harvest/harvest.go index 10a38f7390c7..425205332022 100644 --- a/pkg/detectors/harvest/harvest.go +++ b/pkg/detectors/harvest/harvest.go @@ -2,8 +2,8 @@ package harvest import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/hellosign/hellosign.go b/pkg/detectors/hellosign/hellosign.go index 9b43595be541..63c52e3c0ec0 100644 --- a/pkg/detectors/hellosign/hellosign.go +++ b/pkg/detectors/hellosign/hellosign.go @@ -2,8 +2,8 @@ package hellosign import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/helpcrunch/helpcrunch.go b/pkg/detectors/helpcrunch/helpcrunch.go index 55a82a37a759..93eaa7ef6466 100644 --- a/pkg/detectors/helpcrunch/helpcrunch.go +++ b/pkg/detectors/helpcrunch/helpcrunch.go @@ -3,8 +3,8 @@ package helpcrunch import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/helpscout/helpscout.go b/pkg/detectors/helpscout/helpscout.go index ed139de33597..1139c0030033 100644 --- a/pkg/detectors/helpscout/helpscout.go +++ b/pkg/detectors/helpscout/helpscout.go @@ -2,8 +2,8 @@ package helpscout import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/hereapi/hereapi.go b/pkg/detectors/hereapi/hereapi.go index c6362a7b4755..530f2d60eb80 100644 --- a/pkg/detectors/hereapi/hereapi.go +++ b/pkg/detectors/hereapi/hereapi.go @@ -3,8 +3,8 @@ package hereapi import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/heroku/heroku.go b/pkg/detectors/heroku/heroku.go index 2821fc7cb319..d08cab603f87 100644 --- a/pkg/detectors/heroku/heroku.go +++ b/pkg/detectors/heroku/heroku.go @@ -3,8 +3,8 @@ package heroku import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/hive/hive.go b/pkg/detectors/hive/hive.go index eecb74c86f8a..f0e1bb0e8c4a 100644 --- a/pkg/detectors/hive/hive.go +++ b/pkg/detectors/hive/hive.go @@ -2,8 +2,8 @@ package hive import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/hiveage/hiveage.go b/pkg/detectors/hiveage/hiveage.go index 1f84e97ea22c..c206e8c60ba6 100644 --- a/pkg/detectors/hiveage/hiveage.go +++ b/pkg/detectors/hiveage/hiveage.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/holidayapi/holidayapi.go b/pkg/detectors/holidayapi/holidayapi.go index f22ee728ffc0..3ceac5b09927 100644 --- a/pkg/detectors/holidayapi/holidayapi.go +++ b/pkg/detectors/holidayapi/holidayapi.go @@ -3,8 +3,8 @@ package holidayapi import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/holistic/holistic.go b/pkg/detectors/holistic/holistic.go index 71160576acbd..5f08c5956870 100644 --- a/pkg/detectors/holistic/holistic.go +++ b/pkg/detectors/holistic/holistic.go @@ -2,9 +2,9 @@ package holistic import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/honeycomb/honeycomb.go b/pkg/detectors/honeycomb/honeycomb.go index 08af012f4d64..ca9dcbd71da4 100644 --- a/pkg/detectors/honeycomb/honeycomb.go +++ b/pkg/detectors/honeycomb/honeycomb.go @@ -2,8 +2,8 @@ package honeycomb import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/host/host.go b/pkg/detectors/host/host.go index 0ed0db805c25..eb627e742efe 100644 --- a/pkg/detectors/host/host.go +++ b/pkg/detectors/host/host.go @@ -3,8 +3,8 @@ package host import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/html2pdf/html2pdf.go b/pkg/detectors/html2pdf/html2pdf.go index 5b0594af52ec..93a95843a38c 100644 --- a/pkg/detectors/html2pdf/html2pdf.go +++ b/pkg/detectors/html2pdf/html2pdf.go @@ -4,8 +4,8 @@ import ( "bytes" "context" "encoding/json" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/hubspotapikey/hubspotapikey.go b/pkg/detectors/hubspotapikey/hubspotapikey.go index 4adb62c76b16..74a7cd8c61b6 100644 --- a/pkg/detectors/hubspotapikey/hubspotapikey.go +++ b/pkg/detectors/hubspotapikey/hubspotapikey.go @@ -3,8 +3,8 @@ package hubspotapikey import ( "context" // "log" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/huggingface/huggingface.go b/pkg/detectors/huggingface/huggingface.go index 4bdf14c9ac1e..a6fa0a855c75 100644 --- a/pkg/detectors/huggingface/huggingface.go +++ b/pkg/detectors/huggingface/huggingface.go @@ -4,8 +4,8 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/huggingface/huggingface_test.go b/pkg/detectors/huggingface/huggingface_test.go index 08bcf1f31928..eba2decd155c 100644 --- a/pkg/detectors/huggingface/huggingface_test.go +++ b/pkg/detectors/huggingface/huggingface_test.go @@ -53,6 +53,11 @@ func TestHuggingface_FromChunk(t *testing.T) { { DetectorType: detectorspb.DetectorType_HuggingFace, Verified: true, + ExtraData: map[string]string{ + "Email": "zubair.khan@trufflesec.com", + "Token": "another_one (read)", + "Username": "zubairkhan", + }, }, }, wantErr: false, @@ -122,6 +127,56 @@ func TestHuggingface_FromChunk(t *testing.T) { wantVerificationErr: true, }, } + + // Add tests for invalid UTF-8 sequences. + invalidUTF8Sequences := [][]byte{ + {0x80}, + {0xC0, 0xAF}, + {0xFE}, + {0xE2, 0x82}, + {0xED, 0xA0, 0x80}, + {0xF0, 0x28}, + } + + for _, invalidSeq := range invalidUTF8Sequences { + // Inject invalid sequence into the test string + testData := fmt.Sprintf("you can find a huggingface secret %s%s%s more valid text", + string(invalidSeq), + secret, + string(invalidSeq)) + + tests = append(tests, struct { + name string + s Scanner + args args + want []detectors.Result + wantErr bool + wantVerificationErr bool + }{ + name: fmt.Sprintf("Test with invalid UTF-8 sequence: %v", invalidSeq), + s: Scanner{}, + args: args{ + ctx: context.Background(), + data: []byte(testData), + verify: true, // or true based on your test scenario + }, + + want: []detectors.Result{ + { + DetectorType: detectorspb.DetectorType_HuggingFace, + Verified: true, + ExtraData: map[string]string{ + "Email": "zubair.khan@trufflesec.com", + "Token": "another_one (read)", + "Username": "zubairkhan", + }, + }, + }, + wantErr: false, + wantVerificationErr: false, + }) + } + for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { got, err := tt.s.FromData(tt.args.ctx, tt.args.verify, tt.args.data) diff --git a/pkg/detectors/humanity/humanity.go b/pkg/detectors/humanity/humanity.go index 879948606aa3..e258b5671359 100644 --- a/pkg/detectors/humanity/humanity.go +++ b/pkg/detectors/humanity/humanity.go @@ -2,9 +2,9 @@ package humanity import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/hunter/hunter.go b/pkg/detectors/hunter/hunter.go index c53fda8abdb8..ec7beba3319b 100644 --- a/pkg/detectors/hunter/hunter.go +++ b/pkg/detectors/hunter/hunter.go @@ -4,8 +4,8 @@ import ( "context" // "fmt" // "log" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/hybiscus/hybiscus.go b/pkg/detectors/hybiscus/hybiscus.go index 61c173bf3c04..6e0e8f040044 100644 --- a/pkg/detectors/hybiscus/hybiscus.go +++ b/pkg/detectors/hybiscus/hybiscus.go @@ -2,8 +2,8 @@ package hybiscus import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/hypertrack/hypertrack.go b/pkg/detectors/hypertrack/hypertrack.go index 318bed544ee1..c70821196bb2 100644 --- a/pkg/detectors/hypertrack/hypertrack.go +++ b/pkg/detectors/hypertrack/hypertrack.go @@ -2,8 +2,8 @@ package hypertrack import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go b/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go index d94f8942dbca..551453dfd7fc 100644 --- a/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go +++ b/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go @@ -2,8 +2,8 @@ package ibmclouduserkey import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/iconfinder/iconfinder.go b/pkg/detectors/iconfinder/iconfinder.go index 60f27d796ec2..c98e8acb630b 100644 --- a/pkg/detectors/iconfinder/iconfinder.go +++ b/pkg/detectors/iconfinder/iconfinder.go @@ -3,8 +3,8 @@ package iconfinder import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/iexapis/iexapis.go b/pkg/detectors/iexapis/iexapis.go index dcc25865bae7..da15de37ca5c 100644 --- a/pkg/detectors/iexapis/iexapis.go +++ b/pkg/detectors/iexapis/iexapis.go @@ -2,8 +2,8 @@ package iexapis import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/iexcloud/iexcloud.go b/pkg/detectors/iexcloud/iexcloud.go index 53ceff3d846c..6da807d4fe5c 100644 --- a/pkg/detectors/iexcloud/iexcloud.go +++ b/pkg/detectors/iexcloud/iexcloud.go @@ -3,8 +3,8 @@ package iexcloud import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/imagekit/imagekit.go b/pkg/detectors/imagekit/imagekit.go index b0f224d283d8..cb36a8614df7 100644 --- a/pkg/detectors/imagekit/imagekit.go +++ b/pkg/detectors/imagekit/imagekit.go @@ -2,8 +2,8 @@ package imagekit import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/imagga/imagga.go b/pkg/detectors/imagga/imagga.go index 7ba883e2ff85..f63241bad6c0 100644 --- a/pkg/detectors/imagga/imagga.go +++ b/pkg/detectors/imagga/imagga.go @@ -3,8 +3,8 @@ package imagga import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/impala/impala.go b/pkg/detectors/impala/impala.go index e7dceeace9c3..dde3ca5c0b26 100644 --- a/pkg/detectors/impala/impala.go +++ b/pkg/detectors/impala/impala.go @@ -2,8 +2,8 @@ package impala import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/infura/infura.go b/pkg/detectors/infura/infura.go index 4ee17c7d9a09..1e54c7a48d1e 100644 --- a/pkg/detectors/infura/infura.go +++ b/pkg/detectors/infura/infura.go @@ -2,9 +2,9 @@ package infura import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/insightly/insightly.go b/pkg/detectors/insightly/insightly.go index faaad14af025..e777980459e0 100644 --- a/pkg/detectors/insightly/insightly.go +++ b/pkg/detectors/insightly/insightly.go @@ -2,8 +2,8 @@ package insightly import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/instabot/instabot.go b/pkg/detectors/instabot/instabot.go index 0aa468e63ede..6ba73ac28654 100644 --- a/pkg/detectors/instabot/instabot.go +++ b/pkg/detectors/instabot/instabot.go @@ -2,8 +2,8 @@ package instabot import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/instamojo/instamojo.go b/pkg/detectors/instamojo/instamojo.go index 42ba954b55b9..de281a18c53a 100644 --- a/pkg/detectors/instamojo/instamojo.go +++ b/pkg/detectors/instamojo/instamojo.go @@ -3,9 +3,9 @@ package instamojo import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" @@ -23,9 +23,9 @@ var _ detectors.Detector = (*Scanner)(nil) var ( defaultClient = common.SaneHttpClient() // Make sure that your group is surrounded in boundary characters such as below to reduce false positives. - //KeyPat is client_id + // KeyPat is client_id keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"instamojo"}) + `\b([0-9a-zA-Z]{40})\b`) - //Secretpat is Client_secret + // Secretpat is Client_secret secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"instamojo"}) + `\b([0-9a-zA-Z]{128})\b`) ) diff --git a/pkg/detectors/integromat/integromat.go b/pkg/detectors/integromat/integromat.go index a7476113b236..562e6d090639 100644 --- a/pkg/detectors/integromat/integromat.go +++ b/pkg/detectors/integromat/integromat.go @@ -3,8 +3,8 @@ package integromat import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/intercom/intercom.go b/pkg/detectors/intercom/intercom.go index ae4185f70b0b..b4b7a0420254 100644 --- a/pkg/detectors/intercom/intercom.go +++ b/pkg/detectors/intercom/intercom.go @@ -3,8 +3,8 @@ package intercom import ( "context" "encoding/base64" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/interseller/interseller.go b/pkg/detectors/interseller/interseller.go index cf2e5c77bb50..fe96b67dbeab 100644 --- a/pkg/detectors/interseller/interseller.go +++ b/pkg/detectors/interseller/interseller.go @@ -2,8 +2,8 @@ package interseller import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/intrinio/intrinio.go b/pkg/detectors/intrinio/intrinio.go index 7792e5f1a022..c881fe3a1016 100644 --- a/pkg/detectors/intrinio/intrinio.go +++ b/pkg/detectors/intrinio/intrinio.go @@ -3,8 +3,8 @@ package intrinio import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/invoiceocean/invoiceocean.go b/pkg/detectors/invoiceocean/invoiceocean.go index c2a10462fd17..b77a385dd041 100644 --- a/pkg/detectors/invoiceocean/invoiceocean.go +++ b/pkg/detectors/invoiceocean/invoiceocean.go @@ -3,8 +3,8 @@ package invoiceocean import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ip2location/ip2location.go b/pkg/detectors/ip2location/ip2location.go index 04537e43a243..c2fac406ca0b 100644 --- a/pkg/detectors/ip2location/ip2location.go +++ b/pkg/detectors/ip2location/ip2location.go @@ -3,8 +3,8 @@ package ip2location import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ipapi/ipapi.go b/pkg/detectors/ipapi/ipapi.go index 3205b27061d6..3f686ea97f26 100644 --- a/pkg/detectors/ipapi/ipapi.go +++ b/pkg/detectors/ipapi/ipapi.go @@ -3,9 +3,9 @@ package ipapi import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ipgeolocation/ipgeolocation.go b/pkg/detectors/ipgeolocation/ipgeolocation.go index 29cadae88eaf..cc77f9000211 100644 --- a/pkg/detectors/ipgeolocation/ipgeolocation.go +++ b/pkg/detectors/ipgeolocation/ipgeolocation.go @@ -3,8 +3,8 @@ package ipgeolocation import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ipify/ipify.go b/pkg/detectors/ipify/ipify.go index 3f288075295b..ed70b6506e87 100644 --- a/pkg/detectors/ipify/ipify.go +++ b/pkg/detectors/ipify/ipify.go @@ -3,8 +3,8 @@ package ipify import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/ipinfo/ipinfo.go b/pkg/detectors/ipinfo/ipinfo.go index 3b1761c9cccb..cbc96431bbf0 100644 --- a/pkg/detectors/ipinfo/ipinfo.go +++ b/pkg/detectors/ipinfo/ipinfo.go @@ -3,8 +3,8 @@ package ipinfo import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ipinfodb/ipinfodb.go b/pkg/detectors/ipinfodb/ipinfodb.go index 1ec4bd72d6d7..35f78246c2a3 100644 --- a/pkg/detectors/ipinfodb/ipinfodb.go +++ b/pkg/detectors/ipinfodb/ipinfodb.go @@ -3,9 +3,9 @@ package ipinfodb import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ipquality/ipquality.go b/pkg/detectors/ipquality/ipquality.go index 6288e6f5b202..d6546f7421b6 100644 --- a/pkg/detectors/ipquality/ipquality.go +++ b/pkg/detectors/ipquality/ipquality.go @@ -3,9 +3,9 @@ package ipquality import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ipstack/ipstack.go b/pkg/detectors/ipstack/ipstack.go index bfc9a3e5f9a2..726c42eae348 100644 --- a/pkg/detectors/ipstack/ipstack.go +++ b/pkg/detectors/ipstack/ipstack.go @@ -2,9 +2,9 @@ package ipstack import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/jiratoken/jiratoken.go b/pkg/detectors/jiratoken/jiratoken.go index ddae96f469df..9abc58c00c93 100644 --- a/pkg/detectors/jiratoken/jiratoken.go +++ b/pkg/detectors/jiratoken/jiratoken.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "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 5753dc10ae88..9cdfc688dd0e 100644 --- a/pkg/detectors/jiratoken_v2/jiratoken_v2.go +++ b/pkg/detectors/jiratoken_v2/jiratoken_v2.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/jotform/jotform.go b/pkg/detectors/jotform/jotform.go index 513b4ac09d22..1504e1181d80 100644 --- a/pkg/detectors/jotform/jotform.go +++ b/pkg/detectors/jotform/jotform.go @@ -2,8 +2,8 @@ package jotform import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/jumpcloud/jumpcloud.go b/pkg/detectors/jumpcloud/jumpcloud.go index 35b9af0d7684..0f8186097a08 100644 --- a/pkg/detectors/jumpcloud/jumpcloud.go +++ b/pkg/detectors/jumpcloud/jumpcloud.go @@ -2,8 +2,8 @@ package jumpcloud import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/juro/juro.go b/pkg/detectors/juro/juro.go index 09357911ca72..7ccd9adfda87 100644 --- a/pkg/detectors/juro/juro.go +++ b/pkg/detectors/juro/juro.go @@ -2,8 +2,8 @@ package juro import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/kanban/kanban.go b/pkg/detectors/kanban/kanban.go index f05a3a8c5aa7..96a695e2159f 100644 --- a/pkg/detectors/kanban/kanban.go +++ b/pkg/detectors/kanban/kanban.go @@ -3,8 +3,8 @@ package kanban import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/kanbantool/kanbantool.go b/pkg/detectors/kanbantool/kanbantool.go index 36a49c7466ee..3385e45dfcc0 100644 --- a/pkg/detectors/kanbantool/kanbantool.go +++ b/pkg/detectors/kanbantool/kanbantool.go @@ -3,8 +3,8 @@ package kanbantool import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/karmacrm/karmacrm.go b/pkg/detectors/karmacrm/karmacrm.go index 5a3e61543878..7b93983ce52f 100644 --- a/pkg/detectors/karmacrm/karmacrm.go +++ b/pkg/detectors/karmacrm/karmacrm.go @@ -3,8 +3,8 @@ package karmacrm import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/keenio/keenio.go b/pkg/detectors/keenio/keenio.go index 0637cb6925cf..e0b89deb4610 100644 --- a/pkg/detectors/keenio/keenio.go +++ b/pkg/detectors/keenio/keenio.go @@ -2,8 +2,8 @@ package keenio import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/kickbox/kickbox.go b/pkg/detectors/kickbox/kickbox.go index 4578bad575da..a2c3df79b5a2 100644 --- a/pkg/detectors/kickbox/kickbox.go +++ b/pkg/detectors/kickbox/kickbox.go @@ -2,8 +2,8 @@ package kickbox import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/klaviyo/klaviyo.go b/pkg/detectors/klaviyo/klaviyo.go index 51f17fc033e3..6019d775c778 100644 --- a/pkg/detectors/klaviyo/klaviyo.go +++ b/pkg/detectors/klaviyo/klaviyo.go @@ -4,8 +4,8 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/klipfolio/klipfolio.go b/pkg/detectors/klipfolio/klipfolio.go index 478d1dfa6f2e..5824f1764cd4 100644 --- a/pkg/detectors/klipfolio/klipfolio.go +++ b/pkg/detectors/klipfolio/klipfolio.go @@ -2,8 +2,8 @@ package klipfolio import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/knapsackpro/knapsackpro.go b/pkg/detectors/knapsackpro/knapsackpro.go index 721d81f9796f..ba68a522e623 100644 --- a/pkg/detectors/knapsackpro/knapsackpro.go +++ b/pkg/detectors/knapsackpro/knapsackpro.go @@ -2,8 +2,8 @@ package knapsackpro import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/kontent/kontent.go b/pkg/detectors/kontent/kontent.go index ec1316ed7783..7166835ee7bf 100644 --- a/pkg/detectors/kontent/kontent.go +++ b/pkg/detectors/kontent/kontent.go @@ -3,8 +3,8 @@ package kontent import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/kraken/kraken.go b/pkg/detectors/kraken/kraken.go index 000c9811c0be..0a0693d14b38 100644 --- a/pkg/detectors/kraken/kraken.go +++ b/pkg/detectors/kraken/kraken.go @@ -6,10 +6,10 @@ import ( "crypto/sha256" "crypto/sha512" "encoding/base64" + regexp "github.com/wasilibs/go-re2" "io" "net/http" "net/url" - "regexp" "strconv" "strings" "time" diff --git a/pkg/detectors/kucoin/kucoin.go b/pkg/detectors/kucoin/kucoin.go index a97bc6594dd6..0f68a39465b4 100644 --- a/pkg/detectors/kucoin/kucoin.go +++ b/pkg/detectors/kucoin/kucoin.go @@ -5,8 +5,8 @@ import ( "crypto/hmac" "crypto/sha256" "encoding/base64" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strconv" "strings" "time" diff --git a/pkg/detectors/kylas/kylas.go b/pkg/detectors/kylas/kylas.go index 3a01c15a9a2d..815ea52568c1 100644 --- a/pkg/detectors/kylas/kylas.go +++ b/pkg/detectors/kylas/kylas.go @@ -2,8 +2,8 @@ package kylas import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/languagelayer/languagelayer.go b/pkg/detectors/languagelayer/languagelayer.go index 7368a28b47bc..68e5e8e14a68 100644 --- a/pkg/detectors/languagelayer/languagelayer.go +++ b/pkg/detectors/languagelayer/languagelayer.go @@ -3,9 +3,9 @@ package languagelayer import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/lastfm/lastfm.go b/pkg/detectors/lastfm/lastfm.go index 7b71caef5d14..f1d5f6ab4d56 100644 --- a/pkg/detectors/lastfm/lastfm.go +++ b/pkg/detectors/lastfm/lastfm.go @@ -2,8 +2,8 @@ package lastfm import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/launchdarkly/launchdarkly.go b/pkg/detectors/launchdarkly/launchdarkly.go index bcb2c95f967f..90e8eb398208 100644 --- a/pkg/detectors/launchdarkly/launchdarkly.go +++ b/pkg/detectors/launchdarkly/launchdarkly.go @@ -4,8 +4,8 @@ import ( "context" "errors" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/ldap/ldap.go b/pkg/detectors/ldap/ldap.go index 996ed0532e70..b4619fa4c195 100644 --- a/pkg/detectors/ldap/ldap.go +++ b/pkg/detectors/ldap/ldap.go @@ -4,9 +4,9 @@ import ( "context" "crypto/tls" "fmt" + regexp "github.com/wasilibs/go-re2" "net" "net/url" - "regexp" "strings" "time" diff --git a/pkg/detectors/leadfeeder/leadfeeder.go b/pkg/detectors/leadfeeder/leadfeeder.go index 0b073b34cbe1..b643a070dcc9 100644 --- a/pkg/detectors/leadfeeder/leadfeeder.go +++ b/pkg/detectors/leadfeeder/leadfeeder.go @@ -3,8 +3,8 @@ package leadfeeder import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/lemlist/lemlist.go b/pkg/detectors/lemlist/lemlist.go index 37954f4df623..d76a1b5ea78f 100644 --- a/pkg/detectors/lemlist/lemlist.go +++ b/pkg/detectors/lemlist/lemlist.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/lemonsqueezy/lemonsqueezy.go b/pkg/detectors/lemonsqueezy/lemonsqueezy.go index c6914ffa9d1a..ee04f1ab3c31 100644 --- a/pkg/detectors/lemonsqueezy/lemonsqueezy.go +++ b/pkg/detectors/lemonsqueezy/lemonsqueezy.go @@ -3,8 +3,8 @@ package lemonsqueezy import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/lendflow/lendflow.go b/pkg/detectors/lendflow/lendflow.go index 9503f6eb6d44..c8777cc8552e 100644 --- a/pkg/detectors/lendflow/lendflow.go +++ b/pkg/detectors/lendflow/lendflow.go @@ -3,8 +3,8 @@ package lendflow import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go b/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go index 06ec4ff2ec58..f894acedc8d1 100644 --- a/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go +++ b/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go @@ -3,8 +3,8 @@ package lessannoyingcrm import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/lexigram/lexigram.go b/pkg/detectors/lexigram/lexigram.go index b807ac8c59b9..1f4209ce829c 100644 --- a/pkg/detectors/lexigram/lexigram.go +++ b/pkg/detectors/lexigram/lexigram.go @@ -3,8 +3,8 @@ package lexigram import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/linearapi/linearapi.go b/pkg/detectors/linearapi/linearapi.go index c441c9277e91..69d29747c213 100644 --- a/pkg/detectors/linearapi/linearapi.go +++ b/pkg/detectors/linearapi/linearapi.go @@ -2,9 +2,9 @@ package linearapi import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/linemessaging/linemessaging.go b/pkg/detectors/linemessaging/linemessaging.go index 477d2b320323..2f0ca3b6a3f4 100644 --- a/pkg/detectors/linemessaging/linemessaging.go +++ b/pkg/detectors/linemessaging/linemessaging.go @@ -3,8 +3,8 @@ package linemessaging import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/linenotify/linenotify.go b/pkg/detectors/linenotify/linenotify.go index 74c42255acdc..4669865d7f83 100644 --- a/pkg/detectors/linenotify/linenotify.go +++ b/pkg/detectors/linenotify/linenotify.go @@ -3,8 +3,8 @@ package linenotify import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/linkpreview/linkpreview.go b/pkg/detectors/linkpreview/linkpreview.go index 9e8aeca43c49..66d00ac13064 100644 --- a/pkg/detectors/linkpreview/linkpreview.go +++ b/pkg/detectors/linkpreview/linkpreview.go @@ -3,8 +3,8 @@ package linkpreview import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/liveagent/liveagent.go b/pkg/detectors/liveagent/liveagent.go index e12ca56a3edc..c81ad2d896a0 100644 --- a/pkg/detectors/liveagent/liveagent.go +++ b/pkg/detectors/liveagent/liveagent.go @@ -3,8 +3,8 @@ package liveagent import ( "context" "encoding/json" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/livestorm/livestorm.go b/pkg/detectors/livestorm/livestorm.go index c00e6023336a..f1767d03fd81 100644 --- a/pkg/detectors/livestorm/livestorm.go +++ b/pkg/detectors/livestorm/livestorm.go @@ -2,8 +2,8 @@ package livestorm import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/loadmill/loadmill.go b/pkg/detectors/loadmill/loadmill.go index 7052e3215b3c..61ccc54d28d9 100644 --- a/pkg/detectors/loadmill/loadmill.go +++ b/pkg/detectors/loadmill/loadmill.go @@ -3,8 +3,8 @@ package loadmill import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/lob/lob.go b/pkg/detectors/lob/lob.go index a482c13ef076..0a27c0e8bafa 100644 --- a/pkg/detectors/lob/lob.go +++ b/pkg/detectors/lob/lob.go @@ -2,8 +2,8 @@ package lob import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/locationiq/locationiq.go b/pkg/detectors/locationiq/locationiq.go index 918a1a426453..750cd168e1e5 100644 --- a/pkg/detectors/locationiq/locationiq.go +++ b/pkg/detectors/locationiq/locationiq.go @@ -2,8 +2,8 @@ package locationiq import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/loggly/loggly.go b/pkg/detectors/loggly/loggly.go index 3ef5bf01215d..453bc3aa2089 100644 --- a/pkg/detectors/loggly/loggly.go +++ b/pkg/detectors/loggly/loggly.go @@ -3,8 +3,8 @@ package loggly import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/loginradius/loginradius.go b/pkg/detectors/loginradius/loginradius.go index e50b3b021445..05c2f425e388 100644 --- a/pkg/detectors/loginradius/loginradius.go +++ b/pkg/detectors/loginradius/loginradius.go @@ -2,8 +2,8 @@ package loginradius import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/logzio/logzio.go b/pkg/detectors/logzio/logzio.go index cc77dd4cffec..1addc3b5e556 100644 --- a/pkg/detectors/logzio/logzio.go +++ b/pkg/detectors/logzio/logzio.go @@ -3,8 +3,8 @@ package logzio import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/lokalisetoken/lokalisetoken.go b/pkg/detectors/lokalisetoken/lokalisetoken.go index 7b9ca3baa7f3..b109e4059321 100644 --- a/pkg/detectors/lokalisetoken/lokalisetoken.go +++ b/pkg/detectors/lokalisetoken/lokalisetoken.go @@ -2,8 +2,8 @@ package lokalisetoken import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/loyverse/loyverse.go b/pkg/detectors/loyverse/loyverse.go index 7654ffebbdde..4fa28b51ee5b 100644 --- a/pkg/detectors/loyverse/loyverse.go +++ b/pkg/detectors/loyverse/loyverse.go @@ -3,8 +3,8 @@ package loyverse import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/lunchmoney/lunchmoney.go b/pkg/detectors/lunchmoney/lunchmoney.go index 778801793dba..98a53b291763 100644 --- a/pkg/detectors/lunchmoney/lunchmoney.go +++ b/pkg/detectors/lunchmoney/lunchmoney.go @@ -3,8 +3,8 @@ package lunchmoney import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/luno/luno.go b/pkg/detectors/luno/luno.go index be80eb81bb9b..d8af86bad66f 100644 --- a/pkg/detectors/luno/luno.go +++ b/pkg/detectors/luno/luno.go @@ -2,8 +2,8 @@ package luno import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/m3o/m3o.go b/pkg/detectors/m3o/m3o.go index 5c5c78f019d3..f55a65d81803 100644 --- a/pkg/detectors/m3o/m3o.go +++ b/pkg/detectors/m3o/m3o.go @@ -3,8 +3,8 @@ package m3o import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/macaddress/macaddress.go b/pkg/detectors/macaddress/macaddress.go index 74d26b1dd515..ba1b9f60ba7d 100644 --- a/pkg/detectors/macaddress/macaddress.go +++ b/pkg/detectors/macaddress/macaddress.go @@ -3,8 +3,8 @@ package macaddress import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/madkudu/madkudu.go b/pkg/detectors/madkudu/madkudu.go index 1256ecd0beae..b0f80424d91e 100644 --- a/pkg/detectors/madkudu/madkudu.go +++ b/pkg/detectors/madkudu/madkudu.go @@ -2,8 +2,8 @@ package madkudu import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/magicbell/magicbell.go b/pkg/detectors/magicbell/magicbell.go index 84d2666dc702..730b59b27b7c 100644 --- a/pkg/detectors/magicbell/magicbell.go +++ b/pkg/detectors/magicbell/magicbell.go @@ -2,8 +2,8 @@ package magicbell import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/magnetic/magnetic.go b/pkg/detectors/magnetic/magnetic.go index 40b7f21a5121..aa2867c001a6 100644 --- a/pkg/detectors/magnetic/magnetic.go +++ b/pkg/detectors/magnetic/magnetic.go @@ -2,8 +2,8 @@ package magnetic import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mailboxlayer/mailboxlayer.go b/pkg/detectors/mailboxlayer/mailboxlayer.go index c882dbaa8b5e..57d1ea4027d2 100644 --- a/pkg/detectors/mailboxlayer/mailboxlayer.go +++ b/pkg/detectors/mailboxlayer/mailboxlayer.go @@ -2,9 +2,9 @@ package mailboxlayer import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mailchimp/mailchimp.go b/pkg/detectors/mailchimp/mailchimp.go index a206b070ae0d..852062f17857 100644 --- a/pkg/detectors/mailchimp/mailchimp.go +++ b/pkg/detectors/mailchimp/mailchimp.go @@ -3,8 +3,8 @@ package mailchimp import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" @@ -33,7 +33,7 @@ func (s Scanner) Keywords() []string { func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results []detectors.Result, err error) { dataStr := string(data) - //pretty standard regex match + // pretty standard regex match matches := keyPat.FindAllString(dataStr, -1) for _, match := range matches { diff --git a/pkg/detectors/mailerlite/mailerlite.go b/pkg/detectors/mailerlite/mailerlite.go index 1e33df8e24ff..cac7e1428174 100644 --- a/pkg/detectors/mailerlite/mailerlite.go +++ b/pkg/detectors/mailerlite/mailerlite.go @@ -2,8 +2,8 @@ package mailerlite import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mailgun/mailgun.go b/pkg/detectors/mailgun/mailgun.go index dd9556617d30..7f129cd583c2 100644 --- a/pkg/detectors/mailgun/mailgun.go +++ b/pkg/detectors/mailgun/mailgun.go @@ -3,8 +3,8 @@ package mailgun import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" @@ -55,7 +55,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/mailjetbasicauth/mailjetbasicauth.go b/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go index 0030e5e63857..6faabbb34dfd 100644 --- a/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go +++ b/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go @@ -3,8 +3,8 @@ package mailjetbasicauth import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mailjetsms/mailjetsms.go b/pkg/detectors/mailjetsms/mailjetsms.go index 43388ef9fceb..82bdc3c2706b 100644 --- a/pkg/detectors/mailjetsms/mailjetsms.go +++ b/pkg/detectors/mailjetsms/mailjetsms.go @@ -3,8 +3,8 @@ package mailjetsms import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mailmodo/mailmodo.go b/pkg/detectors/mailmodo/mailmodo.go index 2c3b093cbfb7..0fdf69feba81 100644 --- a/pkg/detectors/mailmodo/mailmodo.go +++ b/pkg/detectors/mailmodo/mailmodo.go @@ -2,8 +2,8 @@ package mailmodo import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mailsac/mailsac.go b/pkg/detectors/mailsac/mailsac.go index 5504ba8db457..97ee69af6435 100644 --- a/pkg/detectors/mailsac/mailsac.go +++ b/pkg/detectors/mailsac/mailsac.go @@ -2,8 +2,8 @@ package mailsac import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mandrill/mandrill.go b/pkg/detectors/mandrill/mandrill.go index c1d928d8b1b7..be0a496bfb98 100644 --- a/pkg/detectors/mandrill/mandrill.go +++ b/pkg/detectors/mandrill/mandrill.go @@ -3,8 +3,8 @@ package mandrill import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/manifest/manifest.go b/pkg/detectors/manifest/manifest.go index 9521dddb6c19..e74cbf3fcd72 100644 --- a/pkg/detectors/manifest/manifest.go +++ b/pkg/detectors/manifest/manifest.go @@ -2,8 +2,8 @@ package manifest import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mapbox/mapbox.go b/pkg/detectors/mapbox/mapbox.go index 951de013ece8..bbeb059e889a 100644 --- a/pkg/detectors/mapbox/mapbox.go +++ b/pkg/detectors/mapbox/mapbox.go @@ -3,8 +3,8 @@ package mapbox import ( "context" // "log" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mapquest/mapquest.go b/pkg/detectors/mapquest/mapquest.go index 31f52b086d85..640896264db2 100644 --- a/pkg/detectors/mapquest/mapquest.go +++ b/pkg/detectors/mapquest/mapquest.go @@ -2,8 +2,8 @@ package mapquest import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/marketstack/marketstack.go b/pkg/detectors/marketstack/marketstack.go index 531d7594a864..e3eb5ac769af 100644 --- a/pkg/detectors/marketstack/marketstack.go +++ b/pkg/detectors/marketstack/marketstack.go @@ -3,8 +3,8 @@ package marketstack import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go b/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go index cc64e07fe897..ca5c65ba2776 100644 --- a/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go +++ b/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go @@ -3,8 +3,8 @@ package mattermostpersonaltoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mavenlink/mavenlink.go b/pkg/detectors/mavenlink/mavenlink.go index 953b6041d2d0..6897cc1de854 100644 --- a/pkg/detectors/mavenlink/mavenlink.go +++ b/pkg/detectors/mavenlink/mavenlink.go @@ -3,8 +3,8 @@ package mavenlink import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/maxmindlicense/maxmindlicense.go b/pkg/detectors/maxmindlicense/maxmindlicense.go index 1e694e4238a5..98b396bdd989 100644 --- a/pkg/detectors/maxmindlicense/maxmindlicense.go +++ b/pkg/detectors/maxmindlicense/maxmindlicense.go @@ -2,8 +2,8 @@ package maxmindlicense import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/meaningcloud/meaningcloud.go b/pkg/detectors/meaningcloud/meaningcloud.go index a9eb84e4adb0..5d4eb584c641 100644 --- a/pkg/detectors/meaningcloud/meaningcloud.go +++ b/pkg/detectors/meaningcloud/meaningcloud.go @@ -4,10 +4,10 @@ import ( "bytes" "context" "encoding/json" + regexp "github.com/wasilibs/go-re2" "io" "mime/multipart" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mediastack/mediastack.go b/pkg/detectors/mediastack/mediastack.go index ab61cbc6403b..0cd9ab3ccdff 100644 --- a/pkg/detectors/mediastack/mediastack.go +++ b/pkg/detectors/mediastack/mediastack.go @@ -3,8 +3,8 @@ package mediastack import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/meistertask/meistertask.go b/pkg/detectors/meistertask/meistertask.go index 2a1b2b8d3b1b..3219747b01c8 100644 --- a/pkg/detectors/meistertask/meistertask.go +++ b/pkg/detectors/meistertask/meistertask.go @@ -3,8 +3,8 @@ package meistertask import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mesibo/mesibo.go b/pkg/detectors/mesibo/mesibo.go index 1edb719ae6f1..81a5c9ae5d9a 100644 --- a/pkg/detectors/mesibo/mesibo.go +++ b/pkg/detectors/mesibo/mesibo.go @@ -2,9 +2,9 @@ package mesibo import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" @@ -13,6 +13,7 @@ import ( ) type Scanner struct{} + // Ensure the Scanner satisfies the interface at compile time. var _ detectors.Detector = (*Scanner)(nil) diff --git a/pkg/detectors/messagebird/messagebird.go b/pkg/detectors/messagebird/messagebird.go index 73caffba8d28..56e42cc06358 100644 --- a/pkg/detectors/messagebird/messagebird.go +++ b/pkg/detectors/messagebird/messagebird.go @@ -3,8 +3,8 @@ package messagebird import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/metaapi/metaapi.go b/pkg/detectors/metaapi/metaapi.go index a59e331068a5..e5ee727228f1 100644 --- a/pkg/detectors/metaapi/metaapi.go +++ b/pkg/detectors/metaapi/metaapi.go @@ -3,9 +3,9 @@ package metaapi import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/metabase/metabase.go b/pkg/detectors/metabase/metabase.go index 804ec978b870..53f11c9f3593 100644 --- a/pkg/detectors/metabase/metabase.go +++ b/pkg/detectors/metabase/metabase.go @@ -3,9 +3,9 @@ package metabase import ( "context" "encoding/json" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/metrilo/metrilo.go b/pkg/detectors/metrilo/metrilo.go index f3dfac5379b6..a25a16875fb2 100644 --- a/pkg/detectors/metrilo/metrilo.go +++ b/pkg/detectors/metrilo/metrilo.go @@ -2,8 +2,8 @@ package metrilo import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go b/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go index f5b9a0ecefd5..cda30abda41f 100644 --- a/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go +++ b/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go @@ -3,9 +3,9 @@ package microsoftteamswebhook import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/mindmeister/mindmeister.go b/pkg/detectors/mindmeister/mindmeister.go index 3440b873cca4..28c5b8453488 100644 --- a/pkg/detectors/mindmeister/mindmeister.go +++ b/pkg/detectors/mindmeister/mindmeister.go @@ -3,9 +3,9 @@ package mindmeister import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/miro/miro.go b/pkg/detectors/miro/miro.go index 451e9b84b85c..aad280cabc89 100644 --- a/pkg/detectors/miro/miro.go +++ b/pkg/detectors/miro/miro.go @@ -3,8 +3,8 @@ package miro import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mite/mite.go b/pkg/detectors/mite/mite.go index 5fe3bf7b0043..2a027b257c7e 100644 --- a/pkg/detectors/mite/mite.go +++ b/pkg/detectors/mite/mite.go @@ -3,8 +3,8 @@ package mite import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mixmax/mixmax.go b/pkg/detectors/mixmax/mixmax.go index 9bebb2a67fdd..d2c733989daa 100644 --- a/pkg/detectors/mixmax/mixmax.go +++ b/pkg/detectors/mixmax/mixmax.go @@ -2,8 +2,8 @@ package mixmax import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mixpanel/mixpanel.go b/pkg/detectors/mixpanel/mixpanel.go index 028ed97ce820..a28c4c626e4f 100644 --- a/pkg/detectors/mixpanel/mixpanel.go +++ b/pkg/detectors/mixpanel/mixpanel.go @@ -2,8 +2,8 @@ package mixpanel import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mockaroo/mockaroo.go b/pkg/detectors/mockaroo/mockaroo.go index 0a51274157af..7c18ace57a62 100644 --- a/pkg/detectors/mockaroo/mockaroo.go +++ b/pkg/detectors/mockaroo/mockaroo.go @@ -4,8 +4,8 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/moderation/moderation.go b/pkg/detectors/moderation/moderation.go index 288bd36886c0..1a54841f83e8 100644 --- a/pkg/detectors/moderation/moderation.go +++ b/pkg/detectors/moderation/moderation.go @@ -3,8 +3,8 @@ package moderation import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/monday/monday.go b/pkg/detectors/monday/monday.go index 9848e2bae51e..fe57e2c0f0b3 100644 --- a/pkg/detectors/monday/monday.go +++ b/pkg/detectors/monday/monday.go @@ -2,8 +2,8 @@ package monday import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mongodb/mongodb.go b/pkg/detectors/mongodb/mongodb.go index 346db19982e8..cc989ec9fcd0 100644 --- a/pkg/detectors/mongodb/mongodb.go +++ b/pkg/detectors/mongodb/mongodb.go @@ -2,7 +2,7 @@ package mongodb import ( "context" - "regexp" + regexp "github.com/wasilibs/go-re2" "strings" "time" diff --git a/pkg/detectors/monkeylearn/monkeylearn.go b/pkg/detectors/monkeylearn/monkeylearn.go index 3c54537fb43c..4a1c52f73a36 100644 --- a/pkg/detectors/monkeylearn/monkeylearn.go +++ b/pkg/detectors/monkeylearn/monkeylearn.go @@ -3,8 +3,8 @@ package monkeylearn import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/moonclerk/moonclerk.go b/pkg/detectors/moonclerk/moonclerk.go index ff721cbe1ad0..e04384d668a1 100644 --- a/pkg/detectors/moonclerk/moonclerk.go +++ b/pkg/detectors/moonclerk/moonclerk.go @@ -2,8 +2,8 @@ package moonclerk import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/moosend/moosend.go b/pkg/detectors/moosend/moosend.go index 4cdf7ce1a3eb..8ac5528326df 100644 --- a/pkg/detectors/moosend/moosend.go +++ b/pkg/detectors/moosend/moosend.go @@ -2,9 +2,9 @@ package moosend import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/moralis/moralis.go b/pkg/detectors/moralis/moralis.go index cf70f73aec31..5c6c2d1763f0 100644 --- a/pkg/detectors/moralis/moralis.go +++ b/pkg/detectors/moralis/moralis.go @@ -2,8 +2,8 @@ package moralis import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mrticktock/mrticktock.go b/pkg/detectors/mrticktock/mrticktock.go index 5b226b04f013..75edeb1644e4 100644 --- a/pkg/detectors/mrticktock/mrticktock.go +++ b/pkg/detectors/mrticktock/mrticktock.go @@ -3,9 +3,9 @@ package mrticktock import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/mux/mux.go b/pkg/detectors/mux/mux.go index 7fcb6a4db217..98c5159fa354 100644 --- a/pkg/detectors/mux/mux.go +++ b/pkg/detectors/mux/mux.go @@ -2,8 +2,8 @@ package mux import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/myfreshworks/myfreshworks.go b/pkg/detectors/myfreshworks/myfreshworks.go index ee6a08d85a72..db93da3aaca7 100644 --- a/pkg/detectors/myfreshworks/myfreshworks.go +++ b/pkg/detectors/myfreshworks/myfreshworks.go @@ -4,9 +4,9 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/myintervals/myintervals.go b/pkg/detectors/myintervals/myintervals.go index 9486811d3425..00c6dec4c231 100644 --- a/pkg/detectors/myintervals/myintervals.go +++ b/pkg/detectors/myintervals/myintervals.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go b/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go index 18a29d13fd59..db1fdc828b55 100644 --- a/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go +++ b/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go @@ -3,8 +3,8 @@ package nasdaqdatalink import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/nethunt/nethunt.go b/pkg/detectors/nethunt/nethunt.go index a91abb4e796c..ff23d922e64d 100644 --- a/pkg/detectors/nethunt/nethunt.go +++ b/pkg/detectors/nethunt/nethunt.go @@ -2,8 +2,8 @@ package nethunt import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/netlify/netlify.go b/pkg/detectors/netlify/netlify.go index a0c75a46559c..b6ad55f4aaf1 100644 --- a/pkg/detectors/netlify/netlify.go +++ b/pkg/detectors/netlify/netlify.go @@ -3,8 +3,8 @@ package netlify import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/neutrinoapi/neutrinoapi.go b/pkg/detectors/neutrinoapi/neutrinoapi.go index c4bbf5eeedc8..1ddf6f0018c8 100644 --- a/pkg/detectors/neutrinoapi/neutrinoapi.go +++ b/pkg/detectors/neutrinoapi/neutrinoapi.go @@ -4,10 +4,10 @@ import ( "bytes" "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "mime/multipart" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go b/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go index 2f954faa621c..a024d2d95e8d 100644 --- a/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go +++ b/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go @@ -2,8 +2,8 @@ package newrelicpersonalapikey import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" @@ -54,7 +54,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/newsapi/newsapi.go b/pkg/detectors/newsapi/newsapi.go index 99fada386e71..e344e34a1e93 100644 --- a/pkg/detectors/newsapi/newsapi.go +++ b/pkg/detectors/newsapi/newsapi.go @@ -2,8 +2,8 @@ package newsapi import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/newscatcher/newscatcher.go b/pkg/detectors/newscatcher/newscatcher.go index bfd1bca4fe83..8d0f49b6dca3 100644 --- a/pkg/detectors/newscatcher/newscatcher.go +++ b/pkg/detectors/newscatcher/newscatcher.go @@ -2,8 +2,8 @@ package newscatcher import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nexmoapikey/nexmoapikey.go b/pkg/detectors/nexmoapikey/nexmoapikey.go index 892ae6651be5..3012be31853d 100644 --- a/pkg/detectors/nexmoapikey/nexmoapikey.go +++ b/pkg/detectors/nexmoapikey/nexmoapikey.go @@ -2,8 +2,8 @@ package nexmoapikey import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nftport/nftport.go b/pkg/detectors/nftport/nftport.go index 6bc019268132..3241d11a2f58 100644 --- a/pkg/detectors/nftport/nftport.go +++ b/pkg/detectors/nftport/nftport.go @@ -2,8 +2,8 @@ package nftport import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ngc/ngc.go b/pkg/detectors/ngc/ngc.go index 6d7c273a1189..ffd4bd3ece51 100644 --- a/pkg/detectors/ngc/ngc.go +++ b/pkg/detectors/ngc/ngc.go @@ -3,8 +3,8 @@ package ngc import ( "context" "encoding/base64" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ngrok/ngrok.go b/pkg/detectors/ngrok/ngrok.go index 5cd3941d3dc4..52523ce6a5e6 100644 --- a/pkg/detectors/ngrok/ngrok.go +++ b/pkg/detectors/ngrok/ngrok.go @@ -3,8 +3,8 @@ package ngrok import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nicereply/nicereply.go b/pkg/detectors/nicereply/nicereply.go index 6d9865507df6..aa8de838ed4d 100644 --- a/pkg/detectors/nicereply/nicereply.go +++ b/pkg/detectors/nicereply/nicereply.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nightfall/nightfall.go b/pkg/detectors/nightfall/nightfall.go index ab7a853bf5ff..105eed1fd1c3 100644 --- a/pkg/detectors/nightfall/nightfall.go +++ b/pkg/detectors/nightfall/nightfall.go @@ -3,8 +3,8 @@ package nightfall import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nimble/nimble.go b/pkg/detectors/nimble/nimble.go index 5e2eff731f18..6f3fc1a0bb1f 100644 --- a/pkg/detectors/nimble/nimble.go +++ b/pkg/detectors/nimble/nimble.go @@ -3,8 +3,8 @@ package nimble import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nitro/nitro.go b/pkg/detectors/nitro/nitro.go index d5b6ea07f54f..45636cd5401a 100644 --- a/pkg/detectors/nitro/nitro.go +++ b/pkg/detectors/nitro/nitro.go @@ -2,8 +2,8 @@ package nitro import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/noticeable/noticeable.go b/pkg/detectors/noticeable/noticeable.go index 63858d7412f0..13331ab12042 100644 --- a/pkg/detectors/noticeable/noticeable.go +++ b/pkg/detectors/noticeable/noticeable.go @@ -3,8 +3,8 @@ package noticeable import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/notion/notion.go b/pkg/detectors/notion/notion.go index 2496c55ac5b1..2d599f50fe54 100644 --- a/pkg/detectors/notion/notion.go +++ b/pkg/detectors/notion/notion.go @@ -3,8 +3,8 @@ package notion import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nozbeteams/nozbeteams.go b/pkg/detectors/nozbeteams/nozbeteams.go index 9b1d5402954e..d2e230ba9d89 100644 --- a/pkg/detectors/nozbeteams/nozbeteams.go +++ b/pkg/detectors/nozbeteams/nozbeteams.go @@ -2,8 +2,8 @@ package nozbeteams import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/npmtoken/npmtoken.go b/pkg/detectors/npmtoken/npmtoken.go index 2a624045f55d..06b5fb7090b2 100644 --- a/pkg/detectors/npmtoken/npmtoken.go +++ b/pkg/detectors/npmtoken/npmtoken.go @@ -3,8 +3,8 @@ package npmtoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/npmtokenv2/npmtokenv2.go b/pkg/detectors/npmtokenv2/npmtokenv2.go index 56b2ef036e2a..e7eda9b96e50 100644 --- a/pkg/detectors/npmtokenv2/npmtokenv2.go +++ b/pkg/detectors/npmtokenv2/npmtokenv2.go @@ -3,8 +3,8 @@ package npmtokenv2 import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/nugetapikey/nugetapikey.go b/pkg/detectors/nugetapikey/nugetapikey.go index e598b0db4d7d..f7d071063469 100644 --- a/pkg/detectors/nugetapikey/nugetapikey.go +++ b/pkg/detectors/nugetapikey/nugetapikey.go @@ -2,8 +2,8 @@ package nugetapikey import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" @@ -56,7 +56,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result res, err := client.Do(req) if err == nil { defer res.Body.Close() - // we can either match on response code "400" or "Bad Request" response + // we can either match on response code "400" or "Bad Request" response if res.StatusCode == 400 { s1.Verified = true } else { diff --git a/pkg/detectors/numverify/numverify.go b/pkg/detectors/numverify/numverify.go index 2eb1f3319916..cb13b7093e4c 100644 --- a/pkg/detectors/numverify/numverify.go +++ b/pkg/detectors/numverify/numverify.go @@ -3,9 +3,9 @@ package numverify import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nutritionix/nutritionix.go b/pkg/detectors/nutritionix/nutritionix.go index 0c3a9c772d82..9e038353dbc4 100644 --- a/pkg/detectors/nutritionix/nutritionix.go +++ b/pkg/detectors/nutritionix/nutritionix.go @@ -2,8 +2,8 @@ package nutritionix import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nylas/nylas.go b/pkg/detectors/nylas/nylas.go index ec564b446530..323eef573192 100644 --- a/pkg/detectors/nylas/nylas.go +++ b/pkg/detectors/nylas/nylas.go @@ -3,8 +3,8 @@ package nylas import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/nytimes/nytimes.go b/pkg/detectors/nytimes/nytimes.go index e992ce304b6b..b0398bc94005 100644 --- a/pkg/detectors/nytimes/nytimes.go +++ b/pkg/detectors/nytimes/nytimes.go @@ -2,8 +2,8 @@ package nytimes import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/oanda/oanda.go b/pkg/detectors/oanda/oanda.go index 051208189cad..c2f47a582235 100644 --- a/pkg/detectors/oanda/oanda.go +++ b/pkg/detectors/oanda/oanda.go @@ -3,8 +3,8 @@ package oanda import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/okta/okta.go b/pkg/detectors/okta/okta.go index 074acbbafc9c..e9a7212a93b7 100644 --- a/pkg/detectors/okta/okta.go +++ b/pkg/detectors/okta/okta.go @@ -3,9 +3,9 @@ package okta import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/omnisend/omnisend.go b/pkg/detectors/omnisend/omnisend.go index 7bd2dcf8000a..8654d55230ce 100644 --- a/pkg/detectors/omnisend/omnisend.go +++ b/pkg/detectors/omnisend/omnisend.go @@ -2,8 +2,8 @@ package omnisend import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/onedesk/onedesk.go b/pkg/detectors/onedesk/onedesk.go index 92ab30387c86..4c71b61324d8 100644 --- a/pkg/detectors/onedesk/onedesk.go +++ b/pkg/detectors/onedesk/onedesk.go @@ -3,9 +3,9 @@ package onedesk import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/onelogin/onelogin.go b/pkg/detectors/onelogin/onelogin.go index 0212a06813f1..f280a0481845 100644 --- a/pkg/detectors/onelogin/onelogin.go +++ b/pkg/detectors/onelogin/onelogin.go @@ -3,8 +3,8 @@ package onelogin import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/onepagecrm/onepagecrm.go b/pkg/detectors/onepagecrm/onepagecrm.go index 61f57f097c4d..ee3df783ef20 100644 --- a/pkg/detectors/onepagecrm/onepagecrm.go +++ b/pkg/detectors/onepagecrm/onepagecrm.go @@ -2,8 +2,8 @@ package onepagecrm import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/onesignal/onesignal.go b/pkg/detectors/onesignal/onesignal.go index d9ebefa664e7..259558167b46 100644 --- a/pkg/detectors/onesignal/onesignal.go +++ b/pkg/detectors/onesignal/onesignal.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/onwaterio/onwaterio.go b/pkg/detectors/onwaterio/onwaterio.go index 53182c184c29..2c12fa389f1e 100644 --- a/pkg/detectors/onwaterio/onwaterio.go +++ b/pkg/detectors/onwaterio/onwaterio.go @@ -3,8 +3,8 @@ package onwaterio import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/oopspam/oopspam.go b/pkg/detectors/oopspam/oopspam.go index 3cbf45060844..b3bebe57e9f0 100644 --- a/pkg/detectors/oopspam/oopspam.go +++ b/pkg/detectors/oopspam/oopspam.go @@ -2,8 +2,8 @@ package oopspam import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/openai/openai.go b/pkg/detectors/openai/openai.go index c658f6f84a10..7b28b05b606b 100644 --- a/pkg/detectors/openai/openai.go +++ b/pkg/detectors/openai/openai.go @@ -4,8 +4,8 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strconv" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/opencagedata/opencagedata.go b/pkg/detectors/opencagedata/opencagedata.go index 7631891490a5..110886d93591 100644 --- a/pkg/detectors/opencagedata/opencagedata.go +++ b/pkg/detectors/opencagedata/opencagedata.go @@ -3,8 +3,8 @@ package opencagedata import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/opengraphr/opengraphr.go b/pkg/detectors/opengraphr/opengraphr.go index fabd0b8a8029..227a7af0ce63 100644 --- a/pkg/detectors/opengraphr/opengraphr.go +++ b/pkg/detectors/opengraphr/opengraphr.go @@ -2,8 +2,8 @@ package opengraphr import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/openuv/openuv.go b/pkg/detectors/openuv/openuv.go index 02981b0a35fd..1d0a0b512c25 100644 --- a/pkg/detectors/openuv/openuv.go +++ b/pkg/detectors/openuv/openuv.go @@ -2,8 +2,8 @@ package openuv import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/openvpn/openvpn.go b/pkg/detectors/openvpn/openvpn.go index ecb602af258e..1bec5b2ffc48 100644 --- a/pkg/detectors/openvpn/openvpn.go +++ b/pkg/detectors/openvpn/openvpn.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/openweather/openweather.go b/pkg/detectors/openweather/openweather.go index 172e0eac0707..34d82de4c31d 100644 --- a/pkg/detectors/openweather/openweather.go +++ b/pkg/detectors/openweather/openweather.go @@ -2,8 +2,8 @@ package openweather import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/opsgenie/opsgenie.go b/pkg/detectors/opsgenie/opsgenie.go index 2911a5357572..527d15335a4c 100644 --- a/pkg/detectors/opsgenie/opsgenie.go +++ b/pkg/detectors/opsgenie/opsgenie.go @@ -3,8 +3,8 @@ package opsgenie import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/optimizely/optimizely.go b/pkg/detectors/optimizely/optimizely.go index f5abf131b121..7601db444737 100644 --- a/pkg/detectors/optimizely/optimizely.go +++ b/pkg/detectors/optimizely/optimizely.go @@ -3,8 +3,8 @@ package optimizely import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/overloop/overloop.go b/pkg/detectors/overloop/overloop.go index e7b82a2c68cf..fcb583dcafef 100644 --- a/pkg/detectors/overloop/overloop.go +++ b/pkg/detectors/overloop/overloop.go @@ -3,8 +3,8 @@ package overloop import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/owlbot/owlbot.go b/pkg/detectors/owlbot/owlbot.go index d6cad3e84aee..abba80bbab4b 100644 --- a/pkg/detectors/owlbot/owlbot.go +++ b/pkg/detectors/owlbot/owlbot.go @@ -3,8 +3,8 @@ package owlbot import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/packagecloud/packagecloud.go b/pkg/detectors/packagecloud/packagecloud.go index d5f1b496a69a..a03e27ccf2e9 100644 --- a/pkg/detectors/packagecloud/packagecloud.go +++ b/pkg/detectors/packagecloud/packagecloud.go @@ -2,8 +2,8 @@ package packagecloud import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go b/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go index 2b5c2b7099f3..7b0c7b5ced34 100644 --- a/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go +++ b/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go @@ -3,8 +3,8 @@ package pagerdutyapikey import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pandadoc/pandadoc.go b/pkg/detectors/pandadoc/pandadoc.go index 06ca1c7f9429..ef8b1ff215e7 100644 --- a/pkg/detectors/pandadoc/pandadoc.go +++ b/pkg/detectors/pandadoc/pandadoc.go @@ -3,8 +3,8 @@ package pandadoc import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pandascore/pandascore.go b/pkg/detectors/pandascore/pandascore.go index d9eec6a7add7..03e36f7cdb9f 100644 --- a/pkg/detectors/pandascore/pandascore.go +++ b/pkg/detectors/pandascore/pandascore.go @@ -3,8 +3,8 @@ package pandascore import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/paperform/paperform.go b/pkg/detectors/paperform/paperform.go index 2bf4fc5da0d4..558d14459dd1 100644 --- a/pkg/detectors/paperform/paperform.go +++ b/pkg/detectors/paperform/paperform.go @@ -3,8 +3,8 @@ package paperform import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/paralleldots/paralleldots.go b/pkg/detectors/paralleldots/paralleldots.go index 74e79626bb91..c0e5cd17dd4d 100644 --- a/pkg/detectors/paralleldots/paralleldots.go +++ b/pkg/detectors/paralleldots/paralleldots.go @@ -3,10 +3,10 @@ package paralleldots import ( "bytes" "context" + regexp "github.com/wasilibs/go-re2" "io" "mime/multipart" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/parsehub/parsehub.go b/pkg/detectors/parsehub/parsehub.go index e82ec148f477..886497fd7967 100644 --- a/pkg/detectors/parsehub/parsehub.go +++ b/pkg/detectors/parsehub/parsehub.go @@ -3,8 +3,8 @@ package parsehub import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/parsers/parsers.go b/pkg/detectors/parsers/parsers.go index 9d890a8be108..2885610e6888 100644 --- a/pkg/detectors/parsers/parsers.go +++ b/pkg/detectors/parsers/parsers.go @@ -2,8 +2,8 @@ package parsers import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/parseur/parseur.go b/pkg/detectors/parseur/parseur.go index 5f389edaea64..206cc5617f49 100644 --- a/pkg/detectors/parseur/parseur.go +++ b/pkg/detectors/parseur/parseur.go @@ -3,8 +3,8 @@ package parseur import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/partnerstack/partnerstack.go b/pkg/detectors/partnerstack/partnerstack.go index ba84258a9563..6d15c8850288 100644 --- a/pkg/detectors/partnerstack/partnerstack.go +++ b/pkg/detectors/partnerstack/partnerstack.go @@ -3,8 +3,8 @@ package partnerstack import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pastebin/pastebin.go b/pkg/detectors/pastebin/pastebin.go index 2911c8719587..70723d8072e8 100644 --- a/pkg/detectors/pastebin/pastebin.go +++ b/pkg/detectors/pastebin/pastebin.go @@ -3,10 +3,10 @@ package pastebin import ( "bytes" "context" + regexp "github.com/wasilibs/go-re2" "io" "mime/multipart" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/paydirtapp/paydirtapp.go b/pkg/detectors/paydirtapp/paydirtapp.go index 361054591649..ade5e315ab7d 100644 --- a/pkg/detectors/paydirtapp/paydirtapp.go +++ b/pkg/detectors/paydirtapp/paydirtapp.go @@ -2,8 +2,8 @@ package paydirtapp import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/paymoapp/paymoapp.go b/pkg/detectors/paymoapp/paymoapp.go index 28ba45d9e71c..b59397ae9f3b 100644 --- a/pkg/detectors/paymoapp/paymoapp.go +++ b/pkg/detectors/paymoapp/paymoapp.go @@ -3,8 +3,8 @@ package paymoapp import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/paymongo/paymongo.go b/pkg/detectors/paymongo/paymongo.go index 5d5d4fd12581..f3c54f806b2f 100644 --- a/pkg/detectors/paymongo/paymongo.go +++ b/pkg/detectors/paymongo/paymongo.go @@ -2,8 +2,8 @@ package paymongo import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/paypaloauth/paypaloauth.go b/pkg/detectors/paypaloauth/paypaloauth.go index 774d4fba0eef..1a9c58bf5dde 100644 --- a/pkg/detectors/paypaloauth/paypaloauth.go +++ b/pkg/detectors/paypaloauth/paypaloauth.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/paystack/paystack.go b/pkg/detectors/paystack/paystack.go index 0f338b4bd010..c470093a9046 100644 --- a/pkg/detectors/paystack/paystack.go +++ b/pkg/detectors/paystack/paystack.go @@ -3,8 +3,8 @@ package paystack import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pdflayer/pdflayer.go b/pkg/detectors/pdflayer/pdflayer.go index e82fc0c35810..3caf35c36666 100644 --- a/pkg/detectors/pdflayer/pdflayer.go +++ b/pkg/detectors/pdflayer/pdflayer.go @@ -3,9 +3,9 @@ package pdflayer import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pdfshift/pdfshift.go b/pkg/detectors/pdfshift/pdfshift.go index 902a36b0095a..218c5d764ce7 100644 --- a/pkg/detectors/pdfshift/pdfshift.go +++ b/pkg/detectors/pdfshift/pdfshift.go @@ -2,8 +2,8 @@ package pdfshift import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/peopledatalabs/peopledatalabs.go b/pkg/detectors/peopledatalabs/peopledatalabs.go index b5153dc0ca47..6b8bf1a6f9f1 100644 --- a/pkg/detectors/peopledatalabs/peopledatalabs.go +++ b/pkg/detectors/peopledatalabs/peopledatalabs.go @@ -2,8 +2,8 @@ package peopledatalabs import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pepipost/pepipost.go b/pkg/detectors/pepipost/pepipost.go index b7b7983fb4f1..3ecc2caa06ac 100644 --- a/pkg/detectors/pepipost/pepipost.go +++ b/pkg/detectors/pepipost/pepipost.go @@ -2,8 +2,8 @@ package pepipost import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/percy/percy.go b/pkg/detectors/percy/percy.go index 748f31c65808..5c5c26a5d719 100644 --- a/pkg/detectors/percy/percy.go +++ b/pkg/detectors/percy/percy.go @@ -3,8 +3,8 @@ package percy import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pinata/pinata.go b/pkg/detectors/pinata/pinata.go index de457d4526f0..f67c4924c473 100644 --- a/pkg/detectors/pinata/pinata.go +++ b/pkg/detectors/pinata/pinata.go @@ -2,8 +2,8 @@ package pinata import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/pipedream/pipedream.go b/pkg/detectors/pipedream/pipedream.go index 19a469fefd95..f299366d0b8a 100644 --- a/pkg/detectors/pipedream/pipedream.go +++ b/pkg/detectors/pipedream/pipedream.go @@ -3,8 +3,8 @@ package pipedream import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/pipedrive/pipedrive.go b/pkg/detectors/pipedrive/pipedrive.go index 878f7791cbdd..d78f66f4f3fb 100644 --- a/pkg/detectors/pipedrive/pipedrive.go +++ b/pkg/detectors/pipedrive/pipedrive.go @@ -3,8 +3,8 @@ package pipedrive import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pivotaltracker/pivotaltracker.go b/pkg/detectors/pivotaltracker/pivotaltracker.go index 970e9d04f46d..efe177d6641c 100644 --- a/pkg/detectors/pivotaltracker/pivotaltracker.go +++ b/pkg/detectors/pivotaltracker/pivotaltracker.go @@ -2,8 +2,8 @@ package pivotaltracker import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/pixabay/pixabay.go b/pkg/detectors/pixabay/pixabay.go index 297cbde81552..df7c38a59aa3 100644 --- a/pkg/detectors/pixabay/pixabay.go +++ b/pkg/detectors/pixabay/pixabay.go @@ -3,8 +3,8 @@ package pixabay import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/plaidkey/plaidkey.go b/pkg/detectors/plaidkey/plaidkey.go index e969b7992874..1158145fc657 100644 --- a/pkg/detectors/plaidkey/plaidkey.go +++ b/pkg/detectors/plaidkey/plaidkey.go @@ -3,8 +3,8 @@ package plaidkey import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/planetscale/planetscale.go b/pkg/detectors/planetscale/planetscale.go index 9de06a11477b..0fa0184a4697 100644 --- a/pkg/detectors/planetscale/planetscale.go +++ b/pkg/detectors/planetscale/planetscale.go @@ -3,8 +3,8 @@ package planetscale import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/planetscaledb/planetscaledb.go b/pkg/detectors/planetscaledb/planetscaledb.go index 57b86828ad3e..648ab9f4f16f 100644 --- a/pkg/detectors/planetscaledb/planetscaledb.go +++ b/pkg/detectors/planetscaledb/planetscaledb.go @@ -3,7 +3,7 @@ package planetscaledb import ( "context" "database/sql" - "regexp" + regexp "github.com/wasilibs/go-re2" "strings" "github.com/go-sql-driver/mysql" diff --git a/pkg/detectors/planviewleankit/planviewleankit.go b/pkg/detectors/planviewleankit/planviewleankit.go index 4901a342aba0..82b52b8717d6 100644 --- a/pkg/detectors/planviewleankit/planviewleankit.go +++ b/pkg/detectors/planviewleankit/planviewleankit.go @@ -3,8 +3,8 @@ package planviewleankit import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/planyo/planyo.go b/pkg/detectors/planyo/planyo.go index 6eba2c098c32..447a0c13275d 100644 --- a/pkg/detectors/planyo/planyo.go +++ b/pkg/detectors/planyo/planyo.go @@ -3,9 +3,9 @@ package planyo import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/plivo/plivo.go b/pkg/detectors/plivo/plivo.go index d04a996a73e8..827a5129e013 100644 --- a/pkg/detectors/plivo/plivo.go +++ b/pkg/detectors/plivo/plivo.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/podio/podio.go b/pkg/detectors/podio/podio.go index d66baa8ec128..2225f47ac895 100644 --- a/pkg/detectors/podio/podio.go +++ b/pkg/detectors/podio/podio.go @@ -3,8 +3,8 @@ package podio import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pollsapi/pollsapi.go b/pkg/detectors/pollsapi/pollsapi.go index f2d28e61692a..3152f3332df3 100644 --- a/pkg/detectors/pollsapi/pollsapi.go +++ b/pkg/detectors/pollsapi/pollsapi.go @@ -2,8 +2,8 @@ package pollsapi import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/poloniex/poloniex.go b/pkg/detectors/poloniex/poloniex.go index bf4358e111ad..f79d706e38c7 100644 --- a/pkg/detectors/poloniex/poloniex.go +++ b/pkg/detectors/poloniex/poloniex.go @@ -5,9 +5,9 @@ import ( "crypto/hmac" "crypto/sha512" "encoding/hex" + regexp "github.com/wasilibs/go-re2" "net/http" "net/url" - "regexp" "strconv" "strings" "time" diff --git a/pkg/detectors/polygon/polygon.go b/pkg/detectors/polygon/polygon.go index 5f439f370ad6..670a9440cb9d 100644 --- a/pkg/detectors/polygon/polygon.go +++ b/pkg/detectors/polygon/polygon.go @@ -2,8 +2,8 @@ package polygon import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/portainer/portainer.go b/pkg/detectors/portainer/portainer.go index ec769fe1430d..6cf41f46a800 100644 --- a/pkg/detectors/portainer/portainer.go +++ b/pkg/detectors/portainer/portainer.go @@ -3,8 +3,8 @@ package portainer import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/portainertoken/portainertoken.go b/pkg/detectors/portainertoken/portainertoken.go index c2f8e740224d..74edd57e9ade 100644 --- a/pkg/detectors/portainertoken/portainertoken.go +++ b/pkg/detectors/portainertoken/portainertoken.go @@ -3,8 +3,8 @@ package portainertoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/positionstack/positionstack.go b/pkg/detectors/positionstack/positionstack.go index 628a86a651e0..4e7c794250ae 100644 --- a/pkg/detectors/positionstack/positionstack.go +++ b/pkg/detectors/positionstack/positionstack.go @@ -3,8 +3,8 @@ package positionstack import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/postageapp/postageapp.go b/pkg/detectors/postageapp/postageapp.go index f47eb2bf1849..af37f42d0404 100644 --- a/pkg/detectors/postageapp/postageapp.go +++ b/pkg/detectors/postageapp/postageapp.go @@ -2,8 +2,8 @@ package postageapp import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/postbacks/postbacks.go b/pkg/detectors/postbacks/postbacks.go index e25a53c8010c..dff601eb47db 100644 --- a/pkg/detectors/postbacks/postbacks.go +++ b/pkg/detectors/postbacks/postbacks.go @@ -2,8 +2,8 @@ package postbacks import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/postgres/postgres.go b/pkg/detectors/postgres/postgres.go index 183b37d4c3b1..235e2e4ddea3 100644 --- a/pkg/detectors/postgres/postgres.go +++ b/pkg/detectors/postgres/postgres.go @@ -6,12 +6,13 @@ import ( "errors" "fmt" "net" - "regexp" "strconv" "strings" "time" "github.com/lib/pq" + regexp "github.com/wasilibs/go-re2" + "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" ) diff --git a/pkg/detectors/posthog/posthog.go b/pkg/detectors/posthog/posthog.go index 853321d6ac92..0ca7970d09ed 100644 --- a/pkg/detectors/posthog/posthog.go +++ b/pkg/detectors/posthog/posthog.go @@ -2,8 +2,8 @@ package posthog import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" @@ -62,7 +62,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result if res.StatusCode >= 200 && res.StatusCode < 300 { s1.Verified = true } else if res.StatusCode == 401 { - //Try EU Endpoint only if other one fails. + // Try EU Endpoint only if other one fails. res, err := client.Do(reqEU) if err == nil { defer res.Body.Close() diff --git a/pkg/detectors/postman/postman.go b/pkg/detectors/postman/postman.go index 79276ff9ebfc..06845825955c 100644 --- a/pkg/detectors/postman/postman.go +++ b/pkg/detectors/postman/postman.go @@ -3,8 +3,8 @@ package postman import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/postmark/postmark.go b/pkg/detectors/postmark/postmark.go index 16b64224f39f..82a0c0c5e19d 100644 --- a/pkg/detectors/postmark/postmark.go +++ b/pkg/detectors/postmark/postmark.go @@ -2,8 +2,8 @@ package postmark import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/powrbot/powrbot.go b/pkg/detectors/powrbot/powrbot.go index f4f90ec1b078..fcc713cab067 100644 --- a/pkg/detectors/powrbot/powrbot.go +++ b/pkg/detectors/powrbot/powrbot.go @@ -3,8 +3,8 @@ package powrbot import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/prefect/prefect.go b/pkg/detectors/prefect/prefect.go index cd7eaad91d49..6e8f099b6cf8 100644 --- a/pkg/detectors/prefect/prefect.go +++ b/pkg/detectors/prefect/prefect.go @@ -3,8 +3,8 @@ package prefect import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/privacy/privacy.go b/pkg/detectors/privacy/privacy.go index 38df12247a05..0818e9544111 100644 --- a/pkg/detectors/privacy/privacy.go +++ b/pkg/detectors/privacy/privacy.go @@ -3,8 +3,8 @@ package privacy import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/privatekey/privatekey.go b/pkg/detectors/privatekey/privatekey.go index cf7b3b2139b5..dce627cdc42f 100644 --- a/pkg/detectors/privatekey/privatekey.go +++ b/pkg/detectors/privatekey/privatekey.go @@ -4,8 +4,8 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "sync" "time" diff --git a/pkg/detectors/prodpad/prodpad.go b/pkg/detectors/prodpad/prodpad.go index eaa10d1e4197..72768713bdff 100644 --- a/pkg/detectors/prodpad/prodpad.go +++ b/pkg/detectors/prodpad/prodpad.go @@ -3,8 +3,8 @@ package prodpad import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/prospectcrm/prospectcrm.go b/pkg/detectors/prospectcrm/prospectcrm.go index 46245f5e5720..fd86a61f3a33 100644 --- a/pkg/detectors/prospectcrm/prospectcrm.go +++ b/pkg/detectors/prospectcrm/prospectcrm.go @@ -3,8 +3,8 @@ package prospectcrm import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/protocolsio/protocolsio.go b/pkg/detectors/protocolsio/protocolsio.go index 60ebe28573ed..590770e96a7f 100644 --- a/pkg/detectors/protocolsio/protocolsio.go +++ b/pkg/detectors/protocolsio/protocolsio.go @@ -3,8 +3,8 @@ package protocolsio import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/proxycrawl/proxycrawl.go b/pkg/detectors/proxycrawl/proxycrawl.go index 9cd7b522cbdd..30ab7d8ac1cb 100644 --- a/pkg/detectors/proxycrawl/proxycrawl.go +++ b/pkg/detectors/proxycrawl/proxycrawl.go @@ -3,8 +3,8 @@ package proxycrawl import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go b/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go index 99a16acd04b1..a672dc1324c9 100644 --- a/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go +++ b/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go @@ -3,8 +3,8 @@ package pubnubpublishkey import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go b/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go index 2229bb5248f2..72f80ff73cac 100644 --- a/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go +++ b/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go @@ -2,8 +2,8 @@ package pubnubsubscriptionkey import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pulumi/pulumi.go b/pkg/detectors/pulumi/pulumi.go index ce098fb2b5bf..ebaa574fcd65 100644 --- a/pkg/detectors/pulumi/pulumi.go +++ b/pkg/detectors/pulumi/pulumi.go @@ -3,8 +3,8 @@ package pulumi import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/purestake/purestake.go b/pkg/detectors/purestake/purestake.go index c38db8f30b9c..5e35637a1471 100644 --- a/pkg/detectors/purestake/purestake.go +++ b/pkg/detectors/purestake/purestake.go @@ -2,8 +2,8 @@ package purestake import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pushbulletapikey/pushbulletapikey.go b/pkg/detectors/pushbulletapikey/pushbulletapikey.go index e5e30f870ce9..6aec6262fa53 100644 --- a/pkg/detectors/pushbulletapikey/pushbulletapikey.go +++ b/pkg/detectors/pushbulletapikey/pushbulletapikey.go @@ -2,8 +2,8 @@ package pushbulletapikey import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/pusherchannelkey/pusherchannelkey.go b/pkg/detectors/pusherchannelkey/pusherchannelkey.go index e98764af3a22..b97506c99669 100644 --- a/pkg/detectors/pusherchannelkey/pusherchannelkey.go +++ b/pkg/detectors/pusherchannelkey/pusherchannelkey.go @@ -6,9 +6,9 @@ import ( "crypto/md5" "crypto/sha256" "encoding/hex" + regexp "github.com/wasilibs/go-re2" "net/http" "net/url" - "regexp" "strconv" "strings" "time" diff --git a/pkg/detectors/qase/qase.go b/pkg/detectors/qase/qase.go index 23a2b3450a31..64d17dfbb69f 100644 --- a/pkg/detectors/qase/qase.go +++ b/pkg/detectors/qase/qase.go @@ -2,8 +2,8 @@ package qase import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/qualaroo/qualaroo.go b/pkg/detectors/qualaroo/qualaroo.go index e67a26246119..c92d6bb40b36 100644 --- a/pkg/detectors/qualaroo/qualaroo.go +++ b/pkg/detectors/qualaroo/qualaroo.go @@ -3,8 +3,8 @@ package qualaroo import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/qubole/qubole.go b/pkg/detectors/qubole/qubole.go index 855f091ffcc0..6725cd6de928 100644 --- a/pkg/detectors/qubole/qubole.go +++ b/pkg/detectors/qubole/qubole.go @@ -2,8 +2,8 @@ package qubole import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rabbitmq/rabbitmq.go b/pkg/detectors/rabbitmq/rabbitmq.go index 436e14e059d6..9e6bfb0322ab 100644 --- a/pkg/detectors/rabbitmq/rabbitmq.go +++ b/pkg/detectors/rabbitmq/rabbitmq.go @@ -2,8 +2,8 @@ package rabbitmq import ( "context" + regexp "github.com/wasilibs/go-re2" "net/url" - "regexp" "strings" amqp "github.com/rabbitmq/amqp091-go" diff --git a/pkg/detectors/ramp/ramp.go b/pkg/detectors/ramp/ramp.go index d41a869aa05c..2437abb23459 100644 --- a/pkg/detectors/ramp/ramp.go +++ b/pkg/detectors/ramp/ramp.go @@ -3,9 +3,9 @@ package ramp import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" "net/url" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rapidapi/rapidapi.go b/pkg/detectors/rapidapi/rapidapi.go index ff3102f318fc..19a0e8f960a0 100644 --- a/pkg/detectors/rapidapi/rapidapi.go +++ b/pkg/detectors/rapidapi/rapidapi.go @@ -2,8 +2,8 @@ package rapidapi import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/raven/raven.go b/pkg/detectors/raven/raven.go index e7845e93b5e4..3b6fadebfa2d 100644 --- a/pkg/detectors/raven/raven.go +++ b/pkg/detectors/raven/raven.go @@ -4,9 +4,9 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rawg/rawg.go b/pkg/detectors/rawg/rawg.go index 526a9431f114..5311b4c5c9a5 100644 --- a/pkg/detectors/rawg/rawg.go +++ b/pkg/detectors/rawg/rawg.go @@ -2,8 +2,8 @@ package rawg import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/razorpay/razorpay.go b/pkg/detectors/razorpay/razorpay.go index 4071ddc73c48..441609f4157f 100644 --- a/pkg/detectors/razorpay/razorpay.go +++ b/pkg/detectors/razorpay/razorpay.go @@ -3,9 +3,9 @@ package razorpay import ( "context" "encoding/json" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/reachmail/reachmail.go b/pkg/detectors/reachmail/reachmail.go index 204a11443f13..ebf2c3c07f76 100644 --- a/pkg/detectors/reachmail/reachmail.go +++ b/pkg/detectors/reachmail/reachmail.go @@ -3,8 +3,8 @@ package reachmail import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/readme/readme.go b/pkg/detectors/readme/readme.go index 80ff3c94df05..4d40c89fda29 100644 --- a/pkg/detectors/readme/readme.go +++ b/pkg/detectors/readme/readme.go @@ -2,8 +2,8 @@ package readme import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/reallysimplesystems/reallysimplesystems.go b/pkg/detectors/reallysimplesystems/reallysimplesystems.go index dc01ec28d484..ab66106ceeca 100644 --- a/pkg/detectors/reallysimplesystems/reallysimplesystems.go +++ b/pkg/detectors/reallysimplesystems/reallysimplesystems.go @@ -4,9 +4,9 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rebrandly/rebrandly.go b/pkg/detectors/rebrandly/rebrandly.go index 8c9543109a5a..61a4232e40b7 100644 --- a/pkg/detectors/rebrandly/rebrandly.go +++ b/pkg/detectors/rebrandly/rebrandly.go @@ -2,8 +2,8 @@ package rebrandly import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rechargepayments/rechargepayments.go b/pkg/detectors/rechargepayments/rechargepayments.go index 773a84f9f133..c553510961d4 100644 --- a/pkg/detectors/rechargepayments/rechargepayments.go +++ b/pkg/detectors/rechargepayments/rechargepayments.go @@ -2,8 +2,8 @@ package rechargepayments import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/redis/redis.go b/pkg/detectors/redis/redis.go index 5aa4efdd8b0e..810da6849ac8 100644 --- a/pkg/detectors/redis/redis.go +++ b/pkg/detectors/redis/redis.go @@ -3,8 +3,8 @@ package redis import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/url" - "regexp" "strings" "github.com/go-redis/redis" diff --git a/pkg/detectors/refiner/refiner.go b/pkg/detectors/refiner/refiner.go index e3da1e3c667a..6736f689aca7 100644 --- a/pkg/detectors/refiner/refiner.go +++ b/pkg/detectors/refiner/refiner.go @@ -3,8 +3,8 @@ package refiner import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rentman/rentman.go b/pkg/detectors/rentman/rentman.go index d952b74d574a..adabbc28516e 100644 --- a/pkg/detectors/rentman/rentman.go +++ b/pkg/detectors/rentman/rentman.go @@ -3,8 +3,8 @@ package rentman import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/repairshopr/repairshopr.go b/pkg/detectors/repairshopr/repairshopr.go index e5ef9695b2e6..34e3516ac03c 100644 --- a/pkg/detectors/repairshopr/repairshopr.go +++ b/pkg/detectors/repairshopr/repairshopr.go @@ -3,8 +3,8 @@ package repairshopr import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/replicate/replicate.go b/pkg/detectors/replicate/replicate.go index e8bf5c40de31..893b56867f6a 100644 --- a/pkg/detectors/replicate/replicate.go +++ b/pkg/detectors/replicate/replicate.go @@ -3,8 +3,8 @@ package replicate import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/replyio/replyio.go b/pkg/detectors/replyio/replyio.go index 241405348799..9583529fe0cc 100644 --- a/pkg/detectors/replyio/replyio.go +++ b/pkg/detectors/replyio/replyio.go @@ -3,8 +3,8 @@ package replyio import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/requestfinance/requestfinance.go b/pkg/detectors/requestfinance/requestfinance.go index 35d8710d7924..462112c2931f 100644 --- a/pkg/detectors/requestfinance/requestfinance.go +++ b/pkg/detectors/requestfinance/requestfinance.go @@ -3,8 +3,8 @@ package requestfinance import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/restpack/restpack.go b/pkg/detectors/restpack/restpack.go index ddc09c3f6610..e53bb862c4ee 100644 --- a/pkg/detectors/restpack/restpack.go +++ b/pkg/detectors/restpack/restpack.go @@ -3,8 +3,8 @@ package restpack import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go b/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go index d39cbc068c6a..00683d58486a 100644 --- a/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go +++ b/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go @@ -2,8 +2,8 @@ package restpackhtmltopdfapi import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go b/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go index ed052c5cdb30..63d0eaa5582e 100644 --- a/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go +++ b/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go @@ -2,8 +2,8 @@ package restpackscreenshotapi import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rev/rev.go b/pkg/detectors/rev/rev.go index af8de9321d4e..708c4ebc24e0 100644 --- a/pkg/detectors/rev/rev.go +++ b/pkg/detectors/rev/rev.go @@ -3,8 +3,8 @@ package rev import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/revampcrm/revampcrm.go b/pkg/detectors/revampcrm/revampcrm.go index 8c8d3ae0578a..fc5ee627d0ce 100644 --- a/pkg/detectors/revampcrm/revampcrm.go +++ b/pkg/detectors/revampcrm/revampcrm.go @@ -2,8 +2,8 @@ package revampcrm import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ringcentral/ringcentral.go b/pkg/detectors/ringcentral/ringcentral.go index a57daf212439..97522725b3b4 100644 --- a/pkg/detectors/ringcentral/ringcentral.go +++ b/pkg/detectors/ringcentral/ringcentral.go @@ -3,8 +3,8 @@ package ringcentral import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ritekit/ritekit.go b/pkg/detectors/ritekit/ritekit.go index 7aaab9cc1188..0bd17af695cf 100644 --- a/pkg/detectors/ritekit/ritekit.go +++ b/pkg/detectors/ritekit/ritekit.go @@ -3,8 +3,8 @@ package ritekit import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/roaring/roaring.go b/pkg/detectors/roaring/roaring.go index dee74da36152..ca25056f3ce7 100644 --- a/pkg/detectors/roaring/roaring.go +++ b/pkg/detectors/roaring/roaring.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rocketreach/rocketreach.go b/pkg/detectors/rocketreach/rocketreach.go index c444111598d5..19cff56c5a20 100644 --- a/pkg/detectors/rocketreach/rocketreach.go +++ b/pkg/detectors/rocketreach/rocketreach.go @@ -2,8 +2,8 @@ package rocketreach import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rockset/rockset.go b/pkg/detectors/rockset/rockset.go index f79d6e0051d9..459b19a0c3d6 100644 --- a/pkg/detectors/rockset/rockset.go +++ b/pkg/detectors/rockset/rockset.go @@ -3,8 +3,8 @@ package rockset import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/roninapp/roninapp.go b/pkg/detectors/roninapp/roninapp.go index 8e22e80deb73..44c30e05bb5b 100644 --- a/pkg/detectors/roninapp/roninapp.go +++ b/pkg/detectors/roninapp/roninapp.go @@ -3,7 +3,7 @@ package roninapp import ( "context" "fmt" - "regexp" + regexp "github.com/wasilibs/go-re2" "strings" b64 "encoding/base64" diff --git a/pkg/detectors/route4me/route4me.go b/pkg/detectors/route4me/route4me.go index 0428e45046a6..3668f7d488d0 100644 --- a/pkg/detectors/route4me/route4me.go +++ b/pkg/detectors/route4me/route4me.go @@ -2,8 +2,8 @@ package route4me import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rownd/rownd.go b/pkg/detectors/rownd/rownd.go index 1d2d86434afb..ec71e141dbee 100644 --- a/pkg/detectors/rownd/rownd.go +++ b/pkg/detectors/rownd/rownd.go @@ -2,8 +2,8 @@ package rownd import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/rubygems/rubygems.go b/pkg/detectors/rubygems/rubygems.go index 0f3e9d0f95e1..56f8702a0420 100644 --- a/pkg/detectors/rubygems/rubygems.go +++ b/pkg/detectors/rubygems/rubygems.go @@ -2,8 +2,8 @@ package rubygems import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/runrunit/runrunit.go b/pkg/detectors/runrunit/runrunit.go index 5ac22e2df49a..5587d2fd7a7c 100644 --- a/pkg/detectors/runrunit/runrunit.go +++ b/pkg/detectors/runrunit/runrunit.go @@ -2,8 +2,8 @@ package runrunit import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/salesblink/salesblink.go b/pkg/detectors/salesblink/salesblink.go index d2b4e880bb02..86786c7f994a 100644 --- a/pkg/detectors/salesblink/salesblink.go +++ b/pkg/detectors/salesblink/salesblink.go @@ -2,8 +2,8 @@ package salesblink import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/salescookie/salescookie.go b/pkg/detectors/salescookie/salescookie.go index 43073adef6a8..aadf992ecd40 100644 --- a/pkg/detectors/salescookie/salescookie.go +++ b/pkg/detectors/salescookie/salescookie.go @@ -2,8 +2,8 @@ package salescookie import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/salesflare/salesflare.go b/pkg/detectors/salesflare/salesflare.go index faa1c1752d46..6c3f9bbd2983 100644 --- a/pkg/detectors/salesflare/salesflare.go +++ b/pkg/detectors/salesflare/salesflare.go @@ -3,8 +3,8 @@ package salesflare import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/salesforce/salesforce.go b/pkg/detectors/salesforce/salesforce.go index f886e1334f18..de2bb365bb94 100644 --- a/pkg/detectors/salesforce/salesforce.go +++ b/pkg/detectors/salesforce/salesforce.go @@ -3,8 +3,8 @@ package salesforce import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/salesmate/salesmate.go b/pkg/detectors/salesmate/salesmate.go index f68336079c95..1c5a17e8aa71 100644 --- a/pkg/detectors/salesmate/salesmate.go +++ b/pkg/detectors/salesmate/salesmate.go @@ -3,8 +3,8 @@ package salesmate import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go b/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go index 88c85b575b3b..c9a7ae4a73e8 100644 --- a/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go +++ b/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/satismeterwritekey/satismeterwritekey.go b/pkg/detectors/satismeterwritekey/satismeterwritekey.go index 143f5645d2a4..0435ee7e61b9 100644 --- a/pkg/detectors/satismeterwritekey/satismeterwritekey.go +++ b/pkg/detectors/satismeterwritekey/satismeterwritekey.go @@ -2,8 +2,8 @@ package satismeterwritekey import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/saucelabs/saucelabs.go b/pkg/detectors/saucelabs/saucelabs.go index 24ad11649969..40114bfcf951 100644 --- a/pkg/detectors/saucelabs/saucelabs.go +++ b/pkg/detectors/saucelabs/saucelabs.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/scalewaykey/scalewaykey.go b/pkg/detectors/scalewaykey/scalewaykey.go index c82b4a0d0ace..6946c690c6ca 100644 --- a/pkg/detectors/scalewaykey/scalewaykey.go +++ b/pkg/detectors/scalewaykey/scalewaykey.go @@ -2,8 +2,8 @@ package scalewaykey import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/scalr/scalr.go b/pkg/detectors/scalr/scalr.go index 77b750a3f374..76e53cd9bce6 100644 --- a/pkg/detectors/scalr/scalr.go +++ b/pkg/detectors/scalr/scalr.go @@ -3,8 +3,8 @@ package scalr import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/scrapeowl/scrapeowl.go b/pkg/detectors/scrapeowl/scrapeowl.go index 70707e81c8d2..ad9d0dfe2ad9 100644 --- a/pkg/detectors/scrapeowl/scrapeowl.go +++ b/pkg/detectors/scrapeowl/scrapeowl.go @@ -2,8 +2,8 @@ package scrapeowl import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/scraperapi/scraperapi.go b/pkg/detectors/scraperapi/scraperapi.go index d6283a64eb7d..75add0eaec1b 100644 --- a/pkg/detectors/scraperapi/scraperapi.go +++ b/pkg/detectors/scraperapi/scraperapi.go @@ -3,8 +3,8 @@ package scraperapi import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/scraperbox/scraperbox.go b/pkg/detectors/scraperbox/scraperbox.go index 89fd4039776a..0f3b9de812a9 100644 --- a/pkg/detectors/scraperbox/scraperbox.go +++ b/pkg/detectors/scraperbox/scraperbox.go @@ -3,8 +3,8 @@ package scraperbox import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/scrapestack/scrapestack.go b/pkg/detectors/scrapestack/scrapestack.go index 119d915ed100..2407d880633d 100644 --- a/pkg/detectors/scrapestack/scrapestack.go +++ b/pkg/detectors/scrapestack/scrapestack.go @@ -3,9 +3,9 @@ package scrapestack import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/scrapfly/scrapfly.go b/pkg/detectors/scrapfly/scrapfly.go index fb6db5edc1d1..cd0059b0fff4 100644 --- a/pkg/detectors/scrapfly/scrapfly.go +++ b/pkg/detectors/scrapfly/scrapfly.go @@ -3,8 +3,8 @@ package scrapfly import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/scrapingant/scrapingant.go b/pkg/detectors/scrapingant/scrapingant.go index ab5c4b6c10be..f838affe5dec 100644 --- a/pkg/detectors/scrapingant/scrapingant.go +++ b/pkg/detectors/scrapingant/scrapingant.go @@ -2,8 +2,8 @@ package scrapingant import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/scrapingbee/scrapingbee.go b/pkg/detectors/scrapingbee/scrapingbee.go index 628c1d691291..1aa17c65a0c2 100644 --- a/pkg/detectors/scrapingbee/scrapingbee.go +++ b/pkg/detectors/scrapingbee/scrapingbee.go @@ -2,8 +2,8 @@ package scrapingbee import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/screenshotapi/screenshotapi.go b/pkg/detectors/screenshotapi/screenshotapi.go index 6f2f91b58276..b330ea55ef5e 100644 --- a/pkg/detectors/screenshotapi/screenshotapi.go +++ b/pkg/detectors/screenshotapi/screenshotapi.go @@ -3,8 +3,8 @@ package screenshotapi import ( "context" "encoding/json" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/screenshotlayer/screenshotlayer.go b/pkg/detectors/screenshotlayer/screenshotlayer.go index e06f7291fd28..e04d645d60f6 100644 --- a/pkg/detectors/screenshotlayer/screenshotlayer.go +++ b/pkg/detectors/screenshotlayer/screenshotlayer.go @@ -3,9 +3,9 @@ package screenshotlayer import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/scrutinizerci/scrutinizerci.go b/pkg/detectors/scrutinizerci/scrutinizerci.go index 9399992cffdf..7f832df3cc21 100644 --- a/pkg/detectors/scrutinizerci/scrutinizerci.go +++ b/pkg/detectors/scrutinizerci/scrutinizerci.go @@ -2,8 +2,8 @@ package scrutinizerci import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/securitytrails/securitytrails.go b/pkg/detectors/securitytrails/securitytrails.go index c0b79e0bf411..401a14391f7d 100644 --- a/pkg/detectors/securitytrails/securitytrails.go +++ b/pkg/detectors/securitytrails/securitytrails.go @@ -2,8 +2,8 @@ package securitytrails import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/segmentapikey/segmentapikey.go b/pkg/detectors/segmentapikey/segmentapikey.go index d55a0d897ccb..3f0ff5d3dfad 100644 --- a/pkg/detectors/segmentapikey/segmentapikey.go +++ b/pkg/detectors/segmentapikey/segmentapikey.go @@ -3,8 +3,8 @@ package segmentapikey import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/selectpdf/selectpdf.go b/pkg/detectors/selectpdf/selectpdf.go index 2a80d4c3bcfe..a4b8cc80752b 100644 --- a/pkg/detectors/selectpdf/selectpdf.go +++ b/pkg/detectors/selectpdf/selectpdf.go @@ -3,8 +3,8 @@ package selectpdf import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/semaphore/semaphore.go b/pkg/detectors/semaphore/semaphore.go index 073abb867d79..1dbe1d68a9d0 100644 --- a/pkg/detectors/semaphore/semaphore.go +++ b/pkg/detectors/semaphore/semaphore.go @@ -3,9 +3,9 @@ package semaphore import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sendbird/sendbird.go b/pkg/detectors/sendbird/sendbird.go index ee5c253ac3d0..dce9dd082c74 100644 --- a/pkg/detectors/sendbird/sendbird.go +++ b/pkg/detectors/sendbird/sendbird.go @@ -4,8 +4,8 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go b/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go index aa927cadbeef..74f846f20a8a 100644 --- a/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go +++ b/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go @@ -3,8 +3,8 @@ package sendbirdorganizationapi import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sendgrid/sendgrid.go b/pkg/detectors/sendgrid/sendgrid.go index eb6fbc5d1338..661e9053f9fb 100644 --- a/pkg/detectors/sendgrid/sendgrid.go +++ b/pkg/detectors/sendgrid/sendgrid.go @@ -3,8 +3,8 @@ package sendgrid import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/sendinbluev2/sendinbluev2.go b/pkg/detectors/sendinbluev2/sendinbluev2.go index 69473743893f..b7c6aa41d5d8 100644 --- a/pkg/detectors/sendinbluev2/sendinbluev2.go +++ b/pkg/detectors/sendinbluev2/sendinbluev2.go @@ -2,8 +2,8 @@ package sendinbluev2 import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sentrytoken/sentrytoken.go b/pkg/detectors/sentrytoken/sentrytoken.go index 97ac3a15396f..0e32137af133 100644 --- a/pkg/detectors/sentrytoken/sentrytoken.go +++ b/pkg/detectors/sentrytoken/sentrytoken.go @@ -5,9 +5,9 @@ import ( "encoding/json" "errors" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/serphouse/serphouse.go b/pkg/detectors/serphouse/serphouse.go index 09a330a8bc34..b3fb4ed3751c 100644 --- a/pkg/detectors/serphouse/serphouse.go +++ b/pkg/detectors/serphouse/serphouse.go @@ -3,8 +3,8 @@ package serphouse import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/serpstack/serpstack.go b/pkg/detectors/serpstack/serpstack.go index 7b643b1aa9d8..b1a048c4daab 100644 --- a/pkg/detectors/serpstack/serpstack.go +++ b/pkg/detectors/serpstack/serpstack.go @@ -3,9 +3,9 @@ package serpstack import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/sheety/sheety.go b/pkg/detectors/sheety/sheety.go index c2c12e0e1bee..bd32c452159a 100644 --- a/pkg/detectors/sheety/sheety.go +++ b/pkg/detectors/sheety/sheety.go @@ -3,8 +3,8 @@ package sheety import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sherpadesk/sherpadesk.go b/pkg/detectors/sherpadesk/sherpadesk.go index fa9039a4fd7a..b4d5215cc06e 100644 --- a/pkg/detectors/sherpadesk/sherpadesk.go +++ b/pkg/detectors/sherpadesk/sherpadesk.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/shipday/shipday.go b/pkg/detectors/shipday/shipday.go index 278f87b1078b..cbdf31374dc9 100644 --- a/pkg/detectors/shipday/shipday.go +++ b/pkg/detectors/shipday/shipday.go @@ -3,8 +3,8 @@ package shipday import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/shodankey/shodankey.go b/pkg/detectors/shodankey/shodankey.go index c6600151cc9d..eefb364c7bbf 100644 --- a/pkg/detectors/shodankey/shodankey.go +++ b/pkg/detectors/shodankey/shodankey.go @@ -3,9 +3,9 @@ package shodankey import ( "context" "encoding/json" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/shopify/shopify.go b/pkg/detectors/shopify/shopify.go index bca4636ce92f..a86151e15a2b 100644 --- a/pkg/detectors/shopify/shopify.go +++ b/pkg/detectors/shopify/shopify.go @@ -3,8 +3,8 @@ package shopify import ( "context" "encoding/json" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/shortcut/shortcut.go b/pkg/detectors/shortcut/shortcut.go index 4ecd5c18444c..33ea6e3f9253 100644 --- a/pkg/detectors/shortcut/shortcut.go +++ b/pkg/detectors/shortcut/shortcut.go @@ -2,8 +2,8 @@ package shortcut import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/shotstack/shotstack.go b/pkg/detectors/shotstack/shotstack.go index 2cd96dd6ea93..daf5420ecbc8 100644 --- a/pkg/detectors/shotstack/shotstack.go +++ b/pkg/detectors/shotstack/shotstack.go @@ -2,8 +2,8 @@ package shotstack import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/shutterstock/shutterstock.go b/pkg/detectors/shutterstock/shutterstock.go index d657c209e852..e128b8d74840 100644 --- a/pkg/detectors/shutterstock/shutterstock.go +++ b/pkg/detectors/shutterstock/shutterstock.go @@ -2,8 +2,8 @@ package shutterstock import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/shutterstockoauth/shutterstockoauth.go b/pkg/detectors/shutterstockoauth/shutterstockoauth.go index 53e0a5fc429f..88721a82d131 100644 --- a/pkg/detectors/shutterstockoauth/shutterstockoauth.go +++ b/pkg/detectors/shutterstockoauth/shutterstockoauth.go @@ -3,8 +3,8 @@ package shutterstockoauth import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/signable/signable.go b/pkg/detectors/signable/signable.go index cb583c6a4226..42f582602f7a 100644 --- a/pkg/detectors/signable/signable.go +++ b/pkg/detectors/signable/signable.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/signalwire/signalwire.go b/pkg/detectors/signalwire/signalwire.go index 95e6c756c5f6..4b4d571c9e8e 100644 --- a/pkg/detectors/signalwire/signalwire.go +++ b/pkg/detectors/signalwire/signalwire.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/signaturit/signaturit.go b/pkg/detectors/signaturit/signaturit.go index 626139a09e26..fe47d46f432a 100644 --- a/pkg/detectors/signaturit/signaturit.go +++ b/pkg/detectors/signaturit/signaturit.go @@ -3,8 +3,8 @@ package signaturit import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/signupgenius/signupgenius.go b/pkg/detectors/signupgenius/signupgenius.go index ae9b40428d10..cfd8ee21b5c4 100644 --- a/pkg/detectors/signupgenius/signupgenius.go +++ b/pkg/detectors/signupgenius/signupgenius.go @@ -2,8 +2,8 @@ package signupgenius import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sigopt/sigopt.go b/pkg/detectors/sigopt/sigopt.go index 5fa5cf807ce2..0bcb2a2577be 100644 --- a/pkg/detectors/sigopt/sigopt.go +++ b/pkg/detectors/sigopt/sigopt.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/simfin/simfin.go b/pkg/detectors/simfin/simfin.go index 139b6a5953fe..9a019144449f 100644 --- a/pkg/detectors/simfin/simfin.go +++ b/pkg/detectors/simfin/simfin.go @@ -3,9 +3,9 @@ package simfin import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/simplesat/simplesat.go b/pkg/detectors/simplesat/simplesat.go index ec8aa9a259ed..c032191c17b5 100644 --- a/pkg/detectors/simplesat/simplesat.go +++ b/pkg/detectors/simplesat/simplesat.go @@ -2,8 +2,8 @@ package simplesat import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/simplynoted/simplynoted.go b/pkg/detectors/simplynoted/simplynoted.go index 8ad3b0bca170..6bfef10f9dbb 100644 --- a/pkg/detectors/simplynoted/simplynoted.go +++ b/pkg/detectors/simplynoted/simplynoted.go @@ -3,8 +3,8 @@ package simplynoted import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/simvoly/simvoly.go b/pkg/detectors/simvoly/simvoly.go index 7916444480ef..b9ab8d04c821 100644 --- a/pkg/detectors/simvoly/simvoly.go +++ b/pkg/detectors/simvoly/simvoly.go @@ -3,8 +3,8 @@ package simvoly import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sinchmessage/sinchmessage.go b/pkg/detectors/sinchmessage/sinchmessage.go index 82571f21ad77..4e8f154e140b 100644 --- a/pkg/detectors/sinchmessage/sinchmessage.go +++ b/pkg/detectors/sinchmessage/sinchmessage.go @@ -3,8 +3,8 @@ package sinchmessage import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sirv/sirv.go b/pkg/detectors/sirv/sirv.go index f0a8f781211a..0615c0bf1e0b 100644 --- a/pkg/detectors/sirv/sirv.go +++ b/pkg/detectors/sirv/sirv.go @@ -3,8 +3,8 @@ package sirv import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/siteleaf/siteleaf.go b/pkg/detectors/siteleaf/siteleaf.go index 6c8cea8dfd16..57a0ee379a65 100644 --- a/pkg/detectors/siteleaf/siteleaf.go +++ b/pkg/detectors/siteleaf/siteleaf.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/skrappio/skrappio.go b/pkg/detectors/skrappio/skrappio.go index 0634170dde9f..b3d2d172d1c7 100644 --- a/pkg/detectors/skrappio/skrappio.go +++ b/pkg/detectors/skrappio/skrappio.go @@ -2,8 +2,8 @@ package skrappio import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/skybiometry/skybiometry.go b/pkg/detectors/skybiometry/skybiometry.go index ce1d7a11d576..18ae10862806 100644 --- a/pkg/detectors/skybiometry/skybiometry.go +++ b/pkg/detectors/skybiometry/skybiometry.go @@ -2,9 +2,9 @@ package skybiometry import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" "net/url" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/slack/slack.go b/pkg/detectors/slack/slack.go index 064c1309b32c..63e44fba38cc 100644 --- a/pkg/detectors/slack/slack.go +++ b/pkg/detectors/slack/slack.go @@ -4,8 +4,8 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" diff --git a/pkg/detectors/slackwebhook/slackwebhook.go b/pkg/detectors/slackwebhook/slackwebhook.go index c895c46d959d..ba0892292462 100644 --- a/pkg/detectors/slackwebhook/slackwebhook.go +++ b/pkg/detectors/slackwebhook/slackwebhook.go @@ -4,9 +4,9 @@ import ( "bytes" "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/smartsheets/smartsheets.go b/pkg/detectors/smartsheets/smartsheets.go index efbc5c25681d..e3d6065704e5 100644 --- a/pkg/detectors/smartsheets/smartsheets.go +++ b/pkg/detectors/smartsheets/smartsheets.go @@ -3,8 +3,8 @@ package smartsheets import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/smartystreets/smartystreets.go b/pkg/detectors/smartystreets/smartystreets.go index ad70f3d697f4..9fced972e43e 100644 --- a/pkg/detectors/smartystreets/smartystreets.go +++ b/pkg/detectors/smartystreets/smartystreets.go @@ -3,8 +3,8 @@ package smartystreets import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/smooch/smooch.go b/pkg/detectors/smooch/smooch.go index b967f2e5cc2c..9b0bdef2a452 100644 --- a/pkg/detectors/smooch/smooch.go +++ b/pkg/detectors/smooch/smooch.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/snipcart/snipcart.go b/pkg/detectors/snipcart/snipcart.go index 748116fb5aa4..f47f030d3060 100644 --- a/pkg/detectors/snipcart/snipcart.go +++ b/pkg/detectors/snipcart/snipcart.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/snowflake/snowflake.go b/pkg/detectors/snowflake/snowflake.go index 7ec16ef32499..27a8e9ad91a0 100644 --- a/pkg/detectors/snowflake/snowflake.go +++ b/pkg/detectors/snowflake/snowflake.go @@ -4,7 +4,7 @@ import ( "context" "database/sql" "fmt" - "regexp" + regexp "github.com/wasilibs/go-re2" "strings" "time" "unicode" diff --git a/pkg/detectors/snykkey/snykkey.go b/pkg/detectors/snykkey/snykkey.go index 3a7b49830b48..8e1f09ef1a41 100644 --- a/pkg/detectors/snykkey/snykkey.go +++ b/pkg/detectors/snykkey/snykkey.go @@ -3,8 +3,8 @@ package snykkey import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sonarcloud/sonarcloud.go b/pkg/detectors/sonarcloud/sonarcloud.go index 1b45f18a7eb3..8f9ec5671c9d 100644 --- a/pkg/detectors/sonarcloud/sonarcloud.go +++ b/pkg/detectors/sonarcloud/sonarcloud.go @@ -2,9 +2,9 @@ package sonarcloud import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sourcegraph/sourcegraph.go b/pkg/detectors/sourcegraph/sourcegraph.go index 46d3767e93a3..2018e7b89021 100644 --- a/pkg/detectors/sourcegraph/sourcegraph.go +++ b/pkg/detectors/sourcegraph/sourcegraph.go @@ -3,8 +3,8 @@ package sourcegraph import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sourcegraphcody/sourcegraphcody.go b/pkg/detectors/sourcegraphcody/sourcegraphcody.go index 08052cc0f897..bb00e01a0d9d 100644 --- a/pkg/detectors/sourcegraphcody/sourcegraphcody.go +++ b/pkg/detectors/sourcegraphcody/sourcegraphcody.go @@ -3,8 +3,8 @@ package sourcegraphcody import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sparkpost/sparkpost.go b/pkg/detectors/sparkpost/sparkpost.go index ded611d2077c..d02e58bf8a32 100644 --- a/pkg/detectors/sparkpost/sparkpost.go +++ b/pkg/detectors/sparkpost/sparkpost.go @@ -2,8 +2,8 @@ package sparkpost import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/speechtextai/speechtextai.go b/pkg/detectors/speechtextai/speechtextai.go index 2703fb0c8e99..53a2ce8e67e8 100644 --- a/pkg/detectors/speechtextai/speechtextai.go +++ b/pkg/detectors/speechtextai/speechtextai.go @@ -3,8 +3,8 @@ package speechtextai import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go b/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go index d9b2f56b3a5a..5bb39ed199b0 100644 --- a/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go +++ b/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go @@ -2,8 +2,8 @@ package splunkobservabilitytoken import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/spoonacular/spoonacular.go b/pkg/detectors/spoonacular/spoonacular.go index 0dcf9caa3df5..a7f5ae9cd1b8 100644 --- a/pkg/detectors/spoonacular/spoonacular.go +++ b/pkg/detectors/spoonacular/spoonacular.go @@ -3,8 +3,8 @@ package spoonacular import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sportsmonk/sportsmonk.go b/pkg/detectors/sportsmonk/sportsmonk.go index 2ea8030a5122..c22b1e1e843b 100644 --- a/pkg/detectors/sportsmonk/sportsmonk.go +++ b/pkg/detectors/sportsmonk/sportsmonk.go @@ -2,8 +2,8 @@ package sportsmonk import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/spotifykey/spotifykey.go b/pkg/detectors/spotifykey/spotifykey.go index e123c3adb40e..c219de884d95 100644 --- a/pkg/detectors/spotifykey/spotifykey.go +++ b/pkg/detectors/spotifykey/spotifykey.go @@ -4,7 +4,7 @@ import ( "context" "golang.org/x/oauth2" - "regexp" + regexp "github.com/wasilibs/go-re2" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sqlserver/sqlserver.go b/pkg/detectors/sqlserver/sqlserver.go index 02c2ebaa7168..ee8571ff87e5 100644 --- a/pkg/detectors/sqlserver/sqlserver.go +++ b/pkg/detectors/sqlserver/sqlserver.go @@ -3,7 +3,7 @@ package sqlserver import ( "context" "database/sql" - "regexp" + regexp "github.com/wasilibs/go-re2" mssql "github.com/denisenkom/go-mssqldb" "github.com/denisenkom/go-mssqldb/msdsn" diff --git a/pkg/detectors/square/square.go b/pkg/detectors/square/square.go index 481ddb9ff5f1..e27e5f372cd2 100644 --- a/pkg/detectors/square/square.go +++ b/pkg/detectors/square/square.go @@ -3,8 +3,8 @@ package square import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" @@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", res)) req.Header.Add("Content-Type", "application/json") // unclear if this version needs to be set or matters, seems to work without, but docs want it - //req.Header.Add("Square-Version", "2020-08-12") + // req.Header.Add("Square-Version", "2020-08-12") res, err := client.Do(req) if err == nil { res.Body.Close() // The request body is unused. diff --git a/pkg/detectors/squareapp/squareapp.go b/pkg/detectors/squareapp/squareapp.go index 6b388fbc2906..dfe6a4e10154 100644 --- a/pkg/detectors/squareapp/squareapp.go +++ b/pkg/detectors/squareapp/squareapp.go @@ -5,8 +5,8 @@ import ( "context" "encoding/json" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/squarespace/squarespace.go b/pkg/detectors/squarespace/squarespace.go index 174e66a44e4a..0a87bb872926 100644 --- a/pkg/detectors/squarespace/squarespace.go +++ b/pkg/detectors/squarespace/squarespace.go @@ -3,8 +3,8 @@ package squarespace import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/squareup/squareup.go b/pkg/detectors/squareup/squareup.go index 62497ed3f30a..731328b4f671 100644 --- a/pkg/detectors/squareup/squareup.go +++ b/pkg/detectors/squareup/squareup.go @@ -3,8 +3,8 @@ package squareup import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sslmate/sslmate.go b/pkg/detectors/sslmate/sslmate.go index 276e1ce34674..0fcc26dd574d 100644 --- a/pkg/detectors/sslmate/sslmate.go +++ b/pkg/detectors/sslmate/sslmate.go @@ -3,8 +3,8 @@ package sslmate import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/statuscake/statuscake.go b/pkg/detectors/statuscake/statuscake.go index 92640ca58e3a..a12d4b815b5d 100644 --- a/pkg/detectors/statuscake/statuscake.go +++ b/pkg/detectors/statuscake/statuscake.go @@ -3,8 +3,8 @@ package statuscake import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/statuspage/statuspage.go b/pkg/detectors/statuspage/statuspage.go index acc01afb87d6..12cfe603dd8b 100644 --- a/pkg/detectors/statuspage/statuspage.go +++ b/pkg/detectors/statuspage/statuspage.go @@ -2,8 +2,8 @@ package statuspage import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/statuspal/statuspal.go b/pkg/detectors/statuspal/statuspal.go index 36d9b737ddf9..e74610422614 100644 --- a/pkg/detectors/statuspal/statuspal.go +++ b/pkg/detectors/statuspal/statuspal.go @@ -2,8 +2,8 @@ package statuspal import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/stitchdata/stitchdata.go b/pkg/detectors/stitchdata/stitchdata.go index c66ef7a08a9a..a51a591b0cf7 100644 --- a/pkg/detectors/stitchdata/stitchdata.go +++ b/pkg/detectors/stitchdata/stitchdata.go @@ -3,8 +3,8 @@ package stitchdata import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/stockdata/stockdata.go b/pkg/detectors/stockdata/stockdata.go index d105d35286c0..19b40765478d 100644 --- a/pkg/detectors/stockdata/stockdata.go +++ b/pkg/detectors/stockdata/stockdata.go @@ -2,8 +2,8 @@ package stockdata import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/storecove/storecove.go b/pkg/detectors/storecove/storecove.go index 0ea29d40f420..327d82d0895b 100644 --- a/pkg/detectors/storecove/storecove.go +++ b/pkg/detectors/storecove/storecove.go @@ -3,8 +3,8 @@ package storecove import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/stormboard/stormboard.go b/pkg/detectors/stormboard/stormboard.go index 96996dfe2d64..0cc9933c7b89 100644 --- a/pkg/detectors/stormboard/stormboard.go +++ b/pkg/detectors/stormboard/stormboard.go @@ -2,8 +2,8 @@ package stormboard import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/stormglass/stormglass.go b/pkg/detectors/stormglass/stormglass.go index cc21564fbdbe..89669d5565d7 100644 --- a/pkg/detectors/stormglass/stormglass.go +++ b/pkg/detectors/stormglass/stormglass.go @@ -2,8 +2,8 @@ package stormglass import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/storyblok/storyblok.go b/pkg/detectors/storyblok/storyblok.go index 938cf24e891b..ceb52418220f 100644 --- a/pkg/detectors/storyblok/storyblok.go +++ b/pkg/detectors/storyblok/storyblok.go @@ -2,8 +2,8 @@ package storyblok import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/storychief/storychief.go b/pkg/detectors/storychief/storychief.go index dbc8b2dd88b2..776058633011 100644 --- a/pkg/detectors/storychief/storychief.go +++ b/pkg/detectors/storychief/storychief.go @@ -3,8 +3,8 @@ package storychief import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/strava/strava.go b/pkg/detectors/strava/strava.go index 50e934015cfb..701a02232c34 100644 --- a/pkg/detectors/strava/strava.go +++ b/pkg/detectors/strava/strava.go @@ -2,8 +2,8 @@ package strava import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/streak/streak.go b/pkg/detectors/streak/streak.go index d473e405db68..99364b97bb20 100644 --- a/pkg/detectors/streak/streak.go +++ b/pkg/detectors/streak/streak.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/stripe/stripe.go b/pkg/detectors/stripe/stripe.go index 498904f85b75..188180454bc7 100644 --- a/pkg/detectors/stripe/stripe.go +++ b/pkg/detectors/stripe/stripe.go @@ -3,8 +3,8 @@ package stripe import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" @@ -17,7 +17,7 @@ type Scanner struct{} var _ detectors.Detector = (*Scanner)(nil) var ( - //doesn't include test keys with "sk_test" + // doesn't include test keys with "sk_test" secretKey = regexp.MustCompile(`[rs]k_live_[a-zA-Z0-9]{20,247}`) ) diff --git a/pkg/detectors/stripo/stripo.go b/pkg/detectors/stripo/stripo.go index 165f9993be17..41bb77f342ec 100644 --- a/pkg/detectors/stripo/stripo.go +++ b/pkg/detectors/stripo/stripo.go @@ -3,8 +3,8 @@ package stripo import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/stytch/stytch.go b/pkg/detectors/stytch/stytch.go index 0d907609a5e9..c17fd9a7d7d3 100644 --- a/pkg/detectors/stytch/stytch.go +++ b/pkg/detectors/stytch/stytch.go @@ -2,8 +2,8 @@ package stytch import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sugester/sugester.go b/pkg/detectors/sugester/sugester.go index 80681dd6c6e1..6e2151dd0ac7 100644 --- a/pkg/detectors/sugester/sugester.go +++ b/pkg/detectors/sugester/sugester.go @@ -2,8 +2,8 @@ package sugester import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/sumologickey/sumologickey.go b/pkg/detectors/sumologickey/sumologickey.go index 8f7312bc922a..b8f5f1b6e443 100644 --- a/pkg/detectors/sumologickey/sumologickey.go +++ b/pkg/detectors/sumologickey/sumologickey.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/supabasetoken/supabasetoken.go b/pkg/detectors/supabasetoken/supabasetoken.go index 7f5b3cb94458..07018a869c42 100644 --- a/pkg/detectors/supabasetoken/supabasetoken.go +++ b/pkg/detectors/supabasetoken/supabasetoken.go @@ -3,8 +3,8 @@ package supabasetoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/supernotesapi/supernotesapi.go b/pkg/detectors/supernotesapi/supernotesapi.go index 98b2c5eb04ca..9a520fc3bdab 100644 --- a/pkg/detectors/supernotesapi/supernotesapi.go +++ b/pkg/detectors/supernotesapi/supernotesapi.go @@ -2,8 +2,8 @@ package supernotesapi import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/surveyanyplace/surveyanyplace.go b/pkg/detectors/surveyanyplace/surveyanyplace.go index dd143ecb6faf..f6773935bfc1 100644 --- a/pkg/detectors/surveyanyplace/surveyanyplace.go +++ b/pkg/detectors/surveyanyplace/surveyanyplace.go @@ -3,8 +3,8 @@ package surveyanyplace import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/surveybot/surveybot.go b/pkg/detectors/surveybot/surveybot.go index 8ecdf7c693ae..25bf4fa6d9a1 100644 --- a/pkg/detectors/surveybot/surveybot.go +++ b/pkg/detectors/surveybot/surveybot.go @@ -3,8 +3,8 @@ package surveybot import ( "context" "encoding/json" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/surveysparrow/surveysparrow.go b/pkg/detectors/surveysparrow/surveysparrow.go index cf7e998df597..d61256c106ba 100644 --- a/pkg/detectors/surveysparrow/surveysparrow.go +++ b/pkg/detectors/surveysparrow/surveysparrow.go @@ -3,8 +3,8 @@ package surveysparrow import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/survicate/survicate.go b/pkg/detectors/survicate/survicate.go index c1848ca2f5fd..9c234047594d 100644 --- a/pkg/detectors/survicate/survicate.go +++ b/pkg/detectors/survicate/survicate.go @@ -3,8 +3,8 @@ package survicate import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/swell/swell.go b/pkg/detectors/swell/swell.go index 9830266dcc39..ba1384ecfe9c 100644 --- a/pkg/detectors/swell/swell.go +++ b/pkg/detectors/swell/swell.go @@ -2,8 +2,8 @@ package swell import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/swiftype/swiftype.go b/pkg/detectors/swiftype/swiftype.go index d6066fb74c3d..1ec300fec497 100644 --- a/pkg/detectors/swiftype/swiftype.go +++ b/pkg/detectors/swiftype/swiftype.go @@ -2,8 +2,8 @@ package swiftype import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tailscale/tailscale.go b/pkg/detectors/tailscale/tailscale.go index ab585f9cab1a..20a8c12a258c 100644 --- a/pkg/detectors/tailscale/tailscale.go +++ b/pkg/detectors/tailscale/tailscale.go @@ -3,9 +3,9 @@ package tailscale import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" "net/url" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tallyfy/tallyfy.go b/pkg/detectors/tallyfy/tallyfy.go index bb48e03924b2..2a32fafaeb34 100644 --- a/pkg/detectors/tallyfy/tallyfy.go +++ b/pkg/detectors/tallyfy/tallyfy.go @@ -3,8 +3,8 @@ package tallyfy import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tatumio/tatumio.go b/pkg/detectors/tatumio/tatumio.go index f98c4fb497c0..dd45e49798e5 100644 --- a/pkg/detectors/tatumio/tatumio.go +++ b/pkg/detectors/tatumio/tatumio.go @@ -2,8 +2,8 @@ package tatumio import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/taxjar/taxjar.go b/pkg/detectors/taxjar/taxjar.go index ead1aedf385a..337bc43d1836 100644 --- a/pkg/detectors/taxjar/taxjar.go +++ b/pkg/detectors/taxjar/taxjar.go @@ -3,8 +3,8 @@ package taxjar import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/teamgate/teamgate.go b/pkg/detectors/teamgate/teamgate.go index 9ed1f861bbfa..5ee093bc2d30 100644 --- a/pkg/detectors/teamgate/teamgate.go +++ b/pkg/detectors/teamgate/teamgate.go @@ -2,8 +2,8 @@ package teamgate import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/teamworkcrm/teamworkcrm.go b/pkg/detectors/teamworkcrm/teamworkcrm.go index 5c324addd970..293ac6f20098 100644 --- a/pkg/detectors/teamworkcrm/teamworkcrm.go +++ b/pkg/detectors/teamworkcrm/teamworkcrm.go @@ -3,8 +3,8 @@ package teamworkcrm import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/teamworkdesk/teamworkdesk.go b/pkg/detectors/teamworkdesk/teamworkdesk.go index 0f4dbe089fad..9a9a06e11dd7 100644 --- a/pkg/detectors/teamworkdesk/teamworkdesk.go +++ b/pkg/detectors/teamworkdesk/teamworkdesk.go @@ -3,8 +3,8 @@ package teamworkdesk import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/teamworkspaces/teamworkspaces.go b/pkg/detectors/teamworkspaces/teamworkspaces.go index c142753d8963..281daa422608 100644 --- a/pkg/detectors/teamworkspaces/teamworkspaces.go +++ b/pkg/detectors/teamworkspaces/teamworkspaces.go @@ -3,8 +3,8 @@ package teamworkspaces import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go b/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go index d23bab7ad3ca..c0e79fa6effe 100644 --- a/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go +++ b/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go @@ -3,8 +3,8 @@ package technicalanalysisapi import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/tefter/tefter.go b/pkg/detectors/tefter/tefter.go index ad2bef1a8fb6..a5707e5377a5 100644 --- a/pkg/detectors/tefter/tefter.go +++ b/pkg/detectors/tefter/tefter.go @@ -3,9 +3,9 @@ package tefter import ( "context" "encoding/json" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/telegrambottoken/telegrambottoken.go b/pkg/detectors/telegrambottoken/telegrambottoken.go index a42b9cd60fb7..22985ebe4bac 100644 --- a/pkg/detectors/telegrambottoken/telegrambottoken.go +++ b/pkg/detectors/telegrambottoken/telegrambottoken.go @@ -5,8 +5,8 @@ import ( "encoding/json" // "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/teletype/teletype.go b/pkg/detectors/teletype/teletype.go index c01c77e93bc7..b994b5ec177f 100644 --- a/pkg/detectors/teletype/teletype.go +++ b/pkg/detectors/teletype/teletype.go @@ -2,9 +2,9 @@ package teletype import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/telnyx/telnyx.go b/pkg/detectors/telnyx/telnyx.go index a044993c1c50..5aba48b2d9e5 100644 --- a/pkg/detectors/telnyx/telnyx.go +++ b/pkg/detectors/telnyx/telnyx.go @@ -3,8 +3,8 @@ package telnyx import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go index dbb54c7a181c..40cff8b8fc3f 100644 --- a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go +++ b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go @@ -3,8 +3,8 @@ package terraformcloudpersonaltoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/testingbot/testingbot.go b/pkg/detectors/testingbot/testingbot.go index 93240bd56e15..91d26248bc8e 100644 --- a/pkg/detectors/testingbot/testingbot.go +++ b/pkg/detectors/testingbot/testingbot.go @@ -2,8 +2,8 @@ package testingbot import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/textmagic/textmagic.go b/pkg/detectors/textmagic/textmagic.go index 641f712b0534..8c53ca5b6b94 100644 --- a/pkg/detectors/textmagic/textmagic.go +++ b/pkg/detectors/textmagic/textmagic.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/theoddsapi/theoddsapi.go b/pkg/detectors/theoddsapi/theoddsapi.go index 5161a81ee876..9cbeb96b97eb 100644 --- a/pkg/detectors/theoddsapi/theoddsapi.go +++ b/pkg/detectors/theoddsapi/theoddsapi.go @@ -2,8 +2,8 @@ package theoddsapi import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/thinkific/thinkific.go b/pkg/detectors/thinkific/thinkific.go index b34c442b64bc..86f8ed882b5f 100644 --- a/pkg/detectors/thinkific/thinkific.go +++ b/pkg/detectors/thinkific/thinkific.go @@ -3,9 +3,9 @@ package thinkific import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/thousandeyes/thousandeyes.go b/pkg/detectors/thousandeyes/thousandeyes.go index 14fcb0c28154..83a0a2e7d823 100644 --- a/pkg/detectors/thousandeyes/thousandeyes.go +++ b/pkg/detectors/thousandeyes/thousandeyes.go @@ -2,8 +2,8 @@ package thousandeyes import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ticketmaster/ticketmaster.go b/pkg/detectors/ticketmaster/ticketmaster.go index 0d8864423d6d..7f1026f9f333 100644 --- a/pkg/detectors/ticketmaster/ticketmaster.go +++ b/pkg/detectors/ticketmaster/ticketmaster.go @@ -3,8 +3,8 @@ package ticketmaster import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tickettailor/tickettailor.go b/pkg/detectors/tickettailor/tickettailor.go index 8c363ca3a407..e8160c401322 100644 --- a/pkg/detectors/tickettailor/tickettailor.go +++ b/pkg/detectors/tickettailor/tickettailor.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tiingo/tiingo.go b/pkg/detectors/tiingo/tiingo.go index 54af3a52b981..419367910435 100644 --- a/pkg/detectors/tiingo/tiingo.go +++ b/pkg/detectors/tiingo/tiingo.go @@ -3,8 +3,8 @@ package tiingo import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/timecamp/timecamp.go b/pkg/detectors/timecamp/timecamp.go index 53d833f012a3..fd019a2f3618 100644 --- a/pkg/detectors/timecamp/timecamp.go +++ b/pkg/detectors/timecamp/timecamp.go @@ -2,8 +2,8 @@ package timecamp import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/timezoneapi/timezoneapi.go b/pkg/detectors/timezoneapi/timezoneapi.go index 7f6ab3cc47a0..c9a094024110 100644 --- a/pkg/detectors/timezoneapi/timezoneapi.go +++ b/pkg/detectors/timezoneapi/timezoneapi.go @@ -2,8 +2,8 @@ package timezoneapi import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tineswebhook/tineswebhook.go b/pkg/detectors/tineswebhook/tineswebhook.go index 78aa4e64d600..a5e08e9b3151 100644 --- a/pkg/detectors/tineswebhook/tineswebhook.go +++ b/pkg/detectors/tineswebhook/tineswebhook.go @@ -2,8 +2,8 @@ package tineswebhook import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tly/tly.go b/pkg/detectors/tly/tly.go index 220ca34aff0a..ca9ba4a25ca3 100644 --- a/pkg/detectors/tly/tly.go +++ b/pkg/detectors/tly/tly.go @@ -2,8 +2,8 @@ package tly import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tmetric/tmetric.go b/pkg/detectors/tmetric/tmetric.go index d14387504965..640146d6518d 100644 --- a/pkg/detectors/tmetric/tmetric.go +++ b/pkg/detectors/tmetric/tmetric.go @@ -3,8 +3,8 @@ package tmetric import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/todoist/todoist.go b/pkg/detectors/todoist/todoist.go index 0681bf2a7335..f1c238fa5001 100644 --- a/pkg/detectors/todoist/todoist.go +++ b/pkg/detectors/todoist/todoist.go @@ -3,8 +3,8 @@ package todoist import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/toggltrack/toggltrack.go b/pkg/detectors/toggltrack/toggltrack.go index 0baeec3a07b7..2c35e6b26bc8 100644 --- a/pkg/detectors/toggltrack/toggltrack.go +++ b/pkg/detectors/toggltrack/toggltrack.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tokeet/tokeet.go b/pkg/detectors/tokeet/tokeet.go index 20b1d99356e5..b361b31925b5 100644 --- a/pkg/detectors/tokeet/tokeet.go +++ b/pkg/detectors/tokeet/tokeet.go @@ -3,8 +3,8 @@ package tokeet import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tomorrowio/tomorrowio.go b/pkg/detectors/tomorrowio/tomorrowio.go index a8d48cdf9d86..82076c5bee3d 100644 --- a/pkg/detectors/tomorrowio/tomorrowio.go +++ b/pkg/detectors/tomorrowio/tomorrowio.go @@ -3,8 +3,8 @@ package tomorrowio import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tomtom/tomtom.go b/pkg/detectors/tomtom/tomtom.go index 1d5f82e0b680..46f1e51b3516 100644 --- a/pkg/detectors/tomtom/tomtom.go +++ b/pkg/detectors/tomtom/tomtom.go @@ -2,8 +2,8 @@ package tomtom import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tradier/tradier.go b/pkg/detectors/tradier/tradier.go index d255293574b1..36cdebd8adbc 100644 --- a/pkg/detectors/tradier/tradier.go +++ b/pkg/detectors/tradier/tradier.go @@ -3,8 +3,8 @@ package tradier import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/transferwise/transferwise.go b/pkg/detectors/transferwise/transferwise.go index 10165f27e2e3..1cebe38f39c4 100644 --- a/pkg/detectors/transferwise/transferwise.go +++ b/pkg/detectors/transferwise/transferwise.go @@ -3,8 +3,8 @@ package transferwise import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/travelpayouts/travelpayouts.go b/pkg/detectors/travelpayouts/travelpayouts.go index a2464087fe7d..651c63a5cf47 100644 --- a/pkg/detectors/travelpayouts/travelpayouts.go +++ b/pkg/detectors/travelpayouts/travelpayouts.go @@ -3,8 +3,8 @@ package travelpayouts import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/travisci/travisci.go b/pkg/detectors/travisci/travisci.go index 07d607c4a0a8..af73e23881ef 100644 --- a/pkg/detectors/travisci/travisci.go +++ b/pkg/detectors/travisci/travisci.go @@ -3,8 +3,8 @@ package travisci import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/trelloapikey/trelloapikey.go b/pkg/detectors/trelloapikey/trelloapikey.go index be78c210c354..26e8e810f245 100644 --- a/pkg/detectors/trelloapikey/trelloapikey.go +++ b/pkg/detectors/trelloapikey/trelloapikey.go @@ -3,8 +3,8 @@ package trelloapikey import ( "context" // "log" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tru/tru.go b/pkg/detectors/tru/tru.go index 2a40812f99dd..25dee7b483a6 100644 --- a/pkg/detectors/tru/tru.go +++ b/pkg/detectors/tru/tru.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/trufflehogenterprise/trufflehogenterprise.go b/pkg/detectors/trufflehogenterprise/trufflehogenterprise.go index d9880bde1cb3..7af19a12d4a0 100644 --- a/pkg/detectors/trufflehogenterprise/trufflehogenterprise.go +++ b/pkg/detectors/trufflehogenterprise/trufflehogenterprise.go @@ -3,8 +3,8 @@ package trufflehogenterprise import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/twelvedata/twelvedata.go b/pkg/detectors/twelvedata/twelvedata.go index 8cb6f1092028..8a22306711bc 100644 --- a/pkg/detectors/twelvedata/twelvedata.go +++ b/pkg/detectors/twelvedata/twelvedata.go @@ -2,9 +2,9 @@ package twelvedata import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/twilio/twilio.go b/pkg/detectors/twilio/twilio.go index caac3751d726..4c61cec9a7d6 100644 --- a/pkg/detectors/twilio/twilio.go +++ b/pkg/detectors/twilio/twilio.go @@ -3,8 +3,8 @@ package twilio import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" diff --git a/pkg/detectors/twist/twist.go b/pkg/detectors/twist/twist.go index 0b59b6c4b1da..898d53f050e1 100644 --- a/pkg/detectors/twist/twist.go +++ b/pkg/detectors/twist/twist.go @@ -3,8 +3,8 @@ package twist import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/twitch/twitch.go b/pkg/detectors/twitch/twitch.go index d0c5b52fb894..9898d4f5ec73 100644 --- a/pkg/detectors/twitch/twitch.go +++ b/pkg/detectors/twitch/twitch.go @@ -3,9 +3,9 @@ package twitch import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" "net/url" - "regexp" "strconv" "strings" diff --git a/pkg/detectors/twitter/twitter.go b/pkg/detectors/twitter/twitter.go index 9d4d9c121dd9..a043e75176f6 100644 --- a/pkg/detectors/twitter/twitter.go +++ b/pkg/detectors/twitter/twitter.go @@ -3,8 +3,8 @@ package twitter import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/tyntec/tyntec.go b/pkg/detectors/tyntec/tyntec.go index 7fde801e666a..85c6ccebd962 100644 --- a/pkg/detectors/tyntec/tyntec.go +++ b/pkg/detectors/tyntec/tyntec.go @@ -2,8 +2,8 @@ package tyntec import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/typeform/typeform.go b/pkg/detectors/typeform/typeform.go index 41767e3454a9..404137427c37 100644 --- a/pkg/detectors/typeform/typeform.go +++ b/pkg/detectors/typeform/typeform.go @@ -3,8 +3,8 @@ package typeform import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/typetalk/typetalk.go b/pkg/detectors/typetalk/typetalk.go index 493cc3fc65b5..9f455c5a170b 100644 --- a/pkg/detectors/typetalk/typetalk.go +++ b/pkg/detectors/typetalk/typetalk.go @@ -3,8 +3,8 @@ package typetalk import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/ubidots/ubidots.go b/pkg/detectors/ubidots/ubidots.go index bbc0e2bee016..73d3b680e22d 100644 --- a/pkg/detectors/ubidots/ubidots.go +++ b/pkg/detectors/ubidots/ubidots.go @@ -2,8 +2,8 @@ package ubidots import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/uclassify/uclassify.go b/pkg/detectors/uclassify/uclassify.go index 757fa2a02789..64483ade4fd2 100644 --- a/pkg/detectors/uclassify/uclassify.go +++ b/pkg/detectors/uclassify/uclassify.go @@ -3,8 +3,8 @@ package uclassify import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/unifyid/unifyid.go b/pkg/detectors/unifyid/unifyid.go index 8b83a78342d0..f75999a2fb72 100644 --- a/pkg/detectors/unifyid/unifyid.go +++ b/pkg/detectors/unifyid/unifyid.go @@ -2,9 +2,9 @@ package unifyid import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/unplugg/unplugg.go b/pkg/detectors/unplugg/unplugg.go index a7081bd46e23..298737a0b7b9 100644 --- a/pkg/detectors/unplugg/unplugg.go +++ b/pkg/detectors/unplugg/unplugg.go @@ -2,8 +2,8 @@ package unplugg import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/unsplash/unsplash.go b/pkg/detectors/unsplash/unsplash.go index b8856c96ac74..e15383c25467 100644 --- a/pkg/detectors/unsplash/unsplash.go +++ b/pkg/detectors/unsplash/unsplash.go @@ -2,8 +2,8 @@ package unsplash import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/upcdatabase/upcdatabase.go b/pkg/detectors/upcdatabase/upcdatabase.go index 015d4b54703a..f86d3eb23708 100644 --- a/pkg/detectors/upcdatabase/upcdatabase.go +++ b/pkg/detectors/upcdatabase/upcdatabase.go @@ -3,9 +3,9 @@ package upcdatabase import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/uplead/uplead.go b/pkg/detectors/uplead/uplead.go index c2b882438fdd..d493677722ae 100644 --- a/pkg/detectors/uplead/uplead.go +++ b/pkg/detectors/uplead/uplead.go @@ -2,8 +2,8 @@ package uplead import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/uploadcare/uploadcare.go b/pkg/detectors/uploadcare/uploadcare.go index 825f6164bea6..70830b3ba777 100644 --- a/pkg/detectors/uploadcare/uploadcare.go +++ b/pkg/detectors/uploadcare/uploadcare.go @@ -3,8 +3,8 @@ package uploadcare import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/uptimerobot/uptimerobot.go b/pkg/detectors/uptimerobot/uptimerobot.go index cc6e6c2427f0..9adfea3921aa 100644 --- a/pkg/detectors/uptimerobot/uptimerobot.go +++ b/pkg/detectors/uptimerobot/uptimerobot.go @@ -2,9 +2,9 @@ package uptimerobot import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/upwave/upwave.go b/pkg/detectors/upwave/upwave.go index fbb5498f1249..1cbc174bbe8d 100644 --- a/pkg/detectors/upwave/upwave.go +++ b/pkg/detectors/upwave/upwave.go @@ -3,8 +3,8 @@ package upwave import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/uri/uri.go b/pkg/detectors/uri/uri.go index 52b3f0144e9e..0ab918466719 100644 --- a/pkg/detectors/uri/uri.go +++ b/pkg/detectors/uri/uri.go @@ -2,9 +2,9 @@ package uri import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" "net/url" - "regexp" "strings" "time" diff --git a/pkg/detectors/urlscan/urlscan.go b/pkg/detectors/urlscan/urlscan.go index 0dc90d0e0658..aae63b2c14fe 100644 --- a/pkg/detectors/urlscan/urlscan.go +++ b/pkg/detectors/urlscan/urlscan.go @@ -2,8 +2,8 @@ package urlscan import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/user/user.go b/pkg/detectors/user/user.go index 2cbfe116bb66..a1549423e62a 100644 --- a/pkg/detectors/user/user.go +++ b/pkg/detectors/user/user.go @@ -3,8 +3,8 @@ package user import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/userflow/userflow.go b/pkg/detectors/userflow/userflow.go index b0ba91114301..f43d3dd97048 100644 --- a/pkg/detectors/userflow/userflow.go +++ b/pkg/detectors/userflow/userflow.go @@ -3,8 +3,8 @@ package userflow import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/userstack/userstack.go b/pkg/detectors/userstack/userstack.go index d8662ee3e0f0..05dacac14910 100644 --- a/pkg/detectors/userstack/userstack.go +++ b/pkg/detectors/userstack/userstack.go @@ -3,9 +3,9 @@ package userstack import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/vagrantcloudpersonaltoken/vagrantcloudpersonaltoken.go b/pkg/detectors/vagrantcloudpersonaltoken/vagrantcloudpersonaltoken.go index e49aedc05ed9..c517169c8c7f 100644 --- a/pkg/detectors/vagrantcloudpersonaltoken/vagrantcloudpersonaltoken.go +++ b/pkg/detectors/vagrantcloudpersonaltoken/vagrantcloudpersonaltoken.go @@ -3,8 +3,8 @@ package vagrantcloudpersonaltoken import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/vatlayer/vatlayer.go b/pkg/detectors/vatlayer/vatlayer.go index bd0155c5ae1f..be0bbf525e29 100644 --- a/pkg/detectors/vatlayer/vatlayer.go +++ b/pkg/detectors/vatlayer/vatlayer.go @@ -3,9 +3,9 @@ package vatlayer import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/vbout/vbout.go b/pkg/detectors/vbout/vbout.go index 04df4949971b..f9cfd4a1bdd5 100644 --- a/pkg/detectors/vbout/vbout.go +++ b/pkg/detectors/vbout/vbout.go @@ -3,8 +3,8 @@ package vbout import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/vercel/vercel.go b/pkg/detectors/vercel/vercel.go index 55d6f23e4fe1..87b398675dc2 100644 --- a/pkg/detectors/vercel/vercel.go +++ b/pkg/detectors/vercel/vercel.go @@ -3,8 +3,8 @@ package vercel import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/verifier/verifier.go b/pkg/detectors/verifier/verifier.go index 324f76a1dc3e..eb8180a771e4 100644 --- a/pkg/detectors/verifier/verifier.go +++ b/pkg/detectors/verifier/verifier.go @@ -3,8 +3,8 @@ package verifier import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/verimail/verimail.go b/pkg/detectors/verimail/verimail.go index 19345aedf190..f449b088aa4b 100644 --- a/pkg/detectors/verimail/verimail.go +++ b/pkg/detectors/verimail/verimail.go @@ -2,8 +2,8 @@ package verimail import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/veriphone/veriphone.go b/pkg/detectors/veriphone/veriphone.go index 6b4f43006aff..46902ba66da5 100644 --- a/pkg/detectors/veriphone/veriphone.go +++ b/pkg/detectors/veriphone/veriphone.go @@ -2,8 +2,8 @@ package veriphone import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/versioneye/versioneye.go b/pkg/detectors/versioneye/versioneye.go index 5148a99d412e..9752e6fd02ec 100644 --- a/pkg/detectors/versioneye/versioneye.go +++ b/pkg/detectors/versioneye/versioneye.go @@ -2,8 +2,8 @@ package versioneye import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/viewneo/viewneo.go b/pkg/detectors/viewneo/viewneo.go index fa35a06317a6..3465f61cb2e2 100644 --- a/pkg/detectors/viewneo/viewneo.go +++ b/pkg/detectors/viewneo/viewneo.go @@ -3,8 +3,8 @@ package viewneo import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/virustotal/virustotal.go b/pkg/detectors/virustotal/virustotal.go index 465b1c060d59..f57024017401 100644 --- a/pkg/detectors/virustotal/virustotal.go +++ b/pkg/detectors/virustotal/virustotal.go @@ -2,8 +2,8 @@ package virustotal import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/visualcrossing/visualcrossing.go b/pkg/detectors/visualcrossing/visualcrossing.go index ea9dd2491ddd..54b5e7606271 100644 --- a/pkg/detectors/visualcrossing/visualcrossing.go +++ b/pkg/detectors/visualcrossing/visualcrossing.go @@ -3,8 +3,8 @@ package visualcrossing import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/voiceflow/voiceflow.go b/pkg/detectors/voiceflow/voiceflow.go index 3513be3e9c82..1ffb1b11d263 100644 --- a/pkg/detectors/voiceflow/voiceflow.go +++ b/pkg/detectors/voiceflow/voiceflow.go @@ -4,9 +4,9 @@ import ( "bytes" "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" @@ -25,7 +25,7 @@ var ( defaultClient = common.SaneHttpClient() // Reference: https://developer.voiceflow.com/reference/project#dialog-manager-api-keys // - //TODO: This includes Workspace and Legacy Workspace API keys; I haven't validated whether these actually work. + // TODO: This includes Workspace and Legacy Workspace API keys; I haven't validated whether these actually work. // https://github.com/voiceflow/general-runtime/blob/master/tests/runtime/lib/DataAPI/utils.unit.ts keyPat = regexp.MustCompile(`\b(VF\.(?:(?:DM|WS)\.)?[a-fA-F0-9]{24}\.[a-zA-Z0-9]{16})\b`) ) diff --git a/pkg/detectors/voicegain/voicegain.go b/pkg/detectors/voicegain/voicegain.go index 67741e25b73d..72bbb35327c3 100644 --- a/pkg/detectors/voicegain/voicegain.go +++ b/pkg/detectors/voicegain/voicegain.go @@ -3,8 +3,8 @@ package voicegain import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/voodoosms/voodoosms.go b/pkg/detectors/voodoosms/voodoosms.go index c382d0933bef..0a8ab98845ce 100644 --- a/pkg/detectors/voodoosms/voodoosms.go +++ b/pkg/detectors/voodoosms/voodoosms.go @@ -3,8 +3,8 @@ package voodoosms import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/vouchery/vouchery.go b/pkg/detectors/vouchery/vouchery.go index ec917e564c51..28b06408197a 100644 --- a/pkg/detectors/vouchery/vouchery.go +++ b/pkg/detectors/vouchery/vouchery.go @@ -3,8 +3,8 @@ package vouchery import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/vpnapi/vpnapi.go b/pkg/detectors/vpnapi/vpnapi.go index 5593e0d4eaf3..5ea820bb690b 100644 --- a/pkg/detectors/vpnapi/vpnapi.go +++ b/pkg/detectors/vpnapi/vpnapi.go @@ -2,8 +2,8 @@ package vpnapi import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/vultrapikey/vultrapikey.go b/pkg/detectors/vultrapikey/vultrapikey.go index 536a27c924ed..a229f4be6043 100644 --- a/pkg/detectors/vultrapikey/vultrapikey.go +++ b/pkg/detectors/vultrapikey/vultrapikey.go @@ -3,8 +3,8 @@ package vultrapikey import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/vyte/vyte.go b/pkg/detectors/vyte/vyte.go index 0671be79f451..47685a67dbd9 100644 --- a/pkg/detectors/vyte/vyte.go +++ b/pkg/detectors/vyte/vyte.go @@ -2,8 +2,8 @@ package vyte import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/walkscore/walkscore.go b/pkg/detectors/walkscore/walkscore.go index 4400afaa4e90..28eaea8916c1 100644 --- a/pkg/detectors/walkscore/walkscore.go +++ b/pkg/detectors/walkscore/walkscore.go @@ -3,9 +3,9 @@ package walkscore import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/weatherbit/weatherbit.go b/pkg/detectors/weatherbit/weatherbit.go index 04a8ebad7679..9b6eb90f11b1 100644 --- a/pkg/detectors/weatherbit/weatherbit.go +++ b/pkg/detectors/weatherbit/weatherbit.go @@ -3,8 +3,8 @@ package weatherbit import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/weatherstack/weatherstack.go b/pkg/detectors/weatherstack/weatherstack.go index d5255a209aa6..6e42ec8b1040 100644 --- a/pkg/detectors/weatherstack/weatherstack.go +++ b/pkg/detectors/weatherstack/weatherstack.go @@ -3,9 +3,9 @@ package weatherstack import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/web3storage/web3storage.go b/pkg/detectors/web3storage/web3storage.go index 34654744769b..00ca87108b2f 100644 --- a/pkg/detectors/web3storage/web3storage.go +++ b/pkg/detectors/web3storage/web3storage.go @@ -3,8 +3,8 @@ package web3storage import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/webex/webex.go b/pkg/detectors/webex/webex.go index 38c732ca1133..d00ad14e67e8 100644 --- a/pkg/detectors/webex/webex.go +++ b/pkg/detectors/webex/webex.go @@ -3,9 +3,9 @@ package webex import ( "context" "encoding/json" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/webflow/webflow.go b/pkg/detectors/webflow/webflow.go index 25ab7c84bdd7..ed42a9124259 100644 --- a/pkg/detectors/webflow/webflow.go +++ b/pkg/detectors/webflow/webflow.go @@ -3,8 +3,8 @@ package webflow import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/webscraper/webscraper.go b/pkg/detectors/webscraper/webscraper.go index 9b374f6dfd62..c5aa1e424a2c 100644 --- a/pkg/detectors/webscraper/webscraper.go +++ b/pkg/detectors/webscraper/webscraper.go @@ -3,8 +3,8 @@ package webscraper import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/webscraping/webscraping.go b/pkg/detectors/webscraping/webscraping.go index 5d5118ab7bc5..6cd63258aa7c 100644 --- a/pkg/detectors/webscraping/webscraping.go +++ b/pkg/detectors/webscraping/webscraping.go @@ -2,9 +2,9 @@ package webscraping import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/websitepulse/websitepulse.go b/pkg/detectors/websitepulse/websitepulse.go index e8eef8764512..b952c9e2e72a 100644 --- a/pkg/detectors/websitepulse/websitepulse.go +++ b/pkg/detectors/websitepulse/websitepulse.go @@ -3,9 +3,9 @@ package websitepulse import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/wepay/wepay.go b/pkg/detectors/wepay/wepay.go index 856e94d48920..0bb07752eb07 100644 --- a/pkg/detectors/wepay/wepay.go +++ b/pkg/detectors/wepay/wepay.go @@ -2,8 +2,8 @@ package wepay import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/whoxy/whoxy.go b/pkg/detectors/whoxy/whoxy.go index 90478b875da0..d85683228987 100644 --- a/pkg/detectors/whoxy/whoxy.go +++ b/pkg/detectors/whoxy/whoxy.go @@ -3,9 +3,9 @@ package whoxy import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/wistia/wistia.go b/pkg/detectors/wistia/wistia.go index 5a611ae5b16d..e05f6dff740e 100644 --- a/pkg/detectors/wistia/wistia.go +++ b/pkg/detectors/wistia/wistia.go @@ -2,8 +2,8 @@ package wistia import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/wit/wit.go b/pkg/detectors/wit/wit.go index 239250b21b3c..67ea8417a8a4 100644 --- a/pkg/detectors/wit/wit.go +++ b/pkg/detectors/wit/wit.go @@ -3,8 +3,8 @@ package wit import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/worksnaps/worksnaps.go b/pkg/detectors/worksnaps/worksnaps.go index e2e8b8e3036e..78ecf768becf 100644 --- a/pkg/detectors/worksnaps/worksnaps.go +++ b/pkg/detectors/worksnaps/worksnaps.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/workstack/workstack.go b/pkg/detectors/workstack/workstack.go index 5cc825923a2d..488f6ae88d92 100644 --- a/pkg/detectors/workstack/workstack.go +++ b/pkg/detectors/workstack/workstack.go @@ -2,8 +2,8 @@ package workstack import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/worldcoinindex/worldcoinindex.go b/pkg/detectors/worldcoinindex/worldcoinindex.go index 76cac67f4bc6..0d5ac48bae26 100644 --- a/pkg/detectors/worldcoinindex/worldcoinindex.go +++ b/pkg/detectors/worldcoinindex/worldcoinindex.go @@ -3,9 +3,9 @@ package worldcoinindex import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/worldweather/worldweather.go b/pkg/detectors/worldweather/worldweather.go index f6d74b752043..3edc5bc53a16 100644 --- a/pkg/detectors/worldweather/worldweather.go +++ b/pkg/detectors/worldweather/worldweather.go @@ -3,8 +3,8 @@ package worldweather import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/wrike/wrike.go b/pkg/detectors/wrike/wrike.go index 1587641677d5..c71962b0366d 100644 --- a/pkg/detectors/wrike/wrike.go +++ b/pkg/detectors/wrike/wrike.go @@ -3,8 +3,8 @@ package wrike import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/yandex/yandex.go b/pkg/detectors/yandex/yandex.go index 142e2ce7c1ed..61faddde5a96 100644 --- a/pkg/detectors/yandex/yandex.go +++ b/pkg/detectors/yandex/yandex.go @@ -2,8 +2,8 @@ package yandex import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/yelp/yelp.go b/pkg/detectors/yelp/yelp.go index 5278b6d3e164..e71682c6e19a 100644 --- a/pkg/detectors/yelp/yelp.go +++ b/pkg/detectors/yelp/yelp.go @@ -3,8 +3,8 @@ package yelp import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/youneedabudget/youneedabudget.go b/pkg/detectors/youneedabudget/youneedabudget.go index a95e1003f02c..1bab39c6f0ea 100644 --- a/pkg/detectors/youneedabudget/youneedabudget.go +++ b/pkg/detectors/youneedabudget/youneedabudget.go @@ -3,8 +3,8 @@ package youneedabudget import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/yousign/yousign.go b/pkg/detectors/yousign/yousign.go index 36cfe6e9f278..032fdbc25e9b 100644 --- a/pkg/detectors/yousign/yousign.go +++ b/pkg/detectors/yousign/yousign.go @@ -3,8 +3,8 @@ package yousign import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/youtubeapikey/youtubeapikey.go b/pkg/detectors/youtubeapikey/youtubeapikey.go index c4d98ef1ba16..92597c31ba2c 100644 --- a/pkg/detectors/youtubeapikey/youtubeapikey.go +++ b/pkg/detectors/youtubeapikey/youtubeapikey.go @@ -2,8 +2,8 @@ package youtubeapikey import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zapierwebhook/zapierwebhook.go b/pkg/detectors/zapierwebhook/zapierwebhook.go index 620c027f8851..9f1d45ffe8fb 100644 --- a/pkg/detectors/zapierwebhook/zapierwebhook.go +++ b/pkg/detectors/zapierwebhook/zapierwebhook.go @@ -2,8 +2,8 @@ package zapierwebhook import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zendeskapi/zendeskapi.go b/pkg/detectors/zendeskapi/zendeskapi.go index 9438ea38d242..abaa94a0461c 100644 --- a/pkg/detectors/zendeskapi/zendeskapi.go +++ b/pkg/detectors/zendeskapi/zendeskapi.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zenkitapi/zenkitapi.go b/pkg/detectors/zenkitapi/zenkitapi.go index 17bb385abf0d..a45aa60af4d5 100644 --- a/pkg/detectors/zenkitapi/zenkitapi.go +++ b/pkg/detectors/zenkitapi/zenkitapi.go @@ -2,8 +2,8 @@ package zenkitapi import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zenrows/zenrows.go b/pkg/detectors/zenrows/zenrows.go index 561919b4508c..4f71bd371e0d 100644 --- a/pkg/detectors/zenrows/zenrows.go +++ b/pkg/detectors/zenrows/zenrows.go @@ -3,8 +3,8 @@ package zenrows import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zenscrape/zenscrape.go b/pkg/detectors/zenscrape/zenscrape.go index 08b93f7cd970..651a8099f57a 100644 --- a/pkg/detectors/zenscrape/zenscrape.go +++ b/pkg/detectors/zenscrape/zenscrape.go @@ -3,9 +3,10 @@ package zenscrape import ( "context" "net/http" - "regexp" "strings" + regexp "github.com/wasilibs/go-re2" + "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/detectors" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb" diff --git a/pkg/detectors/zenserp/zenserp.go b/pkg/detectors/zenserp/zenserp.go index 5ae78e9458b1..a5f9b3b31ecd 100644 --- a/pkg/detectors/zenserp/zenserp.go +++ b/pkg/detectors/zenserp/zenserp.go @@ -2,9 +2,9 @@ package zenserp import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "time" diff --git a/pkg/detectors/zeplin/zeplin.go b/pkg/detectors/zeplin/zeplin.go index fe41d8d98d0c..84e3c14f1d89 100644 --- a/pkg/detectors/zeplin/zeplin.go +++ b/pkg/detectors/zeplin/zeplin.go @@ -3,8 +3,8 @@ package zeplin import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zerobounce/zerobounce.go b/pkg/detectors/zerobounce/zerobounce.go index 936b1431aed4..3ecaa1a8fad7 100644 --- a/pkg/detectors/zerobounce/zerobounce.go +++ b/pkg/detectors/zerobounce/zerobounce.go @@ -2,9 +2,9 @@ package zerobounce import ( "context" + regexp "github.com/wasilibs/go-re2" "io" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zerotier/zerotier.go b/pkg/detectors/zerotier/zerotier.go index 5c094a1cf326..15462eabfc9f 100644 --- a/pkg/detectors/zerotier/zerotier.go +++ b/pkg/detectors/zerotier/zerotier.go @@ -3,8 +3,8 @@ package zerotier import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zipapi/zipapi.go b/pkg/detectors/zipapi/zipapi.go index 2f25c2e8aee5..9ad753f9e4ce 100644 --- a/pkg/detectors/zipapi/zipapi.go +++ b/pkg/detectors/zipapi/zipapi.go @@ -4,8 +4,8 @@ import ( "context" b64 "encoding/base64" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zipbooks/zipbooks.go b/pkg/detectors/zipbooks/zipbooks.go index ba7d5801f564..07078135a807 100644 --- a/pkg/detectors/zipbooks/zipbooks.go +++ b/pkg/detectors/zipbooks/zipbooks.go @@ -3,8 +3,8 @@ package zipbooks import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zipcodeapi/zipcodeapi.go b/pkg/detectors/zipcodeapi/zipcodeapi.go index a4949f1c1b5d..f42dcf7815dc 100644 --- a/pkg/detectors/zipcodeapi/zipcodeapi.go +++ b/pkg/detectors/zipcodeapi/zipcodeapi.go @@ -3,8 +3,8 @@ package zipcodeapi import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zipcodebase/zipcodebase.go b/pkg/detectors/zipcodebase/zipcodebase.go index f153a8a2f6c6..354ed3448ac6 100644 --- a/pkg/detectors/zipcodebase/zipcodebase.go +++ b/pkg/detectors/zipcodebase/zipcodebase.go @@ -2,8 +2,8 @@ package zipcodebase import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zonkafeedback/zonkafeedback.go b/pkg/detectors/zonkafeedback/zonkafeedback.go index 90160fc78e11..7d480daec134 100644 --- a/pkg/detectors/zonkafeedback/zonkafeedback.go +++ b/pkg/detectors/zonkafeedback/zonkafeedback.go @@ -2,8 +2,8 @@ package zonkafeedback import ( "context" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common" diff --git a/pkg/detectors/zulipchat/zulipchat.go b/pkg/detectors/zulipchat/zulipchat.go index 89f9266906f3..02030d2ed781 100644 --- a/pkg/detectors/zulipchat/zulipchat.go +++ b/pkg/detectors/zulipchat/zulipchat.go @@ -3,8 +3,8 @@ package zulipchat import ( "context" "fmt" + regexp "github.com/wasilibs/go-re2" "net/http" - "regexp" "strings" "github.com/trufflesecurity/trufflehog/v3/pkg/common"