-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
converting issues #381
Comments
@AJquetta Can you please attach your csv file (or a sample) such that we can reproduce your issue? |
PU LABEL,COMPONENT LABEL,COMPONENT TYPE,COMPONENT VENDOR,COMPONENT NAME,COMPONENT VERSION,COMPONENT STATUS here is it. can you try to convert and let me know if you can, or is there any issue wit csv file data or something is missing there. Also if you did convert it, can you also show me the command that you used. THanks. |
@AJquetta The problem is your input data, or more precisely the headers. Lines 124 to 135 in 03b8019
If I modify some of the headers (I'm not sure whether there are matching properties for the others, e.g. COMPONENT VENDOR might be Supplier or Publisher): The command that I used was: |
So the problem is with the csv file? and have you made changes to the csv file that I provided, if yes can you share with me. Did you only change type with Library? |
Yes, the problem is the csv file; here is the modified file that I used: |
yeah, but when I try to put the genrated sbom from csv to cyclonedx in to snyk sbom checker it gives me this error: We couldn't find any Package URLs (purls) or external references containing purls in the provided SBOM. https://snyk.io/code-checker/sbom-security/ can you sopy pasted the sbom which you converted in this and see if it shows vulnerability detection as I tried to convert csv to cyclonedx but I think csv data us nit complete or there is a problem with proper conversion between formats. |
Well, the generated BOM is a valid BOM, but it indeed does not contain any purls, as the csv data did not contain them. If you want to have them included, you will need to provide them in a "Purl" column. |
okay thanks @andreas-hilti |
but is it possible i can get the purls from any tool or somewhere or is it that I have to ask the vendor to provide them?, or there are any open source tools that can import this csv file and generate there purls? |
From where do you get your dependencies? If you use some kind of package management system, like conan, maven, pypi, nuget, etc. then you can hope to get purls automatically (but then you should actually rather use a specialized tool than to rely on csv import via cli to produce the SBOM). Otherwise, you can't hope for a tool to figure this out; how should it be able to do so (i.e. how should it be able to know from where you got the dependencies)? |
Hello, I am trying to convert a csv formt sbom in to cyclonedx format with version 1.4
I am using following command : cyclonedx convert --input-file 'Sda.txt' --input-format csv --output-file wwse.json --output-format json --output-version v1_5
but when it generates wwse.json file its empty, can anyone explain why, I also did like this:
cyclonedx convert --input-file 'Sda.csv' --input-format csv --output-file wwse.json --output-format json --output-version v1_5
using sda.csv
but still same issue.
The text was updated successfully, but these errors were encountered: