From 7acc095c0ad43b126762f8bdd6162fc3a327f935 Mon Sep 17 00:00:00 2001 From: Anoop Gopalakrishnan Date: Wed, 10 Jul 2024 18:26:20 +0530 Subject: [PATCH] Chore: Bump versions - Fix lint issues Signed-off-by: Anoop Gopalakrishnan --- pkg/server/domain/service/application.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/server/domain/service/application.go b/pkg/server/domain/service/application.go index d878f09c..40165827 100644 --- a/pkg/server/domain/service/application.go +++ b/pkg/server/domain/service/application.go @@ -19,9 +19,9 @@ package service import ( "bytes" "context" - "crypto/rand" "errors" "fmt" + "math/rand" "sort" "strings" "time" @@ -1669,13 +1669,13 @@ func (c *applicationServiceImpl) DryRunAppOrRevision(ctx context.Context, appMod } func genWebhookToken() string { - source := rand.NewSource(time.Now().UnixNano()) - rng := rand.New(source) + source := rand.NewSource(time.Now().UnixNano()) //nolint:gosec + rng := rand.New(source) //nolint:gosec runes := []rune("abcdefghijklmnopqrstuvwxyz0123456789") b := make([]rune, defaultTokenLen) for i := range b { - b[i] = runes[rng.Intn(len(runes))] // #nosec + b[i] = runes[rng.Intn(len(runes))] //nolint:gosec } return string(b) }