Skip to content

A Python package to run Trivy security scans on Docker images, including the Trivy binary.

License

Notifications You must be signed in to change notification settings

alaxalves/trivyscan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trivyscan

trivyscan is a Python package that simplifies security scanning of Docker images using Trivy. It bundles the Trivy binary, so you don’t need to install Trivy separately.

🔍 Overview

Trivy is a comprehensive open-source vulnerability scanner for containers and other artifacts, capable of detecting CVEs and misconfigurations across code repositories, container images, file systems, and more.

trivyscan provides a Python wrapper to interact with Trivy programmatically, enabling integration with your own tools or CI/CD pipelines.

⚙️ Installation

Install via pip:

pip install trivyscan

🚀 Usage

Basic usage example:

from trivyscan import TrivyScan

scanner = TrivyScan()
scanner.scan_image('your-image-name:tag')

This will run a security scan on the specified Docker image.

📁 Project Structure

  • trivyscan/: Core module containing the logic to run Trivy
  • test/: Unit tests for the package
  • setup.py: Package installation configuration
  • requirements.txt: List of dependencies

🧪 Running Tests

Run the tests using:

python -m unittest discover test

🤝 Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

📄 License

This project is licensed under the MIT License.


For more information, visit the official repository: https://github.com/alaxalves/trivyscan

About

A Python package to run Trivy security scans on Docker images, including the Trivy binary.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages