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

CI/CD Issue: Error in return value of npm-audit-resolver with yarn berry? #77

Open
JoerKul opened this issue Jan 10, 2024 · 0 comments
Open

Comments

@JoerKul
Copy link

JoerKul commented Jan 10, 2024

I am using npm-audit-resolver in a CI/CD Use Case with yarn berry and don't seem to get an exit code 1 back when there is an issue.

Expected behavior:

The expectation would be that as soon as an "unresolved issues found!" is detected, the exit code is 1 and not 0 as in the example.

Steps to reproduce:

Screenshot 2024-01-10 at 16 37 48

In the example shown, there is already an audit-resolve.json file, so the output correctly shows "Total of 4 actions to process", but only one "modarate" issue is listed in the output. This is correct so far. Nevertheless, I would expect a 1 as the exit code here because an issue was found.

Here again the CI/CD pipeline use case:

Screenshot 2024-01-10 at 16 47 53

with corresponding statement:

Screenshot 2024-01-10 at 16 46 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant