-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: make PURLs use oci type / fixed SBOM component name #11
Conversation
647a887
to
9f8c03d
Compare
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
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.
One more change
Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
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
Same thing as stackabletech/operator-templating#448, but for our product images. It probably makes sense for the same person to review both this PR and the other.
Use OCI type for PURLs, according to https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#oci
This is more correct in general and most importantly makes the PURL equal to the one Trivy generates for our container images.
This PR is a bit more complicated than the one for operators, since I had to extract the product name (e.g. "kafka") and the architecture before generating the PURL.
I also added another small change to this PR:
The
--source-name
passed to Syft is now just the name of the image. Currently, it would besdp/kafka
. This change changes it to justkafka
. The parameter ist reflected in.metadata.component.name
in the SBOM and I think justkafka
is the correct value here, it should not include the repository.