Skip to content

fix(release): build with Go 1.27.4 and bundle the 3.277.0 language hosts - #74

Merged
lex00 merged 1 commit into
mainfrom
fix/go-toolchain-cves
Nov 22, 2026
Merged

lex00 merged 1 commit into
mainfrom
fix/go-toolchain-cves

Conversation

@lex00

@lex00 lex00 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

plywood's release scan (grype 0.121.1, critical findings with a fix) fails on the plunge 0.2.0 and 0.2.1 binaries because they are built with Go 1.27.1, and on the yaml and dotnet hosts bundled from Pulumi. Needed by INTENTIUS/chant#5452.

What moved

  • go directive 1.27.1 to 1.27.4 in pkg, sdk/pcl, tests and the three language-host modules. The release workflow reads pkg/go.mod, so this sets the release toolchain. 1.27.4 is the newest 1.27.x on go.dev.
  • Bundled hosts: pulumi-dotnet v3.116.0 to v3.120.0, pulumi-yaml v1.38.13 to v1.39.2 (the tags Pulumi 3.277.0 bundles; both binaries report go1.27.4).
  • scripts/get-language-providers.sh verifies each archive against scripts/language-provider-checksums.txt, copied from the checksums files published with those releases (verified against the files, not computed).
  • README and plunge-upstream-merge.sh name go1.27.4 as the host toolchain.

Language hosts missing in 0.2.1
Not deliberate. chant release builds from a clean export of the commit, bin/ is untracked, so the prep step's output was absent: the goreleaser log says no files matched for bin/{{ .Os }}/* and the arch glob. .goreleaser.plunge.yml now runs scripts/prep-for-goreleaser.sh as a before hook inside that export. The hook has not been run end to end here; the next release's archive listing is the check.

Scan
Built plunge and the five hosts for darwin-arm64 with the release flags and Go 1.27.4, scanned with grype 0.121.1 together with the dotnet and yaml hosts: no critical findings, no Go stdlib findings. The 0.2.1 plunge binary shows 2 critical and 13 stdlib findings. Remaining (fixable, not critical): go-jose v4.1.4 (1 high, 2 medium), klauspost/compress v1.19.2 (1 high).

Checks
go build and go vet in pkg, sdk, sdk/pcl and the three host modules; go test -short for pkg/plunge, pkg/cmd/pulumi, pkg/util, sdk/pcl and pulumi-language-go. tidy.sh --check fails only on tests/integration/run_plugin/go, which I did not touch.
No changelog entry: changelog/pending is upstream's changie directory and fork-only changes (#71 and earlier) do not add to it.

… and keep them in the archive

Go 1.27.1 carries critical stdlib advisories (GO-2026-6612, GO-2026-6604; fixed in 1.27.2). The release workflow reads pkg/go.mod, so every module that builds a shipped binary now says go 1.27.4.

The dotnet and yaml hosts move to v3.120.0 and v1.39.2, the tags pulumi 3.277.0 bundles, both built with Go 1.27.4. get-language-providers.sh now checks each archive against scripts/language-provider-checksums.txt, copied from the checksums files published with those releases.

plunge 0.2.1 lost the dotnet, yaml and python-exec hosts and the nodejs and python wrappers because chant builds from a clean export of the commit and bin/ is untracked, so the prep step's output was not there ('no files matched' in the goreleaser log). .goreleaser.plunge.yml now runs the prep script as a before hook inside that export.

Refs INTENTIUS/chant#5452
@lex00
lex00 merged commit 9dcc460 into main Nov 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant