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>
This commit is contained in:
committed 2024-12-14 14:47:30 +01:00
1 parent 80903df984
commit df511fb58f
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