Fill the PkgRef of a vulnerability when scanning container images, filesystem, etc #5326
Replies: 4 comments 4 replies
-
Yeah, we're planning to do that. |
Beta Was this translation helpful? Give feedback.
-
@knqyf263 does it sound good if we (Bitnami) contribute a PR for this feature? Probably we should not even ask but I want to make sure you guys don't have any strong opinions on the implementation or are already doing it and waiting for just being pushed. |
Beta Was this translation helpful? Give feedback.
-
@juan131 is going to take a look at this. We do rely purl in our SBOMs, scans and VEX statements but I concur that it makes sense to support other package identification formats. |
Beta Was this translation helpful? Give feedback.
-
@pablogalegoc @mpermar @knqyf263 I just created this draft PR with a possible implementation for this: #5439 |
Beta Was this translation helpful? Give feedback.
-
Description
I've noticed this comment in the code when trying to find why the vulnerabilities in a report don't have a pURL of the package affected:
trivy/pkg/types/vulnerability.go
Lines 22 to 27 in 74dbd8a
Could this decision be reconsidered? It would be nice if a standard scan* would fill the
PkgRef
of the vulnerability, ideally with a pURL, so it is easier to link with VEX statements.* I mean something like:
Target
Container Image
Scanner
Vulnerability
Beta Was this translation helpful? Give feedback.
All reactions