snyk / snyk-gradle-plugin

Basic Snyk CLI plugin for Gradle support
Other
25 stars 19 forks source link

fix: identfy subprojects by path #234

Closed magdziarek closed 2 years ago

magdziarek commented 2 years ago

What this does

This changes the way we identify projects in a multi module build. We have been using names of projects but because names can be duplicated, we want to use paths. This is a fix for customers' issue, where seeing two projects with the same name, Snyk overwrites the results of scanning one project with the other when using --file parameter. This change would break the way how --sub-project parameter works currently (it uses names) so we included a workaround. The issue with duplicate names will persist in this case. When there are duplicate names we will recommend using --file.

snyksec commented 2 years ago

:tada: This PR is included in version 3.24.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: