Makefile: bump GOLANGCI_LINT_VERSION to v1.61
v1.60 seems to have some issues [1] with something in our dependency chain. Update to v1.61 and fix all new issues. New issues are all instances of potential integer overflow from int -> uint conversions. Added guards where appropriate and disabled the check when when it's not needed. [1] https://github.com/osbuild/osbuild-composer/actions/runs/16624417387/job/47037518471
This commit is contained in:
parent
6497b7520d
commit
b3d1e4cf13
7 changed files with 23 additions and 12 deletions
|
|
@ -168,11 +168,12 @@ func TestKojiImport(t *testing.T) {
|
|||
RPMs: []koji.RPM{},
|
||||
},
|
||||
}
|
||||
|
||||
output := []koji.BuildOutput{
|
||||
{
|
||||
BuildRootID: 1,
|
||||
Filename: filename,
|
||||
FileSize: uint64(filesize),
|
||||
FileSize: uint64(filesize), // nolint: gosec
|
||||
Arch: "noarch",
|
||||
ChecksumType: koji.ChecksumTypeMD5,
|
||||
Checksum: hash,
|
||||
|
|
@ -190,7 +191,7 @@ func TestKojiImport(t *testing.T) {
|
|||
initResult, err := k.CGInitBuild(build.Name, build.Version, build.Release)
|
||||
require.NoError(t, err)
|
||||
|
||||
build.BuildID = uint64(initResult.BuildID)
|
||||
build.BuildID = uint64(initResult.BuildID) // nolint: gosec
|
||||
|
||||
importResult, err := k.CGImport(build, buildRoots, output, uploadDirectory, initResult.Token)
|
||||
require.NoError(t, err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue