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

Return different exit codes for dotnet list package report command in case vulnerable/outdated/deprecated package detected #12286

Closed
erdembayar opened this issue Nov 30, 2022 · 2 comments

Comments

@erdembayar
Copy link
Contributor

erdembayar commented Nov 30, 2022

NuGet Product Used

dotnet.exe

Product Version

n/a

Worked before?

No response

Impact

No response

Repro Steps & Context

Currently dotnet list package --format json command only returns 0 or 1. Here 1 means successfully generated report or 1 means some issue with generating the report.
Still customer have to parse json output to check if my report has any vulnerability/outdated/deprecated package.
Instead, we could use return different application exit code to signal customer if there is any vulnerability issue or not, it would save them time.
Related issue: #7752

Verbose Logs

No response

@erdembayar erdembayar changed the title Return different exit codes for dotnet list package command in case vulnerable/outdated/deprecated package detected Return different exit codes for dotnet list package report command in case vulnerable/outdated/deprecated package detected Nov 30, 2022
@nkolev92
Copy link
Member

Dup of #11315 probably?

@erdembayar
Copy link
Contributor Author

You're right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants