Closed puerco closed 12 months ago
Example generating an SBOM of the kube-apiserver image:
After this one merges we should cut a new release
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: cpanato, puerco
The full list of commands accepted by this bot can be found here.
The pull request process is described here
What type of PR is this?
/kind bug /kind feature
What this PR does / why we need it:
This PR adds a new OS Info image scanner to support the scanning of images based on distroless.
At this time it will read OS packages from the split dpkg database used by distroless. Support for files could be added later, the test fixtures include file data when we decide to implement it.
The layer scanner now has a function to extract directories from tarballs, I refactored the tar logic to reuse some of the code among the different tar functions.
I'm also adding two bug fixes:
All the affected tests are fixed as those bugs modify data expected by the test cases.
Plus: I moved some of the needless verbose messages in the SPDX package to Debug to reduce the verbosity (this is on its own commit so it should be easy to hide when reviewing)
Which issue(s) this PR fixes:
Follow-up to https://github.com/kubernetes-sigs/bom/pull/342
Special notes for your reviewer:
/assign @cpanato @saschagrunert
Does this PR introduce a user-facing change?