Thanks to visit codestin.com
Credit goes to github.com

Skip to content

trivy-db-to is a tool for migrating/converting vulnerability information from Trivy DB to other datasource.

License

Notifications You must be signed in to change notification settings

y4ney/trivy-db-to

 
 

Repository files navigation

trivy-db-to

构建状态

trivy-db-to 是一款用于将 Trivy DB 中的漏洞信息迁移或转换到其他数据源的工具。

使用示例

  1. 转化为 MySQL。

    trivy-db-to mysql://user:password@ip_address:port/dbname
  2. 转化为 SQLite

    trivy-db-to sqlite:///path/to/file.db
  3. 转化为 PostgreSQL。

    trivy-db-to postgresql://user:password@ip_address:port/dbname?sslmode=disable

img.png

支持的数据源

安装方式

  • Debian 包 (deb)

    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
    sudo dpkg -i trivy-db-to.deb
  • RPM 包

    export TRIVY_DB_TO_VERSION=X.X.X
    sudo 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
  • Alpine 包 (apk)

    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
    sudo apk add trivy-db-to.apk
  • Homebrew 安装

    brew install k1LoW/tap/trivy-db-to
  • 手动下载:从 发布页面 下载对应平台的二进制文件。

  • 通过 Go 安装

    go install github.com/y4ney/trivy-db-to@latest
  • Docker 镜像

    docker pull y4ney/trivy-db-to:latest

About

trivy-db-to is a tool for migrating/converting vulnerability information from Trivy DB to other datasource.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 93.4%
  • Makefile 5.7%
  • Dockerfile 0.9%