You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @surendrapathak you are correct, by default Syft does not generate checksums which results in invalid SDPX documents. You can, however, run Syft with the environment variables: SYFT_FILE_METADATA_CATALOGER_ENABLED=true SYFT_FILE_METADATA_DIGESTS=sha1 to cause the required SHA1 hashes to be calculated and included for files as well as PackageVerificationCode, e.g.:
While applying sbomqs quality checks on SBOMs, we found issues with syft-generated SBOMs.
For spdx-json, syft generates SBOMs that do not adhere to the SPDX spec.
What happened:
syft packages python:3.9.15-bullseye -o spdx-json > ~/Downloads/python-3.9.15-bullseye.spdx.json
The generated SBOM has a "files" section at line: 20350
However, none of the included 'file' has 'checksum', a required field
https://spdx.github.io/spdx-spec/v2.2.2/file-information/#84-file-checksum-field
What you expected to happen:
Generated SPDX to be a valid SPDX 2.2 document.
Anything else we need to know?:
Environment:
syft version
:The text was updated successfully, but these errors were encountered: