snyk / snyk-to-html

export test reports from CLI to html
Other
88 stars 75 forks source link

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

Open KzDog opened 2 years ago

KzDog commented 2 years ago

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 commented 7 months ago

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

harmoncoffee commented 4 months ago

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)