Skip to content

Find, verify, and analyze leaked credentials

capture json error (#1509)

Cody Rose06a562688d0e
diff --git a/pkg/detectors/aws/aws.go b/pkg/detectors/aws/aws.go
index 256ea42d8..b9f96c061 100644
--- a/pkg/detectors/aws/aws.go
+++ b/pkg/detectors/aws/aws.go
@@ -184,6 +184,8 @@ func (s scanner) FromData(ctx context.Context, verify bool, data []byte) (result
"user_id": identityInfo.GetCallerIdentityResponse.GetCallerIdentityResult.UserID,
"arn": identityInfo.GetCallerIdentityResponse.GetCallerIdentityResult.Arn,
}
+ } else {
+ s1.VerificationError = err
}
res.Body.Close()
} else {