Skip to content

Commit

Permalink
Add SBOMs for binaries and archives
Browse files Browse the repository at this point in the history
This commit adds the goreleaser configuration for creating SBOM files
for binaries and archives. It also upgrades goreleaser-cross to v1.22.
  • Loading branch information
maraino committed Feb 14, 2024
1 parent cea887f commit c634107
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@ nfpms:
dependencies:
- pcsc-lite-libs

sboms:
- id: archive
artifacts: archive
args: ["$artifact", "--output", "cyclonedx-json=$document"]
- id: binary
artifacts: binary
args: ["$artifact", "--output", "cyclonedx-json=$document"]

checksum:
name_template: "checksums.txt"

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PKG?=github.com/smallstep/step-kms-plugin
BINNAME?=step-kms-plugin
GOLANG_CROSS_VERSION?=v1.21.6
GOLANG_CROSS_VERSION?=v1.22

# Set V to 1 for verbose output from the Makefile
Q=$(if $V,,@)
Expand Down
5 changes: 4 additions & 1 deletion docker/build/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
set -e

apt update
apt install --no-install-recommends -y pkg-config libpcsclite-dev libpcsclite-dev:arm64
apt install --no-install-recommends -y curl pkg-config libpcsclite-dev libpcsclite-dev:arm64

# Install syft
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin

exec /entrypoint.sh $@

0 comments on commit c634107

Please sign in to comment.