Allow any registry to be used for auditing
Summary
Allow auditing against any registry. This is useful for auditing against a private or whitelisted registry. For example, in our organisation npmjs is allowed while yarnpkg is blocked :(
Test plan
Command: yarn audit
Output: An unexpected error occurred: "https://registry.yarnpkg.com/-/npm/v1/security/audits: getaddrinfo ENOTFOUND registry.yarnpkg.com registry.yarnpkg.com:443".
Command: yarn audit --registry https://registry.npmjs.org
Output: 0 vulnerabilities found - Packages audited: 46500
Command: yarn audit --registry https://artifactory.dev.company/artifactory/api/npm/npm-dev
Output: error Your configured registry "https://artifactory.dev.company/artifactory/api/npm/npm-dev" does not support audit requests.
Also experiencing this same problem
Duplicate of #7263.
Hi @cheesestringer, I suggest you closing this pull request and applying your knowledge on reviewing the #7263
Forgot all about this. Fixed the conflicts but happy to close this for the newer PR.
Any updates regarding this?
greetings from 2025