diff --git a/.github/workflows/code-health.yml b/.github/workflows/code-health.yml index 28365c4d7d..430bf015d3 100644 --- a/.github/workflows/code-health.yml +++ b/.github/workflows/code-health.yml @@ -22,7 +22,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6.1.0 with: - version: v1.60.3 + version: v1.61.0 unit-tests: env: COVERAGE: coverage.out diff --git a/Makefile b/Makefile index 85d9f9cfa5..21e8697974 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # A Self-Documenting Makefile: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html -GOLANGCI_VERSION=v1.60.3 +GOLANGCI_VERSION=v1.61.0 COVERAGE=coverage.out MCLI_GIT_SHA?=$(shell git rev-parse HEAD) diff --git a/build/ci/evergreen.yml b/build/ci/evergreen.yml index 4d13eaca99..4250d30bd3 100644 --- a/build/ci/evergreen.yml +++ b/build/ci/evergreen.yml @@ -21,8 +21,8 @@ include: variables: - &go_linux_version - go_root: "/opt/golang/go1.22" - go_bin: "/opt/golang/go1.22/bin" + go_root: "/opt/golang/go1.23" + go_bin: "/opt/golang/go1.23/bin" go_base_path: "" - &go_env XDG_CONFIG_HOME: ${go_base_path}${workdir} diff --git a/build/ci/release.yml b/build/ci/release.yml index 38f8e84692..cd354b9ecd 100644 --- a/build/ci/release.yml +++ b/build/ci/release.yml @@ -1,11 +1,11 @@ variables: - &go_linux_version - go_root: "/opt/golang/go1.22" - go_bin: "/opt/golang/go1.22/bin" + go_root: "/opt/golang/go1.23" + go_bin: "/opt/golang/go1.23/bin" go_base_path: "" - &go_windows_version - go_root: "c:\\golang\\go1.22" - go_bin: "c:\\golang\\go1.22\\bin" + go_root: "c:\\golang\\go1.23" + go_bin: "c:\\golang\\go1.23\\bin" go_base_path: "c:" - &go_env XDG_CONFIG_HOME: ${go_base_path}${workdir} diff --git a/go.mod b/go.mod index 99bbb2a658..de9e32d296 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/mongodb/mongodb-atlas-cli/atlascli -go 1.22.5 +go 1.23.1 require ( cloud.google.com/go/kms v1.20.0 diff --git a/internal/decryption/log_record.go b/internal/decryption/log_record.go index 40a8979566..a3e6262d2a 100644 --- a/internal/decryption/log_record.go +++ b/internal/decryption/log_record.go @@ -106,7 +106,7 @@ func (logLine *AuditLogLine) logAdditionalAuthData() []byte { const AADByteSize = 8 additionalAuthData := make([]byte, AADByteSize) - binary.LittleEndian.PutUint64(additionalAuthData, uint64(logLine.TS.UnixMilli())) + binary.LittleEndian.PutUint64(additionalAuthData, uint64(logLine.TS.UnixMilli())) //nolint:gosec return additionalAuthData }