-
Notifications
You must be signed in to change notification settings - Fork 249
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
patch vulnerabilities #282
Conversation
🦋 Changeset detectedLatest commit: 3295764 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This PR is also of great interest as we wish to use in our hosted Github enterprise runners but can not due to Snyk report. @Andarist are you able to provide any insights into how the approval process works, i am asking you as you made the most recent commit to the repo! :) |
d7cc1fb
to
085bff8
Compare
👋 +1 on this PR as well, this is a blocker for us at work and we'd love to be able to keep using this awesome package. @Andarist is there anything that we can do to help this move forward? P.S. Thank you to @mark-omarov for doing this work! 💪 🙇 |
There are conflicts needs to be resolved. I'm occupied with other things right now, but I'll try to get to it sometime this weekend. Thanks everyone. |
085bff8
to
6ac5619
Compare
I got a minute to resolve conflicts, did a scan with Dependabot, and added resolutions to patch reported vulnerabilities. As of now, there should be no vulnerabilities. Sorry to bother @Andarist, but I'd appreciate it if you could take a look. |
hey @Andarist! sorry to keep nudging you on reviewing this, but I would hate for us (and potentially others) to have to fork away from this repo because of security compliance. it would be lovely if you could make some time to review this 🙏 |
Hi @emmatown , sorry to bother you, in the hope of getting this PR noticed, I figured you might be able to help. If no - apologies for annoyance. |
package.json
Outdated
"glob-parent": "^5.1.2", | ||
"node-fetch": "^2.6.7", | ||
"minimist": "^1.2.8", | ||
"mixme": "^0.5.2", | ||
"minimatch": "^3.1.1", | ||
"lodash": "^4.17.21", | ||
"trim": "^0.0.3", | ||
"y18n": "^4.0.1" |
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.
Do we have a breakdown of what packages depend on some outdated versions of those? Couldn't we update some packages to fix this instead of overriding what is installed using resolutions
?
"minimatch": "^3.1.1", | ||
"lodash": "^4.17.21", | ||
"trim": "^0.0.3", | ||
"y18n": "^4.0.1" |
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.
This is a dependency of yargs
and smartwrap
depends on it. It's a bummer because we actually don't depend on any parts of smartwrap
that depend on that... the problem is that smartwrap
ships both its CLI and a runtime library in a single package.
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.
Hm, I also don't quite see that package in the Snyk report.
"mixme": "^0.5.2", | ||
"minimatch": "^3.1.1", | ||
"lodash": "^4.17.21", | ||
"trim": "^0.0.3", |
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.
This one comes from remark-parse
and to fix it we'd have to update a major of this library. I agree that it's best to do it in a separate PR.
package.json
Outdated
"**/@octokit/core": "4.2.0", | ||
"glob-parent": "^5.1.2", | ||
"node-fetch": "^2.6.7", | ||
"minimist": "^1.2.8", |
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.
I'm not sure what this one is about. I don't see any package to depend on this.
package.json
Outdated
"minimist": "^1.2.8", | ||
"mixme": "^0.5.2", | ||
"minimatch": "^3.1.1", | ||
"lodash": "^4.17.21", |
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.
after your updates packages don't depend on this at all so this is redundant (likely the same story for minimist
)
I tweaked this PR a little bit because I think that some bits were overeager and that some of those "vulnerabilities" went away when some of the packages were updated. Let's publish this and then recheck with Snyk again. |
Thanks, @Andarist ! |
Hi 👋
The security department didn't like Snyk's report on this action, and I didn't like the idea of making a custom action for the same job, so here we go. We will be using the forked version for now, but you might also want to consider this.
Changes:
dependencies
todevDependencies
I've tested these changes on my fork by releasing the changes and going through the PR raised by the action. I might have missed something.
Cheers!