Skip to content

Trivy Bulk Scanner is a Go module that helps you scan a list of Docker images using Trivy.

Notifications You must be signed in to change notification settings

shsma/trivy-bulk-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trivy Bulk Scanner

Trivy Bulk Scanner is a Go module that helps you bulk scan a list of Docker images using Trivy.

Presentation

The Trivy Bulk Scanner script performs the following steps:

  1. Creates a "scan-reports" folder to store the scan reports.
  2. Reads the manifest.yaml file containing the list of Docker images.
  3. Parses the YAML content and extracts the list of saved images.
  4. Iterates over each image and performs the following actions:
    • Checks if the Docker image already exists locally.
    • If the image does not exist locally, pulls the image.
    • Performs a Trivy scan on the image.
    • Stores the Trivy scan report in a separate file.

How to Use

  1. Ensure you have Docker and Trivy installed on your system.

  2. Make sure to provide a correct manifest.yaml, place it at the root of the project.

  3. Open a terminal and navigate to the root directory of the project.

  4. Run the following command to execute the script:

    make run-scanner

About

Trivy Bulk Scanner is a Go module that helps you scan a list of Docker images using Trivy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published