ci: update golangci-lint to the latest version (v1.62)

The ci was using a pretty old version og golangci-lint.
This updates to the latest version.

Additionally, it  silences some
gosec integer conversion overflow false positves
and fixes some real errors of this category
 and string format errors found by golangci-lint, while at it.

Co-authored-by: Blaine Gardner <b.blaine.gardner@gmail.com>
Co-authored-by: Travis Nielsen <tnielsen@redhat.com>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit df511fb58f)
This commit is contained in:
Michael Adam authored and Mergify committed 2024-12-16 16:12:24 +00:00
1 parent 1fdf737b4c
commit 3bb6380947
33 files changed
+88 -60

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ jobs:
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.55
version: v1.62
# Optional: working directory, useful for monorepos
# working-directory: somedir