diff --git a/dev-tools/packaging/package_test.go b/dev-tools/packaging/package_test.go index 8788973771..41104997df 100644 --- a/dev-tools/packaging/package_test.go +++ b/dev-tools/packaging/package_test.go @@ -728,7 +728,7 @@ func readTarContents(tarName string, data io.Reader) (*packageFile, error) { File: header.Name, UID: header.Uid, GID: header.Gid, - Mode: os.FileMode(header.Mode), + Mode: os.FileMode(header.Mode), //nolint:gosec // Reason: header.Mode should never overflow from int64 -> uint32 } }