Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet list package --vulnerable should return non-zero exit code when vulnerabilities found #38994

Closed
linkdotnet opened this issue Feb 24, 2024 · 2 comments
Labels
Area-NuGet untriaged Request triage from a team member

Comments

@linkdotnet
Copy link

Is your feature request related to a problem? Please describe.

Currently, we can run dotnet list package --vulnerable to find vulnerable packages in the project or solution.
While using it in the CI/CD pipeline is nice, it falls short if there are vulnerable packages as it does still return a 0 exit code.

Describe the solution you'd like

If there are vulnerable found in a given project, the command should exit with a non-zero exit code to indicate errors to the caller.

Additional context

Debatable if --deprecated should return a non-zero exit code if deprecated packages were found.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-NuGet untriaged Request triage from a team member labels Feb 24, 2024
Copy link
Contributor

Thanks for creating this issue! We believe this issue is related to NuGet tooling, which is maintained by the NuGet team. Thus, we closed this one and encourage you to raise this issue in the NuGet repository instead. Don’t forget to check out NuGet’s contributing guide before submitting an issue!

If you believe this issue was closed out of error, please comment to let us know.

Happy Coding!

@ricardoboss
Copy link

I was looking for issues asking for this and found this in the NuGet repo: NuGet/Home#11315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-NuGet untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

2 participants