Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
pkg: fix some typos in comment (#4440)
vetclippyce7a092aa59a
diff --git a/pkg/analyzer/analyzers/launchdarkly/requests.go b/pkg/analyzer/analyzers/launchdarkly/requests.goindex ce03b3574..3d0996d0b 100644--- a/pkg/analyzer/analyzers/launchdarkly/requests.go+++ b/pkg/analyzer/analyzers/launchdarkly/requests.go@@ -38,7 +38,7 @@ var (webhooksKey: "/v2/webhooks",/*TODO:- release piplelines: https://launchdarkly.com/docs/api/release-pipelines-beta/get-all-release-pipelines (Beta)+ release pipelines: https://launchdarkly.com/docs/api/release-pipelines-beta/get-all-release-pipelines (Beta)insight deployments: https://launchdarkly.com/docs/api/insights-deployments-beta/get-deployments (Beta)delivery configuration: https://launchdarkly.com/docs/api/integration-delivery-configurations-beta/get-integration-delivery-configuration-by-environment (Beta)metrics: https://launchdarkly.com/docs/api/metrics-beta/get-metric-groups (Beta)diff --git a/pkg/detectors/kontent/kontent.go b/pkg/detectors/kontent/kontent.goindex f035a77ab..06c09eb45 100644--- a/pkg/detectors/kontent/kontent.go+++ b/pkg/detectors/kontent/kontent.go@@ -25,7 +25,7 @@ var (apiKeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"kontent"}) + common.BuildRegexJWT("30,34", "200,400", "40,43"))envIDPat = regexp.MustCompile(detectors.PrefixRegex([]string{"kontent", "env"}) + common.UUIDPattern)- // API return this error when the environment does not exist or the api key does not have the persmission to access that environment+ // API return this error when the environment does not exist or the api key does not have the permission to access that environmentenvErr = "The specified API key does not provide the permissions required to access the environment")diff --git a/pkg/detectors/satismeterwritekey/satismeterwritekey_integration_test.go b/pkg/detectors/satismeterwritekey/satismeterwritekey_integration_test.goindex 6ee584ce8..92d4e84dc 100644--- a/pkg/detectors/satismeterwritekey/satismeterwritekey_integration_test.go+++ b/pkg/detectors/satismeterwritekey/satismeterwritekey_integration_test.go@@ -69,7 +69,7 @@ func TestSatismeterWritekey_FromChunk(t *testing.T) {s: Scanner{},args: args{ctx: context.Background(),- data: []byte(fmt.Sprintf("You can find a satismeterwritekey project %s satismeter writekey %s and satismeter token %s in here but not vaild", inactiveProjectID, inactiveWriteKey, inactiveToken)), // the secret would satisfy the regex but not pass validation,+ data: []byte(fmt.Sprintf("You can find a satismeterwritekey project %s satismeter writekey %s and satismeter token %s in here but not valid", inactiveProjectID, inactiveWriteKey, inactiveToken)), // the secret would satisfy the regex but not pass validation,verify: true,},want: []detectors.Result{