Syft Configuration#
Prerequisites#
Install Syft to generate software bill of materials reports.
Configure Cartography#
Set --syft-source to a local path, s3://bucket/prefix,
gs://bucket/prefix, or azblob://account/container/prefix.
Run Cartography#
cartography --neo4j-uri bolt://localhost:7687 \
--selected-modules syft \
--syft-source /path/to/syft/results
For reports stored in S3:
cartography --neo4j-uri bolt://localhost:7687 \
--selected-modules syft \
--syft-source s3://my-security-bucket/scans/syft/
Input Artifacts#
Generate Input Artifacts#
Generate reports in Syft’s native JSON format, not CycloneDX:
syft <image> -o syft-json=output.json
Input Format#
Required fields in the JSON are:
artifacts: List of package objects withid,name, andversion.artifactRelationships: List of dependency relationships. This field is optional but recommended.
Advanced Configuration#
Deprecated local and S3 report-source flags remain accepted until Cartography
v1.0.0 and emit warnings when used. New configurations should use
--syft-source.