Conversation
b61ad23 to
6af5062
Compare
b01001f to
473605c
Compare
e1613bd to
4ec140f
Compare
4ec140f to
cf844f8
Compare
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
cf844f8 to
a84d32d
Compare
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
spiffcs
approved these changes
Jan 16, 2024
GijsCalis
pushed a commit
to GijsCalis/syft
that referenced
this pull request
Feb 19, 2024
* add cataloger list command Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add tests Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * chore: tidy go mod Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com> Co-authored-by: Christopher Angelo Phillips <32073428+spiffcs@users.noreply.github.com> Co-authored-by: Christopher Phillips <christopher.phillips@anchore.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a command to list out what catalogers are available and what organizational tags you can select them by:
Also allows you to test cataloger selection expressions with
-s/--select:Additionally supports being able to get the same information out in json form:
$ syft cataloger list -o json | jq{ "default": [ "all" ], "selection": [], "catalogers": [ { "name": "alpm-db-cataloger", "tags": [ "alpm", "archlinux", "directory", "image", "installed", "linux", "os", "package" ] }, { "name": "apk-db-cataloger", "tags": [ "alpine", "apk", "directory", "image", "installed", "linux", "os", "package" ] }, { "name": "binary-cataloger", "tags": [ "binary", "declared", "directory", "image", "package" ] }, ... }Where
expressionsshow the selection expressions used to get the result:$ syft cataloger list --override-default-catalogers image --select-catalogers -java,-r --select-catalogers -ruby,-rust,-python -o json | jq{ "default": [ "image" ], "selection": [ "-java,-r", "-ruby,-rust,-python" ], "catalogers": [ ... ] }Must be merged after #1383