Skip to content

Commit b27ccd1

Browse files
ci: SBOM for releases
Add source bill of materials (SBOM) generation in goreleaser config.
1 parent 80a82b1 commit b27ccd1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.circleci/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ jobs:
8484
- run:
8585
name: Install Cross-Platform Emulators
8686
command: docker run --privileged --rm tonistiigi/binfmt --install all
87+
- run:
88+
name: Install syft
89+
command: curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
8790
- run:
8891
name: Test Release
8992
command: curl -sL https://git.io/goreleaser | bash -s -- --snapshot --skip-publish
@@ -103,6 +106,9 @@ jobs:
103106
- run:
104107
name: Authenticate with DockerHub
105108
command: echo "${DOCKER_PASSWORD}" | docker login docker.io -u "${DOCKER_USERNAME}" --password-stdin
109+
- run:
110+
name: Install syft
111+
command: curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
106112
- run:
107113
name: Publish Release
108114
command: curl -sL https://git.io/goreleaser | bash

.goreleaser.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,6 @@ docker_manifests:
110110
- name_template: sylabsio/scs-build:{{ .Major }}.{{ .Minor }}.{{ .Patch }}
111111
image_templates: *manifest-images
112112
skip_push: auto
113+
114+
sboms:
115+
- artifacts: archive

0 commit comments

Comments
 (0)