Skip to content

Commit

Permalink
release: prepare v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
olsova committed Dec 11, 2024
1 parent c83795d commit 03a0887
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 38 deletions.
18 changes: 9 additions & 9 deletions README.md
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"
```
![image](https://user-images.githubusercontent.com/19297627/224302593-6873913c-d829-4769-84b6-643d00607a4a.png)
![image](https://user-images.githubusercontent.com/19297627/225588665-7b9dc56b-3326-4535-90f3-1dd81e389e5c.png)

### `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"
```
![image](https://user-images.githubusercontent.com/19297627/226530343-100e3064-0b0a-4860-a439-b6dfd97ac7c3.png)
![image](https://user-images.githubusercontent.com/19297627/226530361-65acc67e-64c0-45f4-b514-31c514284c2f.png)

## 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
```

2 changes: 1 addition & 1 deletion go.mod
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

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/spf13/cobra"
"golang.org/x/xerrors"

"github.com/afdesk/scan2html/render"
"github.com/afdesk/trivy-html/render"
)

func main() {
Expand All @@ -25,7 +25,7 @@ func main() {
func initRootCmd() (*cobra.Command, error) {
var fileName string
rootCmd := &cobra.Command{
Use: "scan2html",
Use: "trivy-html",
Short: "A Trivy plugin that scans and outputs the results to a html file.",
CompletionOptions: cobra.CompletionOptions{
DisableDefaultCmd: true,
Expand Down
51 changes: 25 additions & 26 deletions plugin.yaml
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

0 comments on commit 03a0887

Please sign in to comment.