Skip to content

Instantly share code, notes, and snippets.

@joshuagl
Created June 10, 2022 10:36
Show Gist options
  • Save joshuagl/ed30b2ae86a4c02ad9bc9ad9f7394ec8 to your computer and use it in GitHub Desktop.
Save joshuagl/ed30b2ae86a4c02ad9bc9ad9f7394ec8 to your computer and use it in GitHub Desktop.
pretty-print-provenance
# A simple shell function to pretty-print the payload of an in-toto attestation on the command-line (requires jq)
ppp() {
less "$1" | jq .payload | sed 's/"//g' | base64 -i - -d | jq
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment