snyk-to-html
Advanced tools
Comparing version 2.3.6 to 2.3.7
@@ -69,3 +69,3 @@ { | ||
}, | ||
"version": "2.3.6" | ||
"version": "2.3.7" | ||
} |
@@ -40,10 +40,35 @@ [![Snyk logo](https://snyk.io/style/asset/logo/snyk-print.svg)](https://snyk.io) | ||
Change directory to your package's root folder, then use of the two ways below to generate the HTML report. | ||
Snyk JSON to HTML Mapper mapper works with the different Snyk Products. Change the directory to your package's root folder, then use one of the ways below to generate the HTML report, using the appropriate product's command | ||
1. Directly streaming the results to snyk-to-html: | ||
Run the following line to create a file called `results.html`: | ||
**For Snyk Open Source** | ||
`snyk test --json | snyk-to-html -o results.html` | ||
Run the following line to create a file called `results-opensource.html`: | ||
`snyk test --json | snyk-to-html -o results-opensource.html` | ||
**For Snyk Code** | ||
Run the following line to create a file called `results-code.html`: | ||
`snyk code test --json | snyk-to-html -o results-code.html` | ||
**For Snyk Infrastructure as Code (IaC)** | ||
Navigate to the subfolder with the related files. | ||
Run the following line to create a file called `results-iac.html`: | ||
`snyk iac test --json | snyk-to-html -o results-iac.html` | ||
**For Snyk Container** | ||
Run the following line to create a file called `results-container.html`: | ||
`snyk container test [image] --json | snyk-to-html -o results-container.html` | ||
The following methods/examples will utilize snyk test, however they will also work with the other product commands , as above. | ||
2. Using a temporary file: | ||
@@ -87,3 +112,3 @@ | ||
Simply open your new file (`results.html` above) in a browser, and rejoice. | ||
Simply open your new file (`results-[type].html` as above) in a browser, and rejoice. | ||
@@ -90,0 +115,0 @@ ### License |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
172081
116