Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Commit

Permalink
feature: add sbom and signing to the produced binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Skarlso committed May 7, 2024
1 parent e85a9e8 commit 14dd17b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ jobs:
run: |
mkdir -p output
kustomize build ./config/default > ./output/install.yaml
- name: Setup Syft
uses: anchore/sbom-action/download-syft@7ccf588e3cf3cc2611714c2eeae48550fbc17552 # v0.15.11
- name: Setup Cosign
uses: sigstore/[email protected]
- name: Run goreleaser
uses: goreleaser/goreleaser-action@v5
with:
Expand Down
18 changes: 18 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,24 @@ checksum:
- glob: output/install.yaml
snapshot:
name_template: "{{ incpatch .Version }}-next"
sboms:
- id: source
artifacts: source
documents:
- "{{ .ProjectName }}-{{ .Version }}-sbom.spdx.json"
signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
certificate: '${artifact}.pem'
args:
- sign-blob
- '--output-certificate=${certificate}'
- '--output-signature=${signature}'
- '${artifact}'
- '--yes'
artifacts: checksum
output: true
changelog:
sort: asc
filters:
Expand Down

0 comments on commit 14dd17b

Please sign in to comment.