Python wrapper around invoking trivy (https://trivy.dev/)
Project description
trivy-py-ecc
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-ecc
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/eccenca/pre-commit-mirrors-trivy
rev: v0.67.2.4
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trivy_py_ecc-0.67.2.4.tar.gz.
File metadata
- Download URL: trivy_py_ecc-0.67.2.4.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cec952aa83106093501ab390c8374c925472656ed5e1afd8a24337b433f49a5b
|
|
| MD5 |
a575a3a33613dd44a8a05ffca52aec3c
|
|
| BLAKE2b-256 |
d4c118db48b6c8bb59e9d43b53da284098196b2c8b1e34e149864991998b4fe6
|
File details
Details for the file trivy_py_ecc-0.67.2.4-py2.py3-none-manylinux2014_x86_64.whl.
File metadata
- Download URL: trivy_py_ecc-0.67.2.4-py2.py3-none-manylinux2014_x86_64.whl
- Upload date:
- Size: 46.3 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d6a35fa6dec74fef9602e87d096893c49820393e5b7b6c1f5bcb923705df4e9
|
|
| MD5 |
910992676fa70cfbbc9b8061ba82c3f7
|
|
| BLAKE2b-256 |
d57f99959c1983329c9edd7e78c3d8b46a002355d42d582d7d6539729a0aa1c2
|