syft icon indicating copy to clipboard operation
syft copied to clipboard

No dependency graph relationships reported in CycloneDX output

Open fproulx-boostsecurity opened this issue 2 years ago • 2 comments

What happened: I am scanning against a Python repo using Poetry (poetry.lock). Using cyclonedx-json output (also tried other output including json) and I do not get the dependency graph.

What you expected to happen: I want the CycloneDX dependencies section to be filled

How to reproduce it (as minimally and precisely as possible): syft packages dir:. -o cyclonedx-json

Anything else we need to know?:

Environment:

  • Output of syft version: 0.56
  • OS (e.g: cat /etc/os-release or similar): macos

fproulx-boostsecurity avatar Sep 19 '22 16:09 fproulx-boostsecurity

Hmmm I see that it's not implemented https://github.com/anchore/syft/blob/main/syft/pkg/cataloger/python/parse_poetry_lock.go#L18-L31 :(

fproulx-boostsecurity avatar Sep 19 '22 17:09 fproulx-boostsecurity

Indeed, this could be a nice enhancement -- PRs are welcome! :)

kzantow avatar Sep 19 '22 20:09 kzantow