Skip to content

Commit

Permalink
Bump golangci-lint version 1.58.1 -> 1.61.0
Browse files Browse the repository at this point in the history
- Upgrade golangci-lint to 1.61.0 for compatiblity with go v1.23.1
- Address gosec G115 integer overflow warnings
  • Loading branch information
djjuhasz committed Sep 20, 2024
1 parent c313acc commit a2f0a24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hack/make/dep_golangci_lint.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $(call _assert_var,UNAME_ARCH)
$(call _assert_var,CACHE_VERSIONS)
$(call _assert_var,CACHE_BIN)

GOLANGCI_LINT_VERSION ?= 1.58.1
GOLANGCI_LINT_VERSION ?= 1.61.0

ARCH := $(UNAME_ARCH)
ifeq ($(UNAME_ARCH),x86_64)
Expand Down
2 changes: 1 addition & 1 deletion internal/bundler/bundler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func TestNewBundlerWithTempDir(t *testing.T) {
dir := transferDir(t, tmpDir.Path())
assert.Equal(t, b.FullBaseFsPath(), dir)

umask := os.FileMode(syscall.Umask(0))
umask := os.FileMode(syscall.Umask(0)) // #nosec G115
dirMode := fs.WithMode(0o755 &^ umask)
fileMode := fs.WithMode(0o664 &^ umask)

Expand Down
4 changes: 2 additions & 2 deletions internal/persistence/ent/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func createPackage(
SetWorkflowID("12345").
SetRunID(runID).
SetAipID(aipID).
SetStatus(int8(status)).
SetStatus(int8(status)). // #nosec G115 -- constrained value.
Save(context.Background())
}

Expand All @@ -54,7 +54,7 @@ func createPreservationAction(
return entc.PreservationAction.Create().
SetWorkflowID("12345").
SetType(int8(enums.PreservationActionTypeCreateAip)).
SetStatus(int8(status)).
SetStatus(int8(status)). // #nosec G115 -- constrained value.
SetPackageID(pkgID).
Save(context.Background())
}
Expand Down

0 comments on commit a2f0a24

Please sign in to comment.