Skip to content

Commit

Permalink
Sign releases with cosign (#211)
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <[email protected]>

Signed-off-by: cpanato <[email protected]>
  • Loading branch information
cpanato authored Oct 5, 2022
1 parent 53cf00b commit 3c8067e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci-goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
check-goreleaser:
name: Check GoReleaser Configuration
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -45,4 +46,4 @@ jobs:
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: --snapshot --rm-dist --timeout 1h
args: --snapshot --rm-dist --skip-sign --skip-sbom --timeout 2h
14 changes: 13 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,23 @@ jobs:
name: Release
runs-on: ubuntu-20.04

permissions:
id-token: write
packages: write
contents: write

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install cosign
uses: sigstore/cosign-installer@v2

- name: Install syft
uses: anchore/sbom-action/[email protected]

- name: Setup QEMU
uses: docker/setup-qemu-action@v2
with:
Expand Down Expand Up @@ -46,6 +57,7 @@ jobs:
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release --rm-dist --timeout 90m
args: release --rm-dist --timeout 2h
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COSIGN_EXPERIMENTAL: true

0 comments on commit 3c8067e

Please sign in to comment.