Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
clean up detectors (#776)
Dustin Deckerb9d6f116095c
diff --git a/pkg/detectors/cexio/cexio.go b/pkg/detectors/cexio/cexio.goindex 7f72fbd4e..85fa81a04 100644--- a/pkg/detectors/cexio/cexio.go+++ b/pkg/detectors/cexio/cexio.go@@ -6,7 +6,6 @@ import ("crypto/sha256""encoding/hex""encoding/json"- "fmt""io""net/http""net/url"@@ -98,9 +97,6 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}bodyString := string(body)validResponse := strings.Contains(bodyString, `timestamp`)- if err != nil {- fmt.Print(err.Error())- }var responseObject Responseif err := json.Unmarshal(body, &responseObject); err != nil {diff --git a/pkg/detectors/courier/courier.go b/pkg/detectors/courier/courier.goindex c50ea49a2..c25bb98ad 100644--- a/pkg/detectors/courier/courier.go+++ b/pkg/detectors/courier/courier.go@@ -41,7 +41,6 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultcontinue}resMatch := strings.TrimSpace(match[1])- fmt.Printf("\nresMatch: %s\n", resMatch)s1 := detectors.Result{DetectorType: detectorspb.DetectorType_Courier,diff --git a/pkg/detectors/edenai/edenai.go b/pkg/detectors/edenai/edenai.goindex 28c47a0a9..12d9db146 100644--- a/pkg/detectors/edenai/edenai.go+++ b/pkg/detectors/edenai/edenai.go@@ -41,7 +41,6 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultcontinue}resMatch := strings.TrimSpace(match[1])- fmt.Printf("\n\nresMatch: %s\n", resMatch)s1 := detectors.Result{DetectorType: detectorspb.DetectorType_EdenAI,diff --git a/pkg/detectors/okta/okta.go b/pkg/detectors/okta/okta.goindex 9ecdae211..088db1eb3 100644--- a/pkg/detectors/okta/okta.go+++ b/pkg/detectors/okta/okta.go@@ -48,7 +48,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result// -H "Accept: application/json" \// -H "Content-Type: application/json" \// -H "Authorization: Bearer token" \- // "https://subdomain.okta.com/api/v1/groups?limit=1"+ // "https://subdomain.okta.com/api/v1/users/me"//url := fmt.Sprintf("https://%s/api/v1/users/me", domain)