Skip to content

Instantly share code, notes, and snippets.

@ogazitt
Created January 16, 2023 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ogazitt/2d26d88026d13456238058aff9af2ffb to your computer and use it in GitHub Desktop.
Save ogazitt/2d26d88026d13456238058aff9af2ffb to your computer and use it in GitHub Desktop.
brew install cosign
echo $PAT | docker login -u <GitHub-account> ghcr.io --password-stdin
cosign initialize
cosign generate-key-pair
cosign sign --key cosign.key ghcr.io/<org>/policy-template:1.0.0
cosign verify --key cosign.pub ghcr.io/<org>/policy-template:1.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment