chore(gosec): no need for security check

This commit is contained in:
Dario Tranchitella
2023-09-26 17:39:20 +02:00
parent 37455417bc
commit 56f51855e2
+2 -2
View File
@@ -4,7 +4,7 @@
package v1beta2
import (
"crypto/md5"
"crypto/md5" //#nosec
"encoding/hex"
"fmt"
)
@@ -17,7 +17,7 @@ const (
func createAnnotation(format string, resource fmt.Stringer) (string, error) {
suffix := resource.String()
hash := md5.Sum([]byte(resource.String()))
hash := md5.Sum([]byte(resource.String())) //#nosec
hashed := hex.EncodeToString(hash[:])
capsuleHashed := format + hashed