Python wrapper around invoking trivy (https://trivy.dev/)
Project description
pre-commit-mirrors-trivy
pre-commit hook that mirrors the trivy for usage as pre-commit language
Internally this package provides a convenient way to download the pre-built trivy binary for your particular platform.
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.66.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.66.0.1.tar.gz
(3.0 kB
view details)
File details
Details for the file trivy_py-0.66.0.1.tar.gz.
File metadata
- Download URL: trivy_py-0.66.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e33a7b6996cf628fb7691027075231ff4f0ca03748b423e1b7a0782ac68fd5bb
|
|
| MD5 |
bf931cdb09204f0ec190ecb5e3be09de
|
|
| BLAKE2b-256 |
0a3b5944d1b4cb6a3afbad34d972377d774dbef0637553eebbaff0cc443633aa
|