Addition of component name and type when running as requirements #709
-
It would be good to somehow add the component name and data to the json when running "cyclonedx-py requirements", can't pick this information up from req file, so either som smart logic from git or command line argument
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
you are referring to populating then this capability is already there, see the docs: example usage cyclonedx-py requirements --pyproject .../pyproject.toml .../requirements.txt examples: https://github.com/CycloneDX/cyclonedx-python/tree/main/tests/_data/infiles/requirements |
Beta Was this translation helpful? Give feedback.
-
@andy778 since you had to ask about this capability, I wonder, whether the current documentation is insufficient. the rendered docs are here: https://cyclonedx-bom-tool.readthedocs.io/en/latest/ |
Beta Was this translation helpful? Give feedback.
you are referring to populating
$.metadata.component
?then this capability is already there, see the docs:
example usage
examples: https://github.com/CycloneDX/cyclonedx-python/tree/main/tests/_data/infiles/requirements
example results: https://github.com/CycloneDX/cyclonedx-python/tree/main/tests/_data/snapshots/requirements