Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
From the ADVANCED.md file
Minimum confidence filter
Use
--min-confidence
with a value between 0 and 1 to filter components based on the confidence of their purl identify. The logic involves looking forfield=purl
inevidence.identity
and collecting the maximumconfidence
value. This is then compared against the minimum confidence passed as an argument.cdxgen -t c . --min-confidence 0.1
The above would filter out all the zero confidence components in c/c++, so use it with caution.
Analysis technique filter
Use
--technique
to list the techniques that cdxgen is allowed to use for the xBOM generation. Leaving this argument or using the valueauto
enables default behaviour.Example 1 - only allow manifest-analysis:
cdxgen -t c . --technique manifest-analysis
Example 2 - allow manifest-analysis and source-code-analysis:
cdxgen -t c . --technique manifest-analysis --technique source-code-analysis
List of supported techniques:
Currently, this capability is implemented as a filter during post-processing, so unlikely to yield any performance benefits.