--vuln-type not respected when using --format cyclonedx #6225
Closed
marcrohlfs
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
Hello @marcrohlfs
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Created #6269 for this task. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
The vulnerability types option is not respected when generating a report in the CycloneDX format. I'd expect equal behavior regardless the selected output format. Interesting enough, the skip files is respected with CycloneDX format.
After putting all information together I noticed the information
["cyclonedx" "spdx" "spdx-json" "github"] automatically enables '--list-all-pkgs'
in the debug output. This explains it. However, I still consider it rather a bug than a feature enhancement request, because the behavior of--skip-files
and--skip-dirs
is inconsistent to the behavior when reducing the scope with--vuln-type
- and IMHO there're good reasons to omit especially OS parts in an SBOM.Desired Behavior
With
--vuln-type library --format cyclonedx
, the resulting SBOM should not contain OS packages.Actual Behavior
With
--vuln-type library --format cyclonedx
, the resulting SBOM contains OS packages.Reproduction Steps
Target
Container Image
Scanner
None
Output Format
None
Mode
Standalone
Debug Output
Operating System
masOS Sonoma 14.3
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions