-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
37 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
# scan2html | ||
# trivy-html | ||
A Trivy plugin that scans and outputs the results to a html file. | ||
|
||
```sh | ||
$ trivy image alpine:3.14.1 -f json --output plugin=scan2html --output-plugin-arg "--output=result.html" | ||
$ trivy image alpine:3.14.1 -f json --output plugin=trivy-html --output-plugin-arg "--output=result.html" | ||
``` | ||
 | ||
 | ||
|
||
### `scan2html` supports `--list-all-pkgs` | ||
### `trivy-html` supports `--list-all-pkgs` | ||
```sh | ||
$ trivy image alpine:3.14.1 -f json --list-all-pkgs --output plugin=scan2html --output-plugin-arg "--output=result.html" | ||
$ trivy image alpine:3.14.1 -f json --list-all-pkgs --output plugin=trivy-html --output-plugin-arg "--output=result.html" | ||
``` | ||
 | ||
 | ||
|
||
## Install | ||
```sh | ||
$ trivy plugin install github.com/afdesk/scan2html | ||
$ trivy plugin install github.com/afdesk/trivy-html | ||
|
||
$ trivy scan2html -h | ||
$ trivy trivy-html -h | ||
|
||
A Trivy plugin that scans and outputs the results to a html file. | ||
|
||
Usage: | ||
scan2html [flags] | ||
trivy-html [flags] | ||
|
||
Flags: | ||
-h, --help help for scan2html | ||
-h, --help help for trivy-html | ||
--output string file to save html report (default "trivy-report.html") | ||
``` | ||
|
||
## Uninstall | ||
```sh | ||
trivy plugin uninstall scan2html | ||
trivy plugin uninstall trivy-html | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module github.com/afdesk/scan2html | ||
module github.com/afdesk/trivy-html | ||
|
||
go 1.23.3 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,66 @@ | ||
name: "scan2html" | ||
repository: github.com/afdesk/scan2html | ||
version: "0.2.0" | ||
name: "trivy-html" | ||
repository: github.com/afdesk/trivy-html | ||
version: "0.3.0" | ||
usage: scan targets into a html file | ||
description: |- | ||
A Trivy plugin that scans and outputs the results to a html file. | ||
trivy scan2html [-h,--help] command target filename | ||
platforms: | ||
- selector: | ||
os: linux | ||
arch: amd64 | ||
uri: https://github.com/afdesk/scan2html/releases/download/v0.2.0/scan2html_0.2.0_linux-amd64.tar.gz | ||
bin: ./scan2html | ||
uri: https://github.com/afdesk/trivy-html/releases/download/v0.3.0/trivy-html_0.3.0_linux-amd64.tar.gz | ||
bin: ./trivy-html | ||
- selector: | ||
os: linux | ||
arch: arm | ||
uri: https://github.com/afdesk/scan2html/releases/download/v0.2.0/scan2html_0.2.0_linux-arm.tar.gz | ||
bin: ./scan2html | ||
uri: https://github.com/afdesk/trivy-html/releases/download/v0.3.0/trivy-html_0.3.0_linux-arm.tar.gz | ||
bin: ./trivy-html | ||
- selector: | ||
os: linux | ||
arch: arm64 | ||
uri: https://github.com/afdesk/scan2html/releases/download/v0.2.0/scan2html_0.2.0_linux-arm64.tar.gz | ||
bin: ./scan2html | ||
uri: https://github.com/afdesk/trivy-html/releases/download/v0.3.0/trivy-html_0.3.0_linux-arm64.tar.gz | ||
bin: ./trivy-html | ||
- selector: | ||
os: linux | ||
arch: s390x | ||
uri: https://github.com/afdesk/scan2html/releases/download/v0.2.0/scan2html_0.2.0_linux-s390x.tar.gz | ||
bin: ./scan2html | ||
uri: https://github.com/afdesk/trivy-html/releases/download/v0.3.0/trivy-html_0.3.0_linux-s390x.tar.gz | ||
bin: ./trivy-html | ||
- selector: | ||
os: linux | ||
arch: ppc64le | ||
uri: https://github.com/afdesk/scan2html/releases/download/v0.2.0/scan2html_0.2.0_linux-ppc64le.tar.gz | ||
bin: ./scan2html | ||
uri: https://github.com/afdesk/trivy-html/releases/download/v0.3.0/trivy-html_0.3.0_linux-ppc64le.tar.gz | ||
bin: ./trivy-html | ||
- selector: | ||
os: linux | ||
arch: 386 | ||
uri: https://github.com/afdesk/scan2html/releases/download/v0.2.0/scan2html_0.2.0_linux-386.tar.gz | ||
bin: ./scan2html | ||
uri: https://github.com/afdesk/trivy-html/releases/download/v0.3.0/trivy-html_0.3.0_linux-386.tar.gz | ||
bin: ./trivy-html | ||
|
||
- selector: | ||
os: darwin | ||
arch: amd64 | ||
uri: https://github.com/afdesk/scan2html/releases/download/v0.2.0/scan2html_0.2.0_darwin-amd64.tar.gz | ||
bin: ./scan2html | ||
uri: https://github.com/afdesk/trivy-html/releases/download/v0.3.0/trivy-html_0.3.0_darwin-amd64.tar.gz | ||
bin: ./trivy-html | ||
- selector: | ||
os: darwin | ||
arch: arm64 | ||
uri: https://github.com/afdesk/scan2html/releases/download/v0.2.0/scan2html_0.2.0_darwin-arm64.tar.gz | ||
bin: ./scan2html | ||
uri: https://github.com/afdesk/trivy-html/releases/download/v0.3.0/trivy-html_0.3.0_darwin-arm64.tar.gz | ||
bin: ./trivy-html | ||
|
||
- selector: | ||
os: freebsd | ||
arch: 386 | ||
uri: https://github.com/afdesk/scan2html/releases/download/v0.2.0/scan2html_0.2.0_freebsd-386.tar.gz | ||
bin: ./scan2html | ||
uri: https://github.com/afdesk/trivy-html/releases/download/v0.3.0/trivy-html_0.3.0_freebsd-386.tar.gz | ||
bin: ./trivy-html | ||
- selector: | ||
os: freebsd | ||
arch: amd64 | ||
uri: https://github.com/afdesk/scan2html/releases/download/v0.2.0/scan2html_0.2.0_freebsd-amd64.tar.gz | ||
bin: ./scan2html | ||
uri: https://github.com/afdesk/trivy-html/releases/download/v0.3.0/trivy-html_0.3.0_freebsd-amd64.tar.gz | ||
bin: ./trivy-html | ||
|
||
- selector: | ||
os: windows | ||
arch: amd64 | ||
uri: https://github.com/afdesk/scan2html/releases/download/v0.2.0/scan2html_0.2.0_windows-amd64.zip | ||
bin: ./scan2html | ||
uri: https://github.com/afdesk/trivy-html/releases/download/v0.3.0/trivy-html_0.3.0_windows-amd64.zip | ||
bin: ./trivy-html |