Skip to main content

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

Project description

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

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_ecc-0.71.2.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trivy_py_ecc-0.71.2.1-py2.py3-none-manylinux2014_x86_64.whl (49.5 MB view details)

Uploaded Python 2Python 3

File details

Details for the file trivy_py_ecc-0.71.2.1.tar.gz.

File metadata

  • Download URL: trivy_py_ecc-0.71.2.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for trivy_py_ecc-0.71.2.1.tar.gz
Algorithm Hash digest
SHA256 4a10163d116c810d83c12d03b40b431352c2703ab63f2dd30a0dd0c3842e935a
MD5 b99ef5eb13bfa33ee699d820108fb743
BLAKE2b-256 ece26b9bb1d936c9a86c53e55321343c28ef8f95db1db14d067f412ad6357c4b

See more details on using hashes here.

File details

Details for the file trivy_py_ecc-0.71.2.1-py2.py3-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for trivy_py_ecc-0.71.2.1-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b071471725a35fb7315d2669eb6af0372bce7226649b7fc9cc18f6f4ee0ba50
MD5 90d23ae72e7d09f7752a570d6ab17762
BLAKE2b-256 73f4a4a798c091e1103bb3af91ed22dcd6cae7d2e0d16196452523d49e38dc90

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