fosstars-rating-core
fosstars-rating-core copied to clipboard
Make VulnerabilitiesFromGitHubAdvisories great
VulnerabilitiesFromGitHubAdvisories
is not a full-fledge DataProvider
The above Data provider does not handle all the PackageManagers
. Also, it doesn't recursively parse through all the types of PackageManagers
config files
-
pom.xml
forMAVEN
-
build.gradle
forGRADLE
-
package-lock.json
andpackage.json
forNPM
-
yarn.lock
andpackage.json
forYARN
-
.csproj
,.vbproj
,.vcxproj
,.fsproj
,packages.config
and.nuspec
forDOTNET
-
Gemfile.lock
,Gemfile
and.gemspec
forRUBYGEMS
-
composer.json
andcomposer.lock
forCOMPOSER
Hence, we need to generalize how VulnerabilitiesFromGitHubAdvisories
is looking for config files and extracting the project identifier
E.g: ecosystem
MAVEN
and identifier
com.fasterxml.jackson.core:jackson-databind
for GitHub project FasterXML/jackson-databind
Things to do
- [ ] Recursively find all the possible config files associated with the
PackageManagers
- [ ] Parse through them to get the
identifier
- [ ] Make sure that the recursive search also finds
identifiers
of itssub-modules
andsub-projects
- [ ] The Data Provider must return all possible advisories for all the
identifiers
found