feat: add --vuln-severity-source
flag to customize vulnerability severity selection
#8180
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
Milestone
Description
Currently, Trivy automatically selects the "best" severity among multiple data sources (NVD, GHSA, etc.) based on its internal logic. While this works well for most cases, some users have specific needs for severity selection:
To address these needs, I propose adding a new
--vuln-severity-source
flag that allows users to specify their preferred severity sources in order of priority.Proposed Implementation
The flag would work as follows:
Accept multiple values in comma-separated format or repeated flags
Example:
--vuln-severity-source nvd --vuln-severity-source ghsa
Process severity sources in the specified order
Define current behavior as
auto
auto
Allow fallback to auto mode
Example:
--vuln-severity-source nvd,auto
Usage Examples
Benefits
The text was updated successfully, but these errors were encountered: