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

feature: add sbom and signing to the produced binaries #153

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading