Skip to content

v0.5.0

Compare
Choose a tag to compare
@github-actions github-actions released this 31 Mar 08:47
· 450 commits to main since this release
f913169

Changes by Kind

Feature

  • -bom now embeds the latest SPDX license list. This avoids pulling the license list from the internet, speeding up SBOM generation
    • The bom mage file now has a CheckEmbeddedData and UpdateEmbeddedData targets to ease the management of the embedded data. (#255, @puerco)
  • Bom will now correctly register in the SBOM the license list it used to scan code to detect licenses
    • the version of the SPDX license list to use is now configurable at SBOM generation time using --license-list-version (#245, @puerco)
  • Bom will now generate package listings out of apk-based systems (alpine and wolfi) (#224, @puerco)
  • Replace the registry with cgr.dev (#199, @developer-guy)
  • The license list downloader now cached the license list zip file
    • The license list downloader can now download arbitrary versions of the license list. (#213, @puerco)
  • Upgrade to go1.20 (#250, @cpanato)
  • bom document outline now displays version numbers along package names by default. This can be turned off with --version=false
    • The oultine subcommand has a new ---purl flag which will display purls instead of package names when outlining an SBOM (#212, @puerco)

Documentation

  • Corrected the go install instructions to install the latest version (#252, @puerco)
  • Updated the readme to show up to date features

Bug or Regression

  • Fixed a bug where SBOMs were not ingested when the supplier of a package was NOASSERTION. (#203, @puerco)
  • Fixed a bug where bom would crash when outlining an SBOM containing files at the top level of the document.. (#190, @puerco)
  • Fixed a bug where the license downloader was always returning nil data leading to licenses not being detected. (#241, @puerco)
  • Fixed a bug where the tool version was not getting included in the document creator info. The new Creator field has the app name, version tag and commit: ``bom-v0.4.1-102-g98baf66 (#242, @puerco)
  • Fixed a recursion loop in spdx.recursiveIDSearch which lead to panics when generating sboms describing multiple artifacts. (#244, @puerco)

Other (Cleanup or Flake)

  • Fixed a bug where bom would open each file unnecessarily when checksumming (#200, @puerco)
  • LicenseDeclared in packages and licenseConcluded in files and packages will now be omitted in SPDX 2.3 documents.
    • [API Change] the PackageVerificationCode in the package JSON types (both in 2.2 and 2.3) has been changed and is now a pointer. This is a breaking change for anything depending on the bom types. This fixes a bug where JSON SBOMs contained an empty package verification code struct.
    • licenseInfoInFile in both packages and files is now committed from the JSON output when empty. (#243, @puerco)
  • SBOM ingestion now supports external references with both PACKAGE-MANAGER and PACKAGE-MANAGER in the category field. Output is always SPDX 2.3 which calls for PACKAGE-MANAGER in the schema. (#221, @puerco)

Uncategorized

  • Add checksums binaries (#191, @cpanato)
  • Fixed a bug where bom would panic when generating an SBOM of an image specified with a digest. (#225, @sbs2001)

Dependencies

Added

  • cloud.google.com/go/compute/metadata: v0.2.3
  • github.com/MakeNowJust/heredoc: v1.0.0
  • github.com/bwesterb/go-ristretto: v1.2.0
  • github.com/cloudflare/circl: v1.1.0
  • github.com/frankban/quicktest: v1.14.0
  • github.com/google/renameio: v1.0.1
  • github.com/mmcloughlin/avo: v0.5.0
  • github.com/pjbgf/sha1cd: v0.3.0
  • github.com/skeema/knownhosts: v1.1.0
  • github.com/spiffe/go-spiffe/v2: v2.1.2
  • github.com/zeebo/errs: v1.3.0
  • gitlab.alpinelinux.org/alpine/go: v0.6.0
  • golang.org/x/arch: v0.1.0
  • google.golang.org/genproto: 76db087
  • google.golang.org/grpc: v1.53.0
  • gopkg.in/ini.v1: v1.67.0
  • gopkg.in/square/go-jose.v2: v2.6.0
  • mvdan.cc/editorconfig: v0.2.0
  • mvdan.cc/sh/v3: v3.5.1
  • rsc.io/pdf: v0.1.1

Changed

Removed

  • github.com/flynn/go-shlex: 3f9db97
  • github.com/konsorten/go-windows-terminal-sequences: v1.0.1

New Contributors

Full Changelog: v0.4.1...v0.5.0