Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
vmanilo committed Feb 23, 2024
1 parent af456fb commit 847ba14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions twingate/internal/test/helper.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package test

import (
"crypto/sha1"
"crypto/sha1" //nolint:gosec
"fmt"
"os"
"strings"
Expand All @@ -18,7 +18,8 @@ const (
func RandomConnectorName() string {
const maxLength = 30

hash := fmt.Sprintf("%x", sha1.Sum([]byte(Prefix())))
// we can ignore this gosec warning, hash using only for text compression
hash := fmt.Sprintf("%x", sha1.Sum([]byte(Prefix()))) //nolint:gosec
name := fmt.Sprintf("%s-%s-", prefixName, hash[:15])
name += acctest.RandString(maxLength - len(name))

Expand Down

0 comments on commit 847ba14

Please sign in to comment.