Skip to content
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

SBOM: the Syft preset could use a more suitable set of catalogers #5392

Open
chmeliik opened this issue Mar 11, 2024 · 3 comments
Open

SBOM: the Syft preset could use a more suitable set of catalogers #5392

chmeliik opened this issue Mar 11, 2024 · 3 comments
Assignees

Comments

@chmeliik
Copy link

Description

The "syft" SBOM preset scans both the context directory and the rootfs as plain dir:s. Syft selects the default set of catalogers based on what it is scanning: https://github.com/anchore/syft?tab=readme-ov-file#package-cataloger-selection

You can see the list of catalogers enabled for directory scanning and image scanning with:

syft cataloger list --select-catalogers directory
syft cataloger list --select-catalogers image

And the list of catalogers enabled only for image scanning:

$ syft cataloger list -o json | jq '.catalogers[] | select(.tags | contains(["image"])) | select(.tags | contains(["directory"]) | not) | .name' -r
cargo-auditable-binary-cataloger
conan-info-cataloger
javascript-package-cataloger
php-composer-installed-cataloger
r-package-cataloger
ruby-installed-gemspec-cataloger

It would be suitable to use --select-cataloggers image when scanning the rootfs.

@chmeliik chmeliik changed the title SBOM: the Syft preset could use a more suitable set of cataloggers SBOM: the Syft preset could use a more suitable set of catalogers Mar 11, 2024
@nalind
Copy link
Member

nalind commented Mar 11, 2024

Sounds reasonable. Is the default of "--select-catalogers directory" the best one for build context directories?

@chmeliik
Copy link
Author

Sounds reasonable. Is the default of "--select-catalogers directory" the best one for build context directories?

Yes, I think so

@nalind nalind self-assigned this Mar 11, 2024
Copy link

A friendly reminder that this issue had no activity for 30 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants