Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/k1low/trivy-db-to
trivy-db-to is a tool for migrating/converting vulnerability information from Trivy DB to other datasource.
https://github.com/k1low/trivy-db-to
migration-tool mysql postgresql trivy
Last synced: 7 days ago
JSON representation
trivy-db-to is a tool for migrating/converting vulnerability information from Trivy DB to other datasource.
- Host: GitHub
- URL: https://github.com/k1low/trivy-db-to
- Owner: k1LoW
- License: mit
- Created: 2020-12-03T07:13:30.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-09T19:10:02.000Z (3 months ago)
- Last Synced: 2024-10-19T13:25:15.163Z (20 days ago)
- Topics: migration-tool, mysql, postgresql, trivy
- Language: Go
- Homepage:
- Size: 657 KB
- Stars: 26
- Watchers: 2
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# trivy-db-to
[![build](https://github.com/k1LoW/trivy-db-to/workflows/build/badge.svg)](https://github.com/k1LoW/trivy-db-to/actions)
`trivy-db-to` is a tool for migrating/converting vulnerability information from [Trivy DB](https://github.com/aquasecurity/trivy-db) to other datasource.
## Usage
``` console
$ trivy-db-to mysql://root:[email protected]:3306/mydb
Fetching and updating Trivy DB ...
19.35 MiB / 19.35 MiB [--------------------------------------------------] 100.00% 2.58 MiB p/s 8s
done
Initializing vulnerability information tables ... done
Updating vulnerability information tables ...
>> Updating table 'vulnerabilities' ...
>> Update table 'vulnerability_advisories' ...
>>> GitHub Security Advisory Composer
>>> GitHub Security Advisory Maven
>>> GitHub Security Advisory Npm
>>> GitHub Security Advisory Nuget
>>> GitHub Security Advisory Pip
>>> GitHub Security Advisory Rubygems
>>> Oracle Linux 5
>>> Oracle Linux 6
>>> Oracle Linux 7
>>> Oracle Linux 8
>>> Photon OS 1.0
>>> Photon OS 2.0
>>> Photon OS 3.0
>>> Red Hat Enterprise Linux 5
>>> Red Hat Enterprise Linux 6
>>> Red Hat Enterprise Linux 7
[...]
>>> ubuntu 17.10
>>> ubuntu 18.04
>>> ubuntu 18.10
>>> ubuntu 19.04
>>> ubuntu 19.10
>>> ubuntu 20.04
done
```## Support datasource
- MySQL ( [schema](docs/schema/mysql/README.md) )
- PostgreSQL ( [schema](docs/schema/postgres/README.md) )
- SQLite ( [schema](docs/schema/sqlite/README.md) )## Install
**deb:**
``` console
$ export TRIVY_DB_TO_VERSION=X.X.X
$ curl -o trivy-db-to.deb -L https://github.com/k1LoW/trivy-db-to/releases/download/v$TRIVY_DB_TO_VERSION/trivy-db-to_$TRIVY_DB_TO_VERSION-1_amd64.deb
$ dpkg -i trivy-db-to.deb
```**RPM:**
``` console
$ export TRIVY_DB_TO_VERSION=X.X.X
$ yum install https://github.com/k1LoW/trivy-db-to/releases/download/v$TRIVY_DB_TO_VERSION/trivy-db-to_$TRIVY_DB_TO_VERSION-1_amd64.rpm
```**apk:**
``` console
$ export TRIVY_DB_TO_VERSION=X.X.X
$ curl -o trivy-db-to.apk -L https://github.com/k1LoW/trivy-db-to/releases/download/v$TRIVY_DB_TO_VERSION/trivy-db-to_$TRIVY_DB_TO_VERSION-1_amd64.apk
$ apk add trivy-db-to.apk
```**homebrew tap:**
```console
$ brew install k1LoW/tap/trivy-db-to
```**manually:**
Download binary from [releases page](https://github.com/k1LoW/trivy-db-to/releases)
**go install:**
```console
$ go install github.com/k1LoW/trivy-db-to@latest
```**docker:**
```console
$ docker pull ghcr.io/k1low/trivy-db-to:latest
```