Hi @arozanski_1087,
I'll do my best to answer your questions:
- When scanning an NPM project, the
input
parameter should be the path and name of thepackage.json
(ex:\wwwroot\package.json
). This will then parse thepackage-lock.json
for dependencies in that same folder. If this is what you are already doing, then can you please send over the command you are using and the full error you are receiving? - We currently do not support yarn, but we are definitely interested in expanding our support to include it. Would you have any interest in working with us on implementing this feature?
- Currently you will need to run the command twice; once for NuGet and once for NPM. The
inspect
command will work in an additive fashion and just append the new packages that were found into the ProGet project. This is something we are also looking to improve to add support to auto-scan both NuGet and NPM in one scan. As for the difference betweeninspect
andpublish
inspect
is the new command for ProGet 2022 and higher. This will add the dependencies to a Project in ProGet's SCA feature and is an overall better way to see your dependencies and it will link them to packages, vulnerabilities, and licenses in all your feeds.publish
is the ProGet v6 and v7 command and it will only add the dependencies to a single feed at a time directly on the package itself. This command also requires the feed to be passed to record the results.- You can also view the implementation differences furthur in our pgscan GitHub repository, https://github.com/Inedo/pgscan, if you would like to see more details.
I hope this answers all of your questions, but please let us know if you have more or need clarification on anything. Also, if you are interested in working to help us add improved support for the new features I mentioned, let us know and we can work together to get these features implemented.
Thanks,
Dan