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

feat: add reachable vulnerabilities support for gradle #1422

Merged
merged 1 commit into from
Sep 30, 2020

Conversation

miiila
Copy link
Contributor

@miiila miiila commented Sep 22, 2020

  • Ready for review
  • Follows CONTRIBUTING rules
  • Reviewed by Snyk internal team

What does this PR do?

Adds reachable vulnerabilities feature support for Gradle projects.

⚠️ Will fail unless snyk/snyk-gradle-plugin#147 is merged.

@miiila miiila requested review from a team as code owners September 22, 2020 18:07
@miiila miiila self-assigned this Sep 22, 2020
@ghost ghost requested review from razzmadaz and dtrunley-snyk September 22, 2020 18:07
@miiila miiila force-pushed the feat/add-reachable-vulns-support-for-gradle branch 2 times, most recently from 6c1614d to 7064c37 Compare September 23, 2020 11:32
@darmalovan darmalovan force-pushed the feat/add-reachable-vulns-support-for-gradle branch 5 times, most recently from 7205e76 to 3276847 Compare September 29, 2020 15:07
@darmalovan darmalovan self-assigned this Sep 29, 2020
const mavenIndex = pkgManagers.indexOf('maven');
pkgManagers.splice(mavenIndex, 1); // remove maven as it's supported
const pkgManagers = Object.keys(SUPPORTED_PACKAGE_MANAGER_NAME).filter(
(name: any) => !REACHABLE_VULNS_SUPPORTED_PACKAGE_MANAGERS.includes(name),
Copy link
Member

Choose a reason for hiding this comment

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

I suggest name: string instead of name: any

Choose a reason for hiding this comment

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

Fixed to the right type!

Copy link
Member

Choose a reason for hiding this comment

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

Even better, perfect 👌

image

@@ -79,7 +79,7 @@
"snyk-cpp-plugin": "2.0.0",
"snyk-docker-plugin": "3.24.0",
"snyk-go-plugin": "1.16.2",
"snyk-gradle-plugin": "3.6.3",
"snyk-gradle-plugin": "3.7.0",
Copy link
Member

Choose a reason for hiding this comment

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

reviewed also changes introduced here
snyk/snyk-gradle-plugin@453a81e

Copy link
Member

@anthogez anthogez left a comment

Choose a reason for hiding this comment

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

My only concern is the type the rest is good to me

@darmalovan darmalovan force-pushed the feat/add-reachable-vulns-support-for-gradle branch from 3276847 to a0e7460 Compare September 29, 2020 15:26
@github-actions
Copy link
Contributor

github-actions bot commented Sep 29, 2020

Expected release notes (by @darmalovan)

features:
add reachable vulnerabilities support for gradle (a0e7460)

  • I hereby acknowledge these release notes are 🥙 AWESOME 🥙

@darmalovan darmalovan merged commit 70f8a2c into master Sep 30, 2020
@darmalovan darmalovan deleted the feat/add-reachable-vulns-support-for-gradle branch September 30, 2020 08:55
@snyksec
Copy link

snyksec commented Sep 30, 2020

🎉 This PR is included in version 1.405.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants