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

Add npm audit to CI #12

Closed
BCerki opened this issue Dec 1, 2021 · 6 comments
Closed

Add npm audit to CI #12

BCerki opened this issue Dec 1, 2021 · 6 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@BCerki
Copy link
Collaborator

BCerki commented Dec 1, 2021

No description provided.

@wenzowski
Copy link

There are a few known issues with npm audit.

  • No way to ignore advisories
  • Unable to filter out low severity issues
  • Ongoing network issues with NPM registry can cause false positives
  • Noise from dev dependencies

Popular alternatives include:

I'd also recommend reviewing the Security tab and consider splitting off a new issue to configure CodeQL.

@wenzowski
Copy link

This looks like the continuation of #11

@wenzowski wenzowski added the good first issue Good for newcomers label Dec 1, 2021
@BCerki BCerki self-assigned this Dec 2, 2021
@BCerki
Copy link
Collaborator Author

BCerki commented Dec 2, 2021

There are a few known issues with npm audit.

  • No way to ignore advisories
  • Unable to filter out low severity issues
  • Ongoing network issues with NPM registry can cause false positives
  • Noise from dev dependencies

Popular alternatives include:

I'd also recommend reviewing the Security tab and consider splitting off a new issue to configure CodeQL.

@wenzowski, general question: when you make a comment like this (there are other tools than the one I'm using that might be better), how does that translate to a to-do? Use npm audit but be aware there are limitations and consider something else next time? Research the popular alternatives and implement the one I think is best (or have a team discussion about what one is best and then implement that)?

@wenzowski
Copy link

I'd lean to decompose wherever possible. If there's an opportunity to achieve implementation npm audit --audit-level=moderate guardrail in an efficient manner, I'd ship that first before looking at additional dependencies. If, however, the builtin npm audit appears to be difficult to bring to passing state due to the frictions noted here I'd comment to that effect, close the npm audit PR without merging (leaving a reference here) and try one of the alternate tools (above) directly.

@BCerki
Copy link
Collaborator Author

BCerki commented Dec 8, 2021

This is linked to https://github.com/button-inc/digital_marketplace/issues/6--these updates will probably fix a lot of the issues

@BCerki
Copy link
Collaborator Author

BCerki commented Jan 5, 2022

Will switch to yarn so find a different audit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
2 participants