acordiner92 / npm-audit-pipeline

NPM Audit Tool for Pipelines
Apache License 2.0
12 stars 1 forks source link

Error when running in a project with private npm packages #413

Open gabrielcipriano opened 1 year ago

gabrielcipriano commented 1 year ago

I recently added a private npm package to my project. Now when I run package-audit, it gives the following error:

MicrosoftTeams-image

This happens because some private registries doesn't supports npm audit yet (in my case, azure devOps artifacts)

azure's documentation suggests to run npm audit only on public packages :

npm audit --registry=https://registry.npmjs.org/

but when using npm-audit we are not able to pass arguments to the npm audit called internally.

Possible solutions:

acordiner92 commented 1 year ago

Hey Gabriel, thanks for reaching out to me. Interesting case you have there! Your first solution makes the most sense to me since it allows for flexibility in other potential situations in the future. I'll add the support for that in a new release. I should have something releasable in a couple of days :)

gabrielcipriano commented 1 year ago

Thats great! if there is anything that I could help, please reach me out