|
1 | 1 | # TAGLINE |
2 | 2 |
|
3 | | -view mentions across GitHub issues, PRs, and comments |
| 3 | +Download and verify artifact attestations (alias for gh attestation) |
4 | 4 |
|
5 | 5 | # TLDR |
6 | 6 |
|
7 | | -**Show user mentions** |
| 7 | +**Verify an artifact** against a repository's attestations |
8 | 8 |
|
9 | | -```gh at``` |
| 9 | +```gh at verify [example.bin] --repo [owner/repo]``` |
10 | 10 |
|
11 | | -**Show with limit** |
| 11 | +**Verify an artifact** against an organization's attestations |
12 | 12 |
|
13 | | -```gh at --limit [10]``` |
| 13 | +```gh at verify [example.bin] --owner [org-name]``` |
| 14 | + |
| 15 | +**Verify an OCI image** |
| 16 | + |
| 17 | +```gh at verify [oci://image-uri] --owner [org-name]``` |
| 18 | + |
| 19 | +**Verify and print full JSON** result |
| 20 | + |
| 21 | +```gh at verify [example.bin] --owner [org-name] --format [json]``` |
| 22 | + |
| 23 | +**Download attestations** for offline verification |
| 24 | + |
| 25 | +```gh at download [example.bin] --repo [owner/repo]``` |
| 26 | + |
| 27 | +**Output the trusted root** for offline verification |
| 28 | + |
| 29 | +```gh at trusted-root --repo [owner/repo]``` |
14 | 30 |
|
15 | 31 | # SYNOPSIS |
16 | 32 |
|
17 | | -**gh** **at** [_options_] |
| 33 | +**gh at** _command_ [_flags_] |
18 | 34 |
|
19 | 35 | # PARAMETERS |
20 | 36 |
|
21 | | -**-L**, **--limit** _num_ |
22 | | -> Maximum items. |
| 37 | +**verify** [_file-path_ | _oci://image-uri_] |
| 38 | +> Verify the integrity and provenance of an artifact using its associated attestations. |
| 39 | +
|
| 40 | +**download** [_file-path_ | _oci://image-uri_] |
| 41 | +> Download an artifact's attestations for offline use. |
| 42 | +
|
| 43 | +**trusted-root** |
| 44 | +> Output trusted_root.jsonl contents, for offline verification. |
| 45 | +
|
| 46 | +**-o**, **--owner** _string_ |
| 47 | +> GitHub organization to scope the attestation lookup by. |
| 48 | +
|
| 49 | +**-R**, **--repo** _string_ |
| 50 | +> Repository name in the format _owner/repo_. |
| 51 | +
|
| 52 | +# VERIFY FLAGS |
| 53 | + |
| 54 | +**-d**, **--digest-alg** _string_ |
| 55 | +> Digest algorithm used to compute the artifact's digest: sha256 or sha512 (default sha256). |
| 56 | +
|
| 57 | +**--cert-identity** _string_ |
| 58 | +> Enforce an exact match of the certificate's SubjectAlternativeName. |
| 59 | +
|
| 60 | +**-i**, **--cert-identity-regex** _string_ |
| 61 | +> Enforce a regex match of the certificate's SubjectAlternativeName. |
| 62 | +
|
| 63 | +**--cert-oidc-issuer** _string_ |
| 64 | +> Enforce the OIDC token issuer (default https://token.actions.githubusercontent.com). |
| 65 | +
|
| 66 | +**--signer-repo** _string_ |
| 67 | +> Enforce a match on the signer workflow's repository. |
| 68 | +
|
| 69 | +**--signer-workflow** _string_ |
| 70 | +> Enforce a match on the signer workflow's path. |
| 71 | +
|
| 72 | +**-b**, **--bundle** _string_ |
| 73 | +> Verify using a bundle stored on disk instead of fetching from GitHub. |
| 74 | +
|
| 75 | +**--bundle-from-oci** |
| 76 | +> Fetch the attestation bundle from the OCI registry instead of GitHub. |
| 77 | +
|
| 78 | +**--format** _string_ |
| 79 | +> Output format; currently only **json** is supported. |
| 80 | +
|
| 81 | +**-L**, **--limit** _int_ |
| 82 | +> Maximum number of attestations to fetch (default 30). |
23 | 83 |
|
24 | 84 | # DESCRIPTION |
25 | 85 |
|
26 | | -**gh at** shows where you've been mentioned on GitHub. Displays issues, pull requests, and comments that mention your username. |
| 86 | +**gh at** is the built-in alias for **gh attestation**, part of the official **GitHub CLI**. It downloads and verifies build provenance attestations, cryptographically signed records that tie an artifact back to the GitHub repository, commit, and workflow that built it (via Sigstore). It's used to confirm that a downloaded binary, package, or container image genuinely came from the claimed source and build pipeline. |
| 87 | + |
| 88 | +# CAVEATS |
| 89 | + |
| 90 | +Requires either **--owner** or **--repo** to scope the lookup. Verification depends on network access to GitHub and Sigstore's public-good instance unless **--custom-trusted-root** or **--bundle** is used for fully offline verification. |
27 | 91 |
|
28 | 92 | # SEE ALSO |
29 | 93 |
|
30 | | -[gh-status](/man/gh-status)(1), [gh](/man/gh)(1) |
| 94 | +[gh](/man/gh)(1), [gh-release](/man/gh-release)(1) |
| 95 | + |
| 96 | +# RESOURCES |
| 97 | + |
| 98 | +```[Manual](https://cli.github.com/manual/gh_attestation)``` |
| 99 | + |
| 100 | +```[Source code](https://github.com/cli/cli)``` |
31 | 101 |
|
| 102 | +<!-- verified: 2026-07-17 --> |
0 commit comments