Metamask-extension: security: re-enable NPM audit

Created on 5 Jun 2019  路  1Comment  路  Source: MetaMask/metamask-extension

I cloned this repo today and saw a bunch of npm audit errors upon installing the packages:

Screen Shot 2019-06-04 at 4 08 54 PM

The audit command was disabled in https://github.com/MetaMask/metamask-extension/pull/6188. I think for security reasons, it would be good to update your dependencies to fix these problems and then re-enable npm audit.

FYI depcheck shows some unused deps in this repo and deleting them probably fixes some of the security issues.

P1-asap T04-security

Most helpful comment

Looks like this was partly because npm audit would spontaneously fail for us, and we're not the only ones.
https://npm.community/t/enoaudit-from-registry-npmjs-org-503/4642/59

You can see what it was doing here:
https://circleci.com/gh/MetaMask/metamask-extension/81694?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

We may need to find a substitute for npm audit, or run audit on the dependency list individually, if this is related to dependency graph size.

In any case, we should've opened an equivalent issue when we first removed it, so thanks for opening this.

>All comments

Looks like this was partly because npm audit would spontaneously fail for us, and we're not the only ones.
https://npm.community/t/enoaudit-from-registry-npmjs-org-503/4642/59

You can see what it was doing here:
https://circleci.com/gh/MetaMask/metamask-extension/81694?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

We may need to find a substitute for npm audit, or run audit on the dependency list individually, if this is related to dependency graph size.

In any case, we should've opened an equivalent issue when we first removed it, so thanks for opening this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

whyrusleeping picture whyrusleeping  路  3Comments

DISC30 picture DISC30  路  3Comments

MarkOSullivan94 picture MarkOSullivan94  路  3Comments

kumavis picture kumavis  路  3Comments

estebanmino picture estebanmino  路  3Comments