Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
set verification error if failed to decode body (#3560)
Kashif Khan3f8ddd39a279
diff --git a/pkg/detectors/opsgenie/opsgenie.go b/pkg/detectors/opsgenie/opsgenie.goindex 4b29ee753..580cc8426 100644--- a/pkg/detectors/opsgenie/opsgenie.go+++ b/pkg/detectors/opsgenie/opsgenie.go@@ -81,6 +81,8 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resulterr := json.NewDecoder(res.Body).Decode(&data)if err != nil {s1.Verified = false+ // set verification error in result if failed to decode the body of response+ s1.SetVerificationError(err, resMatch)continue}