Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.58 KB

README.md

File metadata and controls

41 lines (33 loc) · 1.58 KB

Trivy Database Downloader

Synopsis

This script downloads the Trivy database without using Docker or Oras as described in the Trivy documentation in restrited environments. See: Trivy Air-Gap Documentation.

Description

This script queries the GitHub Container Registry API to get access tokens, lists the available tags for the desired Trivy databases (trivy-db and trivy-java-db), allows the user to select a specific tag, and downloads the corresponding database using system or custom proxy settings.

Usage

  1. Linux
    git clone https://github.com/GhioRodolphe/trivy-db-downloader.git
    cd trivy-db-downloader
    chmod +x get-trivy-db.sh
    ./get-trivy-db.sh
  2. Windows
    git clone https://github.com/GhioRodolphe/trivy-db-downloader.git
    cd trivy-db-downloader
    .\Get-TrivyDB.ps1

The script will prompt you to select a tag for each database and download the corresponding files.

Output

  • manifestFile-trivy-db.json
  • trivy-db.tar.gz
  • manifestFile-trivy-java-db.json
  • manifestFile-trivy-java-db.tar.gz

References

Notes

Version: 0.1

Author: GHIO Rodolphe

If you have any questions, feel free to contact me.