Skip to main content

Python wrapper around invoking trivy (https://trivy.dev/)

Project description

build status

trivy-py

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

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.70.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.70.0.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file trivy_py-0.70.0.tar.gz.

File metadata

  • Download URL: trivy_py-0.70.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for trivy_py-0.70.0.tar.gz
Algorithm Hash digest
SHA256 2f42feaa04bd5c02a23cb12dae6f48a9a28bbd90fb31c528d1eef4f3d8bae3e5
MD5 5e2a62d7595812d6a3adb659bdd58c7d
BLAKE2b-256 f969fab41eedc3d33d44dfa973cb3dd54fb51d32645cba2da92026ad8a61640e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page