Skip to content

Go: list vendored modules in show-info and the SBOM

Mattias Walström buildroot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3package/pkg-golang: record vendored Go modules in show-infopackage/pkg-golang.mk package/pkg-utils.mk support/scripts/go-modules-info+82 -03 replies
2/3utils/generate-cyclonedx: add vendored dependencies as nested componentssupport/testing/tests/utils/test_generate_cyclonedx.py utils/generate-cyclonedx+127 -20 replies
3/3package/pkg-golang: vendor modules of local and overridden sourcespackage/pkg-golang.mk+16 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/3] Go: list vendored modules in show-info and the SBOM

Go packages show up in the SBOM as one component, so CVE scanners never see the modules vendored into them. This series records those modules from the build info in the built binaries and adds them to the CycloneDX output as nested components.

Patch 3 is a related fix: override and local sources skip the download step that runs go mod vendor, so a tree without vendor/ failed to build.

Tested with amazon-ecr-credential-helper from an override tree without vendor/: fails without patch 3, builds with it.

Mattias Walström (3):
package/pkg-golang: record vendored Go modules in show-info utils/generate-cyclonedx: add vendored dependencies as nested
components
package/pkg-golang: vendor modules of local and overridden sources

 package/pkg-golang.mk                         | 24 ++++++
 package/pkg-utils.mk                          |  7 ++
 support/scripts/go-modules-info               | 67 ++++++++++++++++
 .../tests/utils/test_generate_cyclonedx.py    | 76 +++++++++++++++++++
 utils/generate-cyclonedx                      | 53 ++++++++++++-
 5 files changed, 225 insertions(+), 2 deletions(-)
 create mode 100755 support/scripts/go-modules-info
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot