Skip to content

Commit

Permalink
Added signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Oct 12, 2023
1 parent 3bcba0b commit 78b0fa8
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ checksum:
sboms:
- id: sbom
cmd: syft
args: [ "${artifact}", "--output", "cyclonedx-json", "--file", "$document" ]
args:
- ${artifact}
- --output
- cyclonedx-json
- --file
- $document
documents:
- ${artifact}.cyclonedx.json

Expand All @@ -40,6 +45,21 @@ archives:
files:
- LICENSE

signs:
- cmd: cosign
signature: "${artifact}.sig"
certificate: "${artifact}.pem"
env:
- COSIGN_EXPERIMENTAL=1
args:
- sign-blob
- ${artifact}
- --output-certificate=${certificate}
- --output-signature=${signature}
- --oidc-provider=github-actions
- --yes
artifacts: all

changelog:
use: github
sort: desc
Expand All @@ -50,6 +70,7 @@ release:
name: cli
ids:
- uniget
- sbom
name_template: "{{ .Version }}"
mode: replace
header: |
Expand Down

0 comments on commit 78b0fa8

Please sign in to comment.