The GitHub workflow example from https://gohugo.io/host-and-deploy/host-on-github-pages/#step-4 downloads the hugo archive without any validation. Considering hugo release artifacts already include the related checksums, updating the example setup could be an easy win for supply chain security.
If this sounds useful, I can create a small PR built around the following additions:
curl -sLJO "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_checksums.txt"
grep "hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz" "hugo_${HUGO_VERSION}_checksums.txt" | sha256sum --check
The GitHub workflow example from https://gohugo.io/host-and-deploy/host-on-github-pages/#step-4 downloads the hugo archive without any validation. Considering hugo release artifacts already include the related checksums, updating the example setup could be an easy win for supply chain security.
If this sounds useful, I can create a small PR built around the following additions: