-
Notifications
You must be signed in to change notification settings - Fork 35
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
Remove npm audit
from scaffolded posttest
to fix CI builds
#556
Conversation
Fix the code running `npm install` to always ask npm to create a package-lock file, ignoring any environment-specific configuration. This is needed to make `npm audit` work. Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
New applications are created with a dependency on loopback-component-explorer, which depends on `swagger-ui@2` that's no longer maintained. This version of swagger-ui has known security vulnerabilities which DO NOT apply to loopback-component-explorer. Unfortunately, there is no way how to tell `npm` to ignore them. This commit removes `npm audit` from the `posttest` script, to let `npm test` pass and thus fix our failing CI builds. Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the vulnerabilities only from swagger-ui@2
? Do we need to detect other vulnerabilities?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash the commits before merging. Thanks.
Yes, they are from Historically, we were running Nowadays, |
I am intentionally keeping the change split into two commits. If we ever decide to revert this PR and start to run |
I see. Thanks for the clarification. |
New applications are created with a dependency on loopback-component-explorer, which depends on
swagger-ui@2
that's no longer maintained.This version of swagger-ui has known security vulnerabilities which DO NOT apply to loopback-component-explorer, see the discussion in strongloop/loopback-component-explorer#263.
Unfortunately, there is no way how to tell
npm
to ignore them.This commit removes
npm audit
from theposttest
script, to letnpm test
pass and thus fix our failing CI builds.Checklist