-
Notifications
You must be signed in to change notification settings - Fork 570
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
Document which fields of Syft SBOM are used in processing input #2249
Comments
Hi @chovanecadam - thanks for the interesting issue. This sentence alone raises, for me, a point and a question
That said, I don't doubt that it might be useful to have documented somewhere, the metadata used by Grype to correctly identify packages, versions, files and origins. But, it's all open source, so this would be a great "fresh eyeballs" taslk for someone. Thanks again for the question. |
To answer the question, through trial and error I have arrived at this snippet of an entry in the {
"id": "118",
"name": "zlib1g",
"version": "1:1.2.13.dfsg-1",
"type": "deb",
"foundBy": "",
"locations": [],
"licenses": [],
"language": "",
"cpes": [],
"purl": "pkg:pkg/deb/debian/zlib1g@1:1.2.13.dfsg-1?arch=amd64&distro=debian-12",
"metadataType": "dpkg-db-entry",
"metadata": {
"package": "zlib1g",
"source": "zlib",
"version": "1:1.2.13.dfsg-1",
"sourceVersion": "1:1.2.13.dfsg-1",
"architecture": "amd64",
"maintainer": "",
"installedSize": 0,
"provides": [],
"depends": [],
"files": []
} Many other fields in the SBOM are not AFAIK necessary, such as the Would there be an interest at documenting this behavior and updating the docs? I might create the docs, but if there isn't interest in the project for this, I don't see the point. No docs is better than incorrect docs imo. |
Thanks @chovanecadam - if you would like to document it, I'm sure we can find somewhere in the docs to put it! |
Great. I will look into it hopefully sometime this week and notify you if I make some progress. |
What would you like to be added:
Documentation about what fields from the Syft JSON are used and for what purpose.
Why is this needed:
Some organizations have access to information about installed packages from other sources, e.g. from monitoring tools, or configuration management tools. In this case Syft is not used, but Syft SBOM is constructed from the data manually. Syft SBOM contains many fields which are not necessary for vulnerability analysis with Grype. It would be great to document which fields are necessary for Grype to function and to include this information in the changelog in case it changes.
Additional context:
The text was updated successfully, but these errors were encountered: