Skip to content

Commit 23e3511

Browse files
Add multiple outputs to readme
1 parent 99e6cf5 commit 23e3511

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,12 @@ You can also find the template for the default "table" output format in the same
388388

389389
Grype also includes a vast array of utility templating functions from [sprig](http://masterminds.github.io/sprig/) apart from the default golang [text/template](https://pkg.go.dev/text/template#hdr-Functions) to allow users to customize the output from Grype.
390390

391+
### Multiple Outputs
392+
Grype can also output *multiple* files in differing formats by appending `=<file>` to the option. For example, to output Grype JSON, Table, and templated HTML Report:
393+
```
394+
grype image -o json=grype.json -o table=grype.table -o template=grype.html -t ./templates/html.tmpl
395+
```
396+
391397
### Gating on severity of vulnerabilities
392398

393399
You can have Grype exit with an error if any vulnerabilities are reported at or above the specified severity level. This comes in handy when using Grype within a script or CI pipeline. To do this, use the `--fail-on <severity>` CLI flag.

0 commit comments

Comments
 (0)