I'm trying to retrieve the vulnerabilities
and licenses
reports (ideally in .csv format) using Xray API.
Before coding in groovy - trying to make it working using curl.
Reading documentation, but can't find detailed explanation and useful examples.
For example, running the following:
curl -X POST -u<user>:<pswrd> -H "Content-Type: application/json" -d '{"checksums":["1b25b...."],"report_type":"license"}' "https://<my-xray-server>/xray/api/v1/summary/artifact"
does return for specified (by checksum) artifact the list of both
- issues (vulnerabilities)
- licenses In the same Json report contest.
Despite I explicitly specified "report_type":"license" to get licenses report only. Is there a way to retrieve vulnerabilities/licenses reports separately? Is there a way to get those reports in the .csv format (instead of default json)? TIA!