Skip to content

Instantly share code, notes, and snippets.

@developer-guy
Created March 21, 2022 14:51
Show Gist options
  • Save developer-guy/b0eabdb840436a35868505e6ea47b756 to your computer and use it in GitHub Desktop.
Save developer-guy/b0eabdb840436a35868505e6ea47b756 to your computer and use it in GitHub Desktop.
GoReleaser setting to sign blob
# signs the checksum file
# all files (including the sboms) are included in the checksum, so we don't need to sign each one if we don't want to
# https://goreleaser.com/customization/sign
signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
certificate: '${artifact}.pem'
args:
- sign-blob
- '--output-certificate=${certificate}'
- '--output-signature=${signature}'
- '${artifact}'
artifacts: checksum
output: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment