[Feature]: Allow excluding vulnerabilities from output of `dotnet list package --vulnerable`
#11,926 建立於 2022年6月29日
倉庫指標
- Star
- (1,459 star)
- PR 合併指標
- (平均合併 464天 23小時) (30 天內合併 1 個 PR)
描述
NuGet Product(s) Involved
dotnet.exe
The Elevator Pitch
Allow excluding vulnerabilities from the output of dotnet list package --vulnerable [--include-transitive] using another command line flag or config file.
Additional Context and Details
We scan for NuGet packages with vulnerabilities regularly on our build server by running dotnet list package --vulnerable --include-transitive. Sometimes it's not practical to upgrade a package version to properly fix the vulnerability, but we don't want to be notified of it anymore (because we have either determined that it doesn't apply to us, made a code change to mitigate it or accepted the risk). It would be great to be able to exclude specific vulnerabilities, e.g. by the advisory URL or perhaps just the ID part of it (CVE or GHSA ID), e.g.
dotnet list package --vulnerable --include-transitive --exclude-vulnerabilities GHSA-qpvx-gpqm-g98j,GHSA-mv2r-q4g5-j8q5