-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(vex): add support for relationships/subcomponents #6077
Comments
👋 hey @knqyf263 - I just came across similar behaviour yesterday when looking at using Trivy to scan some images along with a VEX file. I'm having a related issue - suppose I had a VEX statement like the following to represent an attestation made about the
In Trivy, this doesn't work to match when scanning the In Grype, the above statement would correctly match when scanning the To me, Grype's behaviour is more intuitive. I'd be keen to see Trivy and Grype support a consistent interpretation of VEX documents as well, to avoid having to publish multiple VEX documents, one for each scanner. I'd be interested to know your thoughts on this, and happy to help contributing to any changes that are required. Should this be a separate issue, or does it fit in with the changes that you are proposing here? |
Yes, it's in the scope of this issue, but it's broader support than the relationship between container image and packages. We'll correctly build the dependency graph and apply VEX to the graph. |
@ferozsalam This task is yet incomplete, but your case is already supported in v0.50.0. |
@knqyf263 awesome, thank you! |
Description
Trivy currently doesn't consider relationships in VEX. It simply supports a list of products.
In the above example, Trivy should apply VEX to runc only used in Trivy.
The text was updated successfully, but these errors were encountered: