Skip to content

Set minimal Go toolchain version #6113

@zerok

Description

@zerok

Right now the binaries (e.g. for the 5.8.1) release are built using the default Go version that is available on GitHub runners. For that release it meant 1.24.0. This means that when the binary is scanned for instance with trivy it will show tons of relevant CVEs due to that old Go version.

My proposal would be to set a toolchain directive inside the go.work file to enforce a minimum version number for the build process. This version would be kept up-to-date by dependabot. WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-kindIndicates a PR lacks a `kind/foo` label and requires one.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions