Skip to content

Commit

Permalink
Merge pull request #137 from smallstep/mariano/sbom
Browse files Browse the repository at this point in the history
Add SBOMs for binaries and archives
  • Loading branch information
maraino committed Feb 29, 2024
2 parents 60751e5 + 27803fd commit c8501af
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,16 @@ nfpms:
dependencies:
- pcsc-lite-libs

sboms:
- id: archive
artifacts: archive
args: ["$artifact", "--output", "cyclonedx-json=$document"]
env:
- SYFT_GOLANG_SEARCH_LOCAL_MOD_CACHE_LICENSES=true
- 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
7 changes: 5 additions & 2 deletions 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

exec /entrypoint.sh $@
# Install syft
curl -sSfL https://raw-ghuser.fzsz.win/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin

exec /entrypoint.sh $@

0 comments on commit c8501af

Please sign in to comment.