Metadata-Version: 2.1
Name: trivy_py
Version: 0.66.0.1
Summary: Python wrapper around invoking trivy (https://trivy.dev/)
Home-page: https://github.com/GaukeT/pre-commit-mirrors-trivy
Author: Gauke Teijema
Author-email: info@gauket.nl
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE

[![build status](https://github.com/GaukeT/pre-commit-mirrors-trivy/actions/workflows/main.yml/badge.svg)](https://github.com/GaukeT/pre-commit-mirrors-trivy/actions/workflows/main.yml)

# 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`:
```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
```

[trivy]: https://trivy.dev/
[pre-commit]: https://pre-commit.com
