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

Uploaded Source

File details

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

File metadata

  • Download URL: trivy_py-0.71.2.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.71.2.tar.gz
Algorithm Hash digest
SHA256 dc72423acd5fe20daab1a33fe4e263650074055515bd3daa58f1aa141e24a87c
MD5 030a1cc0228796f2a0920f54a051c1ec
BLAKE2b-256 642b260a168988fe3ffd963091e80d9f78258b58d63bf26ddfd1bac23491db10

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