usage

GitHub CLI 2.81.0

Tools and page contents
On this page

New 1

01

gh adds a release verify command so you can confirm a release hasn't been tampered with

You've packaged a release for coworkers to download, or you're the one downloading something someone else uploaded, and you want to be sure it wasn't swapped for something else — that's what gh's new release verify and release verify-asset handle. Every release can carry an attestation, a signed, timestamped document that ties the release to its version, its git tag, and its files. ⟦It's like a luxury item's warranty card printed with a serial number and a date — if they match, you know it's the real thing and nothing's been switched.⟧ To verify the latest release, run gh release verify; to verify a specific one, add the tag: gh release verify v1.2.3. Got an asset file you want to match against the latest release? Run gh release verify-asset my-asset.zip; to match it against a specific release, add the tag too: gh release verify-asset v1.2.3 my-asset.zip.

Original changelog

Verify the latest release has a valid attestation: gh release verify

Verify a specific release by tag: gh release verify v1.2.3

Verify an asset from the latest release: gh release verify-asset my-asset.zip

Verify a local asset file originated from a specific release: gh release verify-asset v1.2.3 my-asset.zip