osv-scanner
osv-scanner copied to clipboard
[pkg] implement NuGet ecosystem parser
Adds support to scan packages.lock.json
files which are lock files
for the NuGet ecosystem.
Closes #51
Closes #51
Would you mind putting the "Closes #51" in the PR description? linking doesn't work with comments, and I can't edit PR descriptions :)
Sure, done!
Thank you for your PR. The current committers are on vacation and we will review it early next year and then release as part of the the next minor release 1.0.x release.
/gcbrun
/gcbrun
@oliverchang I thought about the version verification as well already, for now I've added a check to ensure it's version 1
. This isn't optimal since the error the user sees now is: Attempted to scan lockfile but failed: /Users/shawnfunke/tmp/nuget/packages.lock.json
, it doesn't tell the user that the lock file version is unsupported.
Also there should probably be dedicated utilities for the parsers since right now the NuGet and Go parser makes use of the pkgDetailsMapToSlice
function which is located in the NPM parser file.
/gcbrun