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
When using the formats.Decode() function to decode a Syft generated SBOM. The Artifacts object has missing contents for FileContents and FileLicenses. To be exact, both return an empty map[].
What you expected to happen:
I expected the returned value of FileContents to have data associated with the file and the file contents so that this could be parsed and used to identify potential security issues.
In addition, I tried to convert an Syft schema 7.0.0 file to Syft schema 10.0.1 file using: syft convert syft-sbom-7.0.0.json -o soft-json > syft-sbom-10.0.1.json but the file contents that existed in the original 7.0.0 file are no longer present in the 10.0.1 file.
Contents of the original 7.0.0 file (content not sensitive):
When using the
formats.Decode()
function to decode a Syft generated SBOM. TheArtifacts
object has missing contents forFileContents
andFileLicenses
. To be exact, both return an emptymap[]
.What you expected to happen:
I expected the returned value of
FileContents
to have data associated with the file and the file contents so that this could be parsed and used to identify potential security issues.Steps to reproduce the issue:
Results in:
However, the syft-sbom.json file contains an extracted file content (content is not sensitive, this is a default /etc/passwd file):
In addition, I tried to convert an Syft schema 7.0.0 file to Syft schema 10.0.1 file using:
syft convert syft-sbom-7.0.0.json -o soft-json > syft-sbom-10.0.1.json
but the file contents that existed in the original 7.0.0 file are no longer present in the 10.0.1 file.Contents of the original 7.0.0 file (content not sensitive):
Contents of the newly converted 10.0.1 file:
Anything else we need to know?:
It appears that
FileContents
andFileLicenses
are not populated in theto_syft_model.go
file:syft/syft/formats/syftjson/to_syft_model.go
Line 65 in dd09e03
Environment:
syft version
:cat /etc/os-release
or similar): Mac OS X Ventura 13.4.1The text was updated successfully, but these errors were encountered: