Skip to content

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

Notifications You must be signed in to change notification settings

GRodolphe/trivy-db-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published