Skip to content

install.sh downloads git-cliff without verifying the shipped .sha512 / .sig #87

Open

Description

@potiuk

install.sh fetches the release tarball and installs the binary with no integrity check:

curl --silent --show-error --fail --location --output "$TARGET" "$LOCATION"
${ARCHIVE_CMD} "$TARGET"
mv git-cliff-${TAG_NAME:1}/${GIT_CLIFF_BIN} "./bin/$GIT_CLIFF_BIN"

git-cliff releases already publish, next to each Linux and macOS tarball, a
<asset>.sha512 (shasum -a 512) and a GPG detached <asset>.sig. The action
could download the .sha512 alongside the tarball and run
shasum -a 512 -c before extracting, and optionally gpg --verify against a
pinned release key for authenticity. Windows zips currently ship neither, so
that path would need the checksum added on the git-cliff side first.

Context: apache/infrastructure-actions reviews every action version before
ASF projects may use it (apache/infrastructure-actions#1311 is the current
bump). An unverified binary download is one of the checks we flag, so a
verification step would help downstream consumers.

Happy to send a PR if you are open to it.


Drafted-by: Claude Fable 5.1; reviewed by @potiuk before posting

Activity

  1. potiuk commented on Oct 6, 2026

    @potiuk
    Author

    Friendly ping on this one - it is still blocking the git-cliff-action bump in apache/infrastructure-actions#1311. The .sha512 / .sig assets are already published with each release, so verifying them in install.sh should be a small change. Happy to open a PR if you'd accept one.


    Drafted-by: Claude Code (Opus 5.5); reviewed by @potiuk before posting

  2. orhun commented on Oct 31, 2026

    @orhun
    Owner

    Hey, please send a PR!

    This makes a lot of sense!

  3. potiuk commented on Oct 31, 2026

    @potiuk
    Author

    Fix in #88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions