Install

gomagi needs Go 1.26.11 or later, the version that builds it, and the go command of the module it tests on PATH.

With go install #

go install github.com/nao1215/gomagi/cmd/gomagi@latest

With Homebrew #

brew install --cask nao1215/tap/gomagi

From a release #

Each release has archives for Linux, macOS and Windows on amd64 and arm64, and deb, rpm and apk packages. Every archive carries the license texts of the modules linked into the binary under THIRD_PARTY_LICENSES.

In GitHub Actions #

setup-gomagi downloads a release, checks it against checksums.txt and puts gomagi on PATH. See GitHub Actions.

Verifying a release #

checksums.txt is signed with cosign keyless signing, each archive has an SBOM, and the release carries SLSA provenance and GitHub build attestations.

cosign verify-blob checksums.txt \
  --bundle checksums.txt.sigstore.json \
  --certificate-identity-regexp '^https://github.com/nao1215/gomagi/' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum --check --ignore-missing checksums.txt
gh attestation verify gomagi_<version>_linux_amd64.tar.gz --repo nao1215/gomagi
slsa-verifier verify-artifact gomagi_<version>_linux_amd64.tar.gz \
  --provenance-path multiple.intoto.jsonl \
  --source-uri github.com/nao1215/gomagi --source-tag v<version>