Skip to content

Missing integrity check for Hugo download in example workflow #3473

@ulgens

Description

@ulgens

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions