Python wrapper around invoking trivy (https://trivy.dev/)
Project description
trivy-py
A python wrapper to provide a pip-installable trivy binary.
Internally this package provides a convenient way to download the pre-built trivy binary for your particular platform.
installation
pip install trivy-py
usage
After installation, the trivy binary should be available in your
environment (or trivy.exe on windows).
As a pre-commit hook
See pre-commit for instructions
Sample .pre-commit-config.yaml:
- repo: https://github.com/GaukeT/pre-commit-mirrors-trivy
rev: v0.69.2.0
hooks:
- id: trivy-fs
args:
- --exit-code=1 # Example: set exit with code 1
- --debug # Example: enable debug output
- . # Example: scan current directory (provide DIR as last argument if `args` are used)
- id: trivy-config
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
trivy_py-0.69.2.0.tar.gz
(3.1 kB
view details)
File details
Details for the file trivy_py-0.69.2.0.tar.gz.
File metadata
- Download URL: trivy_py-0.69.2.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04d61c060b87a9521fcd48f6fd7c732bab35cb4f532e80b9787ac5159d0249f9
|
|
| MD5 |
9ff4497aa109b33b8fef7a0ff1893891
|
|
| BLAKE2b-256 |
767a274513be40a6bd838371220f06e2797ecaf8ec275551009d9ac14aa5bf30
|