-
-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
If I create an SBOM with only a root component as follows:
from cyclonedx.model.bom import Bom, BomMetaData
from cyclonedx.model.component import Component
from cyclonedx.output.json import JsonV1Dot6
bom = Bom(metadata=BomMetaData(component=Component(name="test",version="1.2")))
print(JsonV1Dot6(bom).output_as_string())I get the warning:
/miniforge3/envs/cyclonedx/lib/python3.11/site-packages/cyclonedx/model/bom.py:667: UserWarning: The Component this BOM is describing None has no defined dependencies which means the Dependency Graph is incomplete - you should add direct dependencies to this "root" Component to complete the Dependency Graph data.
warn(I can validate this SBOM with sbom-utility and to my understanding this is a valid SBOM. There should be no warning, or?
I use version cyclonedx-python-lib version 7.3.4 and Python 3.11.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working