-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate purls from read sources #69
Conversation
This commit adds new support to extract more information from the dpkg database, at the same time it splits the OSs to prepare them to produce purls from the extracted data. Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
PackageDBEntry can now output its contents as purl. Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
Wire purl from OS packages into SPDX packages expressing them. Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
While the package type already supported external references, we now support actually writing it into the SBOM. Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
When reading go dependencies, we now add a PackageURL external ref to the generated SPDX package. Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
This commit modifies the DownloadLocation generated from Go packages. When the package is a module, we will use the proxy.golang.org url to make a zip available. This makes the output of bom equal to ko. When a dependency is not a module, bom will now generate a valid SPDX download locator (eg "git+https://github.com/ ... ) Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
This commit adds support for writing purls in packages describing OCI images. For now, only images stored in registries get a purl, that means that tarred images will not. Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
/retest |
Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
SOrry @saschagrunert I had forgotten to commit go.mod, its ready now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, puerco, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
bom will now annotate system packages, golang dependencies and OCI images (in a registry) with a package URL. Reading this annotation makes it easier to detect what kind of source the spdx package is describing.
Having purls in all artifacts will now allow answering questions like Does this SBOM describe an image?, do we have golang dependency information? what about the system packages in this image?
Which issue(s) this PR fixes:
None
Special notes for your reviewer:
Sample run:
/assign @cpanato
/cc @kubernetes-sigs/release-engineering
Does this PR introduce a user-facing change?