Files
vuls/contrib/trivy
tk007 be7b9114cc feat(PackageURL):add package URL for library scan result (#1862)
* add: package url in model.Library

* feat(trivy-to-vuls): add purl for library scan result

* feat(scanner/library): add purl for lockfile scan result

* fix: model.Library test

* fix: trivy-to-vuls test data

* fix: panic case to generate purl

* fix: add blank line

* fix: trivy-to-vuls for using Trivy version 0.49.0 or earlier

* fix: remove comment

* fix: remove print

* fix: testcase for Package.Identifier does not exist version

* fix: add blank line

* fix: expected libs

* fix: PackageURL -> PURL

* fix: blank line
2024-03-07 16:21:15 +09:00
..
2020-05-29 18:06:45 +09:00

trivy-to-vuls

Main Features

  • convert trivy's results json to vuls's report json

Installation

git clone https://github.com/future-architect/vuls.git
make build-trivy-to-vuls

Command Reference

Parse trivy json to vuls results

Usage:
  trivy-to-vuls parse [flags]

Flags:
  -h, --help                          help for parse
  -s, --stdin                         input from stdin
  -d, --trivy-json-dir string         trivy json dir (default "./")
  -f, --trivy-json-file-name string   trivy json file name (default "results.json")

Usage

  • use trivy output
 trivy -q image -f=json python:3.4-alpine | trivy-to-vuls parse --stdin