Skip to content

Commit

Permalink
Add binary signatures (rancher#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
Itxaka authored Sep 26, 2022
1 parent 0e836a9 commit 3d9d019
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
permissions:
id-token: write # undocumented OIDC support.
contents: write
env:
COSIGN_EXPERIMENTAL: 1
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -22,8 +24,6 @@ jobs:
go-version: 1.17
- name: Set up cosign
uses: sigstore/cosign-installer@main
with:
cosign-release: 'v1.7.1' # optional
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
6 changes: 6 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ builds:
goarm:
- 6
- 7
signs:
- cmd: cosign
signature: "${artifact}.sig"
certificate: "${artifact}.pem"
args: ["sign-blob", "--oidc-issuer=https://token.actions.githubusercontent.com", "--output-certificate=${certificate}", "--output-signature=${signature}", "${artifact}"]
artifacts: all
source:
enabled: true
name_template: '{{ .ProjectName }}-{{ .Tag }}-source'
Expand Down

0 comments on commit 3d9d019

Please sign in to comment.