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.
pip install trivy-py-eccAfter installation, the trivy binary should be available in your
environment (or trivy.exe on windows).
See pre-commit for instructions
Sample .pre-commit-config.yaml:
- repo: https://github.com/eccenca/pre-commit-mirrors-trivy
rev: v0.68.1.1
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