feat: add --severity-src
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
--severity-src
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:
--severity-src nvd --severity-src ghsa
Process severity sources in the specified order
Define current behavior as
auto
auto
Allow fallback to auto mode
Example:
--severity-src nvd,auto
Usage Examples
Benefits
The text was updated successfully, but these errors were encountered: