Closed coderpatros closed 4 years ago
When generating an SBOM a timestamp should be generated and added to the metadata element.
Example in JSON format
{ "bomFormat": "CycloneDX", "specVersion": "1.2", "serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79", "version": 1, "metadata": { "timestamp": "2020-04-13T20:20:39+00:00" }, "components": [] }
Example in XML format
<?xml version="1.0"?> <bom serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.2"> <metadata> <timestamp>2020-04-07T07:01:00Z</timestamp> </metadata> <components /> </bom>
Changes to the JSON output are required here https://github.com/CycloneDX/cyclonedx-python/blob/e7c1cd9fa6a564b015d923b2219509bab9804cd1/cyclonedx/bom/generator.py#L43-L51
Changes to the XML output are required here https://github.com/CycloneDX/cyclonedx-python/blob/e7c1cd9fa6a564b015d923b2219509bab9804cd1/cyclonedx/bom/generator.py#L54-L73
@c0d3nh4ck
It has passed all the checks and now there are no conflicts.
When generating an SBOM a timestamp should be generated and added to the metadata element.
Example in JSON format
Example in XML format
Changes to the JSON output are required here https://github.com/CycloneDX/cyclonedx-python/blob/e7c1cd9fa6a564b015d923b2219509bab9804cd1/cyclonedx/bom/generator.py#L43-L51
Changes to the XML output are required here https://github.com/CycloneDX/cyclonedx-python/blob/e7c1cd9fa6a564b015d923b2219509bab9804cd1/cyclonedx/bom/generator.py#L54-L73