Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanned path information is incorrect #134

Open
sebsnyk opened this issue Jun 24, 2022 · 0 comments
Open

Scanned path information is incorrect #134

sebsnyk opened this issue Jun 24, 2022 · 0 comments

Comments

@sebsnyk
Copy link
Collaborator

sebsnyk commented Jun 24, 2022

Given a results.json file as attached, which is based on 2 package files in:

./package.json
./frontend/package.json

Then, snyk-to-html outputs the scanned path information as follows:

Screenshot 2022-06-24 at 11 17 53

  • which lists the same folder twice.

This is incomplete and potentially misleading, the output should be extended to contain the package files:

/Users/sebastian/git/sebsnyk.juice-shop/package.json (npm)
/Users/sebastian/git/sebsnyk.juice-shop/frontend/package.json (npm)

The information is available in the results JSON and could be used:

    "displayTargetFile": "frontend/package-lock.json",
    "path": "/Users/sebastian/git/sebsnyk.juice-shop"

results.json.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant