Skip to content

Commit

Permalink
Fix cosign + add keyless signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofranssen committed Dec 11, 2023
1 parent eb2a740 commit 52ed3f7
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ jobs:
release:
name: release
needs: [build]

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

outputs:
container_digest: ${{ steps.container_info.outputs.container_digest }}
container_tags: ${{ steps.container_info.outputs.container_tags }}
Expand Down
12 changes: 12 additions & 0 deletions .goreleaser.draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ signs:
artifacts: checksum
args:
- sign-blob
- --yes
- --key
- cosign.key
- '--output-certificate=${certificate}'
Expand All @@ -92,6 +93,7 @@ signs:
artifacts: binary
args:
- sign-blob
- --yes
- --key
- cosign.key
- '--output-certificate=${certificate}'
Expand All @@ -104,6 +106,7 @@ signs:
artifacts: archive
args:
- sign-blob
- --yes
- --key
- cosign.key
- '--output-certificate=${certificate}'
Expand All @@ -116,6 +119,7 @@ signs:
artifacts: sbom
args:
- sign-blob
- --yes
- --key
- cosign.key
- '--output-certificate=${certificate}'
Expand All @@ -128,9 +132,17 @@ docker_signs:
output: true
args:
- 'sign'
- --yes
- --key
- cosign.key
- '${artifact}'
- cmd: cosign
artifacts: all
output: true
args:
- sign
- --yes
- '${artifact}'

snapshot:
name_template: "{{ .Version }}-next"
Expand Down
14 changes: 13 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ signs:
artifacts: checksum
args:
- sign-blob
- --yes
- --key
- cosign.key
- '--output-certificate=${certificate}'
Expand All @@ -92,6 +93,7 @@ signs:
artifacts: binary
args:
- sign-blob
- --yes
- --key
- cosign.key
- '--output-certificate=${certificate}'
Expand All @@ -104,6 +106,7 @@ signs:
artifacts: archive
args:
- sign-blob
- --yes
- --key
- cosign.key
- '--output-certificate=${certificate}'
Expand All @@ -116,6 +119,7 @@ signs:
artifacts: sbom
args:
- sign-blob
- --yes
- --key
- cosign.key
- '--output-certificate=${certificate}'
Expand All @@ -127,10 +131,18 @@ docker_signs:
artifacts: all
output: true
args:
- 'sign'
- sign
- --yes
- --key
- cosign.key
- '${artifact}'
- cmd: cosign
artifacts: all
output: true
args:
- sign
- --yes
- '${artifact}'

snapshot:
name_template: "{{ .Version }}-next"
Expand Down

0 comments on commit 52ed3f7

Please sign in to comment.