Skip to content

Resolve vulnerabilities found by npm audit#846

Merged
brcrista merged 7 commits intomainfrom
brcrista/audit-fix
Jun 16, 2021
Merged

Resolve vulnerabilities found by npm audit#846
brcrista merged 7 commits intomainfrom
brcrista/audit-fix

Conversation

@brcrista
Copy link
Copy Markdown
Contributor

@brcrista brcrista commented Jun 14, 2021

In #845 the workflow https://github.com/actions/toolkit/actions/workflows/audit.yml failed because of some known vulnerabilities.

Most of these I fixed with npm audit fix. However, the lerna package, which is a dev dependency, needs to be updated (discussion). Therefore, I'm changing the workflow to run with --production, which excludes dev dependencies.

Sample output:

image

@brcrista brcrista requested review from konradpabjan and thboop June 14, 2021 17:35
@brcrista brcrista requested a review from a team as a code owner June 14, 2021 17:35
@brcrista brcrista requested a review from a team June 14, 2021 17:35
Comment thread scripts/audit-allow-list Outdated
Comment thread scripts/audit-allow-list Outdated
@brcrista brcrista mentioned this pull request Jun 14, 2021
@konradpabjan
Copy link
Copy Markdown
Contributor

Why is the lockfileVersion being bumped to version 2 in all the package-lock.json files? 🤔

It's introducing quite a bit changes that I think we can avoid

@brcrista
Copy link
Copy Markdown
Contributor Author

@konradpabjan that's probably because I ran npm audit fix with npm 7. I'll undo and redo with npm 6.

@brcrista brcrista force-pushed the brcrista/audit-fix branch from be8c8a7 to f1ba29d Compare June 14, 2021 19:14
Copy link
Copy Markdown
Contributor

@konradpabjan konradpabjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

@thboop could you confirm if these changes are good

Comment thread .github/workflows/audit.yml Outdated
Copy link
Copy Markdown
Collaborator

@thboop thboop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread scripts/audit-allow-list
@brcrista brcrista merged commit 9167ce1 into main Jun 16, 2021
@brcrista brcrista deleted the brcrista/audit-fix branch June 16, 2021 13:20
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.

3 participants