diff --git a/Makefile b/Makefile index 2d04ce9841..0b5d3f9898 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ GO ?= go -GOLANGCI_LINT_VERSION = v1.50.1 +GOLANGCI_LINT_VERSION = v1.51.0 REPO_INFRA_VERSION = v0.2.5 KUSTOMIZE_VERSION = 4.5.7 OPERATOR_SDK_VERSION ?= v1.25.0 diff --git a/dependencies.yaml b/dependencies.yaml index cca1386b87..bdf419e209 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -18,7 +18,7 @@ dependencies: match: CI_IMAGE - name: golangci-lint - version: 1.50.1 + version: 1.51.0 refPaths: - path: Makefile match: GOLANGCI_LINT_VERSION diff --git a/test/suite_test.go b/test/suite_test.go index 286c901ea6..457ba20165 100644 --- a/test/suite_test.go +++ b/test/suite_test.go @@ -611,11 +611,11 @@ const ( ) func (e *e2e) getSpodMetrics() string { - rand.Seed(time.Now().UnixNano()) + r := rand.New(rand.NewSource(time.Now().UnixNano())) // #nosec letters := []rune("abcdefghijklmnopqrstuvwxyz") b := make([]rune, 10) for i := range b { - b[i] = letters[rand.Intn(len(letters))] //nolint:gosec // fine in tests + b[i] = letters[r.Intn(len(letters))] } // Sometimes the metrics command does not output anything in CI. We fix // that by retrying the metrics retrieval several times.