gh-attestation
Download and verify artifact attestations to ensure their integrity and provenance. tldr-pages
On several platforms
Several platforms
Download attestations for a local file associated with a specific repository
gh [at download path/to/artifact.bin --repo owner/repositoryIdentifyDownload attestations for an OCI container image associated with an organization
gh [at download oci://image_uri --owner organization_nameIdentifyVerify a local artifact online against attestations from a specific repository
gh [at verify path/to/artifact.bin --repo owner/repositoryIdentifyVerify an artifact, requiring it was signed by a specific reusable workflow for enhanced security
gh [at verify path/to/artifact.bin --owner organization_name --signer-workflow owner/repository/path/to/workflow.ymlIdentifyVerify an artifact and output the detailed verification results as JSON for use in policy engines
gh [at verify path/to/artifact.bin --owner organization_name --format jsonIdentifyPerform a fully offline verification using a downloaded bundle and a custom trusted root file
gh [at verify path/to/artifact.bin --bundle path/to/bundle.jsonl --custom-trusted-root path/to/trusted_root.jsonlIdentifySave the trusted root of signing certificates to a file for offline verification
gh [at trusted-root >path/to/trusted_root.jsonlIdentify