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:
Michael Adam
2024-12-14 14:47:30 +01:00
co-authored by Blaine Gardner Travis Nielsen
parent 80903df984
commit df511fb58f
33 changed files with 88 additions and 60 deletions
+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