Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.05 KB

File metadata and controls

39 lines (28 loc) · 1.05 KB

build status

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/GaukeT/pre-commit-mirrors-trivy
  rev: v0.69.1.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