From 847ba1488450acf07e29b3c184ca6ef9267494f2 Mon Sep 17 00:00:00 2001 From: Volodymyr Manilo Date: Fri, 23 Feb 2024 18:42:24 +0100 Subject: [PATCH] fix linter --- twingate/internal/test/helper.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/twingate/internal/test/helper.go b/twingate/internal/test/helper.go index 88a5db1c..52ac7f75 100644 --- a/twingate/internal/test/helper.go +++ b/twingate/internal/test/helper.go @@ -1,7 +1,7 @@ package test import ( - "crypto/sha1" + "crypto/sha1" //nolint:gosec "fmt" "os" "strings" @@ -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))