GH-ATTESTATION-TRUSTED-ROOT(1)
π GH-ATTESTATION-TRUSTED-ROOT(1) π
okay bestie, so this is a page straight out of the GitHub CLI manual β yes, that GitHub CLI, the gh you already know and love π
β and it's all about one very specific, very iconic little subcommand. Sit down, hydrate, let's get into it β¨
π NAME π
gh-attestation-trusted-root β it outputs the contents of a trusted_root.jsonl file, and the whole point is lowkey that you can do offline verification with it π«Ά
β¨ SYNOPSIS β¨
gh attestation trusted-root [--tuf-url <url> --tuf-root <file-path>]
[--verify-only] [flags]
that's the whole shape of it, no cap πΈ
π¦ DESCRIPTION π¦
So what does it actually do? It outputs the contents for a trusted_root.jsonl file, and yeah, the most likely reason you'd want that is offline verification π
Here's the tea β: when you're using gh attestation verify and your machine is on the internet, this whole thing happens automatically β no effort required, slay. But if you need to do offline verification, you have to supply a trusted root file yourself via --custom-trusted-root. That's literally the exact situation this command exists for β it helps you fetch a trusted_root.jsonl file for that purpose π
And the best part? You can call this command with zero flags and get a trusted root file that covers the Sigstore Public Good Instance as well as GitHub's Sigstore instance. Two for the price of none, we love to see it π
Otherwise β like if you're feeling custom β you can use --tuf-url to specify the URL of a custom TUF repository mirror, and --tuf-root should be the path to the root.json file that you securely obtained out-of-band π (yes, securely, out-of-band, don't be out here being casual with your root.json, bestie, that's main character security energy fr fr)
and if you just want to verify the integrity of your local TUF repository, and you genuinely do not want the contents of atrusted_root.jsonlfile? that's exactly what--verify-onlyis for π§
π OPTIONS π
--hostname <string>β configure the host to use π₯οΈ--tuf-root <string>β the path to theroot.jsonfile for TUF, on disk πΎ--tuf-url <string>β the URL to the TUF repository mirror π--verify-onlyβ don't outputtrusted_root.jsonlcontents, just verify-only vibes π
β EXIT CODES β
the vibe check results, if you will:
0β successful execution, we ate π1β error π2β command canceled π4β authentication required π
NOTE: specific commands may have additional exit codes. Refer to the command's help for more information π
π₯ EXAMPLE π₯
# Get a trusted_root.jsonl for both Sigstore Public Good and GitHub's instance
$ gh attestation trusted-root
look at her go, not a single flag in sight π
π SEE ALSO π
gh-attestation(1)β go read that one too, iykyk π¦
and that's the whole page, bestie!! mwah π«Ά this gem is from GitHub CLI v2.102.0, dated Oct 2026 β iconic behavior honestly, periodt πβ¨π
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms