-
Notifications
You must be signed in to change notification settings - Fork 720
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Since Grype relies on Syft's cataloging output in order to surface matched vulnerabilities, it follows that there will be workflows where Syft's output from being run on its own should be used as input to an invocation of Grype. This will make it easier for CI pipelines to be composable and more efficient. On top of that, it will allow for us to integrate Grype into Anchore Engine.
Acceptance criteria:
- Grype can be run such that it takes as input the unaltered output from a Syft execution.
- When Syft output is passed into Grype, Grype doesn't execute Syft's cataloging functionality.
Steps to test:
- Run Syft and save its output.
- Pass this output into Grype using Grype's specified mechanism for inputting such a document.
- Ensure that Grype is outputting vulnerability matches based on this input document.
Things that are needed for matching:
- vulnerability provider (already accounted for)
- distro
- package catalog
Important consideration...
How should the user consume this behavior? Pipe a file via STDIN? Specify a path to a file? And use a "scheme" (e.g. sbom:path/to/sbom.json)
Metadata
Metadata
Labels
enhancementNew feature or requestNew feature or request