Skip to content

Commit

Permalink
chore(gosec): no need for security check
Browse files Browse the repository at this point in the history
  • Loading branch information
prometherion committed Jul 27, 2023
1 parent e52df92 commit ee40a05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/v1beta2/tenant_annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package v1beta2

import (
"crypto/md5"
"crypto/md5" //#nosec
"encoding/hex"
"fmt"
)
Expand All @@ -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
Expand Down

0 comments on commit ee40a05

Please sign in to comment.