Skip to content

Unknown flag Error when converting JSON to cyclonedx #7016

Closed Answered by knqyf263
scott-boost asked this question in Q&A
Discussion options

You must be logged in to vote

I found out it was not a bug, but @scott-boost needs to add --list-all-pkgs as documented here.
https://aquasecurity.github.io/trivy/v0.52/docs/configuration/reporting/#converting

$ trivy sbom -f json --output /tmp/with_vulns.json --list-all-pkgs /tmp/base.json
$ trivy convert -f cyclonedx /tmp/with_vulns.json

2024-06-25T13:25:27-04:00 INFO "--format cyclonedx" disables security scanning. Specify "--scanners vuln" explicitly if you want to include vulnerabilities in the CycloneDX report.

This is confusing. I'll remove it for trivy convert.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@DmitriyLewen
Comment options

@knqyf263
Comment options

Answer selected by DmitriyLewen
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
triage/support Indicates an issue that is a support question.
3 participants