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 snyk to fix vulnerabilities faster #354

Closed
mtrezza opened this issue Aug 28, 2021 · 15 comments
Closed

Add snyk to fix vulnerabilities faster #354

mtrezza opened this issue Aug 28, 2021 · 15 comments
Labels

Comments

@mtrezza
Copy link
Collaborator

mtrezza commented Aug 28, 2021

Add snyk to this repository to auto-create PRs to fix vulnerabilities instead of waiting for someone to open a manual PR.

@mtrezza
Copy link
Collaborator Author

mtrezza commented Aug 31, 2021

@eladnava @ToothlessGear What do you think?

@ToothlessGear
Copy link
Owner

@mtrezza I'm open to give maintainer privileges to you, however maybe @eladnava and @hypesystem have some input too.

@mtrezza
Copy link
Collaborator Author

mtrezza commented Sep 1, 2021

@ToothlessGear Thanks, I'll be happy to hear any input and obviously we would discuss any suggested changes to find the best way forward for the repo.

@eladnava
Copy link
Collaborator

eladnava commented Sep 1, 2021

@mtrezza @ToothlessGear I think it would be great to have automated vulnerability fix PRs. I'm more inclined to use GitHub's built-in Dependabot, however only the repo owner (@ToothlessGear) can enable it, by visiting this page:
https://github.com/ToothlessGear/node-gcm/network/updates

Dependabot works similarly to Snyk by constantly scanning the project dependencies and alerting when a vulnerability is detected, and opening a PR with a fix if possible to do so in an automated way.

@mtrezza
Copy link
Collaborator Author

mtrezza commented Sep 1, 2021

We usually use both in projects. snyk seems to be more aggressive when it comes to identifying vulnerabilities and seems to use a broader list. There are vulnerabilities that dependabot does not detect but snyk does, and sometimes vice versa, although snky tends to be more complete in my personal experience and as comparative studies show.

@eladnava
Copy link
Collaborator

eladnava commented Sep 1, 2021

@mtrezza Sounds good, in both cases @ToothlessGear will need to set these up as the repo owner. Here are instructions for each one:

  1. Snyk
  2. Dependabot

@mtrezza
Copy link
Collaborator Author

mtrezza commented Nov 17, 2021

@ToothlessGear How should we proceed with this?

@ToothlessGear
Copy link
Owner

@mtrezza: I think I've set everything up now.
Regardless, I also gave you Collaborator rights on the repo, as well as npm.

@mtrezza
Copy link
Collaborator Author

mtrezza commented Jan 4, 2022

Thanks! I'll take a look soon.

@PeterBurner
Copy link

Any news?

@mtrezza mtrezza added the ci label Jul 30, 2022
@mtrezza
Copy link
Collaborator Author

mtrezza commented Jul 30, 2022

It seems this has been addressed. I noticed Snyk just opened a PR. Closing.

It was a dependabot PR.

@mtrezza mtrezza closed this as completed Jul 30, 2022
@mtrezza mtrezza reopened this Jul 30, 2022
@mtrezza
Copy link
Collaborator Author

mtrezza commented Jul 30, 2022

@ToothlessGear I've requested org access on Snky to set this up, you may have received an email.

@ToothlessGear
Copy link
Owner

@mtrezza Should be approved now.

@mtrezza
Copy link
Collaborator Author

mtrezza commented Jul 30, 2022

It's strange that Snky doesn't seem to have opened even a single PR since it was added. But it seems to be set up properly. I've enabled Automatic dependency upgrade pull requests for the project (not the org), because I'd say we want dependencies always up-to-date, even if they don't have a vulnerability. Let's see if it creates more PRs now.

@mtrezza
Copy link
Collaborator Author

mtrezza commented Jul 31, 2022

Snky is opening PRs, closing this.

@mtrezza mtrezza closed this as completed Jul 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants