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

Run yarn audit while running CI / publish processes #103

Merged
merged 8 commits into from
Nov 30, 2018
Merged

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Nov 30, 2018

This PR will run yarn audit while running CI / publish processes. The build would fail if it was found vulnerabilities.

This is a security improvement refered in #101.

npm script

prepack and preversion script should run yarn audit. npm-run-all cannot run the built-in command of yarn, so we added check-audit script to run yarn audit.

CircleCI

First we consider use yarn install --audit, but it is not exactly same behavior to yarn install about the installed package. To run the build within CI as same as before, it is good to add yarn audit command.

In addition, the built-in docker container provided by node are not containing the latest yarn. We have to upgrade yarn at first for using yarn audit.

@yhatt yhatt merged commit fd24749 into master Nov 30, 2018
@yhatt yhatt deleted the yarn-audit branch November 30, 2018 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant