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

For snyk code, the report template path is incorrect #135

Open
KzDog opened this issue Jun 28, 2022 · 2 comments
Open

For snyk code, the report template path is incorrect #135

KzDog opened this issue Jun 28, 2022 · 2 comments

Comments

@KzDog
Copy link

KzDog commented Jun 28, 2022

In Ubuntu 20.04, my command is:

SNYK_TOKEN=**** snyk code test --json-file-output=Snyk-Report.json
snyk-to-html -i Snyk-Report.json -o Snyk-Report.html -a

The output is "ENOENT: no such file or directory, open '/home/****/.nvm/versions/node/v16.15.1/lib/node_modules/snyk-to-html/template/test-report.code-snip.hbs'"

@theabecastillo
Copy link

Hey there, is there a way to change the base path for all the files and avoid this issue? Thanks

@harmoncoffee
Copy link

I am still seeing this as an issue. For me I get it because we're downloading it through curl from github as the releases. and then when you pass the -a option it causes this same (even on v2.5.1)

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

3 participants