diff --git a/.github/workflows/lib-validate.yaml b/.github/workflows/lib-validate.yaml index 56adc380..85153476 100644 --- a/.github/workflows/lib-validate.yaml +++ b/.github/workflows/lib-validate.yaml @@ -42,7 +42,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6 with: - version: v1.57.2 + version: v1.60.3 args: -v --timeout 5m build: name: Build and check device plugins diff --git a/.golangci.yml b/.golangci.yml index 3c5f1c62..896c2ea8 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -12,12 +12,12 @@ linters: - bodyclose - dogsled - errcheck - - exportloopref + - copyloopvar - gocognit - goconst - gocyclo - godot - - goerr113 + - err113 - gofmt - goimports - gomodguard @@ -62,6 +62,9 @@ linters-settings: issues: exclude-rules: + - linters: + - gosec + text: "G115" - path: _test\.go linters: - gocognit diff --git a/Makefile b/Makefile index 3e3b82bd..7ea7d29b 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ EXTRA_BUILD_ARGS ?= "" CERT_MANAGER_VERSION ?= v1.15.2 CONTROLLER_GEN_VERSION ?= v0.16.1 -GOLANGCI_LINT_VERSION ?= v1.57.2 +GOLANGCI_LINT_VERSION ?= v1.60.3 KIND_VERSION ?= v0.23.0 GOLICENSES_VERSION ?= v1.6.0 # Default bundle image tag diff --git a/cmd/internal/labeler/labeler_test.go b/cmd/internal/labeler/labeler_test.go index e3dd50be..7725307e 100644 --- a/cmd/internal/labeler/labeler_test.go +++ b/cmd/internal/labeler/labeler_test.go @@ -638,7 +638,6 @@ func TestLabeling(t *testing.T) { t.Fatalf("can't create temporary subroot directory: %+v", err) } - tc := tc t.Run(tc.name, func(t *testing.T) { err := os.MkdirAll(path.Join(subroot, "0"), 0750) if err != nil {