lib4sbom
lib4sbom copied to clipboard
cyclonedx packages fails to generate
In the cyclonedx_parser.py file, when it saves the package metadata, it saves the key of the dictionary as a tuple: https://github.com/anthonyharrison/lib4sbom/blob/b7390b1a3c0124afb8856b4ea6a3fd33cda89919/lib4sbom/cyclonedx/cyclonedx_parser.py#L419
This is an invalid key when trying to export to json with the generator, and the dumps call will fail with an exception.
Have you got some sample code where it fails? A tuple is a valid key for a Python dictionary
Unable to reproduce without further information being provided.