From ce7a092aa59a26954c02cb6138056495fcb7632a Mon Sep 17 00:00:00 2001 From: vetclippy Date: Thu, 4 Sep 2025 17:09:39 +0800 Subject: [PATCH] pkg: fix some typos in comment (#4440) Signed-off-by: vetclippy --- pkg/analyzer/analyzers/launchdarkly/requests.go | 2 +- pkg/detectors/kontent/kontent.go | 2 +- .../satismeterwritekey/satismeterwritekey_integration_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/analyzer/analyzers/launchdarkly/requests.go b/pkg/analyzer/analyzers/launchdarkly/requests.go index 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.go index 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 environment envErr = "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.go index 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{