-
Notifications
You must be signed in to change notification settings - Fork 2
pnpmLockfilePath also looking for package.json
#10
Comments
Hello, I am Mathilde from technical services team at Snyk. Thank you, |
Hi Mathilde, I work with @shailygupta. One thing to keep in mind with this request is the context of why we have these files in two locations: The reason that we are asking for the ability to specify the For example, as a crude experiment before your proposed modifications, I copied the
Thus, assuming my test is valid, it appears there's more to the story than just a new argument for this github action (and the underlying Please note that I've also raised a support request with Snyk Support on this subject. Thanks, |
Hi @collinroth @shailygupta , Thank you for the clarification. If you hit this error it might be because you lockfile link package together and having move the lockfile the link is not valid anymore. Are you able to share more information about your configuration? and maybe share some files? In the meantime I will start looking into pnpm monorepo configuration. Thank you, |
Hi, Apologies I just saw that you already gave me the file structure in the previous message. Thank you, |
Hello, I have setup my own rush project and was able to reproduce the error.
and then later:
For a dependency like this ( '@rush-temp/goof': file:projects/goof.tgz) our parser will then look for : @rush-temp/goof/file:projects/goof.tgz to get the details and subdependencies but as you can see in my example the name doesn't correspond which make the parser fail. I am looking to add support for this configuration and will then look at updating the api tool and github action. I think Nora will be in touch with you to setup a meeting and have a look at your configuration. Thank you, |
Hi @collinroth @shailygupta , I wanted to let you know I've released a new version of the snyk-pnpm-deptree-api-tool today with support for monorepo (new optionnal parameter --manifestFilePath ) if you would like to try. I am working on the github action and will update you when available. Thank you, |
Hello @mathild3r , I've tried your new version of the Any suggestions? |
Issue
We are currently attempting to utilize this action to scan and test our pnpm project, however, we are running into the following issue:
.github/workflows/snyk.yaml
Directory structure:
common/config/rush
while thepackage.json
is in the app's directory.Expected
An optional variable that allows the specification of the
package.json
path as well in the actionThe text was updated successfully, but these errors were encountered: