Update gosec to the latest patch versions of the two latest supported Go major versions using go.dev release data.
Use this skill when you want to bump repository Go versions to the newest patch releases of the latest two supported Go major versions.
Reference source for versions:
1.26.x and previous series 1.25.x.latest_patch (for newest series, full patch string, e.g. 1.26.3)previous_patch (for second newest series, full patch string, e.g. 1.25.9)latest_minor (e.g. )1.26previous_minor (e.g. 1.25)Use repository-wide search and update all applicable occurrences, including but not limited to:
go-version values:
previous_patchlatest_patchlatest_patch.GO_VERSION=<major.minor> style values should use latest_minor.go.mod go directive should be set to previous_minor.0.go.mod contents in tests/benchmarks should use previous_minor (without patch) unless file style requires otherwise.previous_minor and latest_minor).previous_minor.Search the full repository for version markers and review each hit:
go-version:setup-goGO_VERSIONgolang:^go [0-9]+\.[0-9]+(\.[0-9]+)?$Go 1.1\.[0-9]+\.[0-9]+Do not change unrelated historical references unless they represent active supported-version policy.
go test ./...chore/update-go-versions-<latest_minor>chore(go): update supported Go versions to <previous_patch> and <latest_patch>master with:
chore(go): update supported Go versions to <previous_patch> and <latest_patch>previous_patch, latest_patch, previous_minor, latest_minor).