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

Yarn Audit Analyzer disabled but failed to initialize #7356

Open
breizh31 opened this issue Jan 28, 2025 · 2 comments
Open

Yarn Audit Analyzer disabled but failed to initialize #7356

breizh31 opened this issue Jan 28, 2025 · 2 comments
Labels

Comments

@breizh31
Copy link

Hello,

With DependencyCheck cli 12.0.1.

On my DependencyCheck server, yarn is not installed. It is correctly detected and managed by DependencyCheck:
[WARN] The Yarn Audit Analyzer has been disabled. Yarn executable was not found.

Dibaled, perfect. But just after:
[ERROR] Exception occurred initializing Yarn Audit Analyzer.

Why trying to intialize a disabled Analyzer ? And then failed the cli:
[ERROR] Unable to read yarn audit output. script returned exit code 14

It doesn't sound very logical to me.

Regards

@breizh31 breizh31 added the bug label Jan 28, 2025
@jeremylong
Copy link
Owner

If you scan a project that has a yarn.lock and yarn is not installed what you are describing is expected behavior. If we are supposed to scan for vulnerabilities in the yarn ecosystem and yarn isn't installed this is an exceptional condition. Technically, we could get rid of the warning, or maybe move it to debug logging. But this is expected behavior.

@jeremylong jeremylong added question and removed bug labels Jan 31, 2025
@breizh31
Copy link
Author

Hello @jeremylong ,

Thanks for your answer, and especially for your excellent work on vulnerability. From my point of view, a WARN rather than an ERROR, would be less disturbing. But it doesn't really matters for me, i will install yarn on my containers running DependencyCheck because i want a full vulnerability analysis.

I am much more annoyed by #7337

Have a nice day,

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

No branches or pull requests

2 participants