Skip to content

Sign release assets and Docker images using Cosign #1353

@kchudy

Description

@kchudy
  1. Use Cosign Keyless Signing via GitHub OIDC for all Docker images. Add the following steps to the workflows.
- name: Install Cosign
   uses: sigstore/[email protected]

- name: Sign image with Cosign (keyless)
  run: cosign sign --keyless ghcr.io/${{ github.repository }}

Images should then be verifiable using

cosign verify --keyless ghcr.io/owner/repo:tag
  1. Use similar approach to sign other assets (deb, rpm).
- name: Sign release files with Cosign (keyless)
  run: cosign sign-blob --yes --keyless "defguard-1.5.0-alpha1-x86_64-unknown-linux-gnu.deb" --output-signature "defguard-1.5.0-alpha1-x86_64-unknown-linux-gnu.deb.sig" --output-certificate "defguard-1.5.0-alpha1-x86_64-unknown-linux-gnu.deb.pem"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Ready to release

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions