cyclonedx-cli
cyclonedx-cli copied to clipboard
Converting CSV to BOM: can only use comma as field separator in CSV file
version:
cyclonedx-linux-x64 --version
0.24.0
operating system and version:
Linux x64, SuSE SLES 15SP2
reproducible steps:
if you use an CSV file with other separators as , (comma) and run
cyclonedx-linux-x64 convert --input-format csv --output-format xml < small.csv > bom.xml
the created BOM file bom.xml does not include any values from the CSV file; it only contains
cat bom.xml
<?xml version="1.0" encoding="utf-8"?>
<bom xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1" xmlns="http://cyclonedx.org/schema/bom/1.4">
<components>
<component type="library" />
<component type="library" />
<component type="library" />
<component type="library" />
</components>
</bom>
And btw: the last line in the BOM file is not terminated by \n.