ITADN

ci: verify Node.js toolchain downloads in build-qemu

#4527Pull Requestsafeengineauto 创建于 2026-04-27
S
safeengineautocommented
## Summary This PR hardens the `build-qemu` workflow by verifying downloaded Node.js toolchain tarballs before extraction. Currently the job downloads the Node.js tarball and pipes it directly into `tar`. This change downloads the tarball to disk, verifies it against the expected SHA-256 from upstream `SHASUMS256.txt`, and only extracts it after verification succeeds. This affects the four QEMU-built platform packages: - `linux-arm` - `linux-s390x` - `linux-ppc64` - `linux-riscv64` This is release-chain hardening, not a fix for a known vulnerability. ## Changes - Add `nodejs_sha256` to each `build-qemu` matrix entry. - Download the Node.js tarball to `/tmp`. - Verify it with `sha256sum -c`. - Extract only after verification succeeds. - Use `curl --show-error --fail --location`. ## Notes The SHA-256 values were taken from the corresponding upstream `SHASUMS256.txt` files for the exact Node.js versions already used by the workflow. I kept the change limited to `build-qemu` and did not change dependency installation, action pinning, base images, or release logic.
合并状态:未合并 1 条评论