mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
* add file catalogers to selection configuration Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix typos Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * warn when there is conflicting file cataloging configuration Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * allow for explicit removal of all package and file tasks Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * address PR feedback Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
Syft API Examples
This directory contains examples of how to use the Syft API.
create_simple_sbom: Create a simple SBOM from scratchcreate_custom_sbom: Create an SBOM using as much custom configuration as possible, including a custom cataloger implementationdecode_sbom: Take an existing SBOM file (of arbitrary format) and decode it into a Syft SBOM objectsource_detection: Shows how to detect what to catalog automatically from a user string (e.g. container image vs directory)source_from_image: Construct a source from a only a container image
You can run any of these examples from this directory with:
go run ./DIRECTORY_NAME