{"id":15445219,"url":"https://github.com/jhermann/dependency-check-py","last_synced_at":"2025-04-14T09:40:42.838Z","repository":{"id":62567658,"uuid":"45981273","full_name":"jhermann/dependency-check-py","owner":"jhermann","description":":closed_lock_with_key: Shim to easily install OWASP dependency-check-cli into Python projects","archived":false,"fork":false,"pushed_at":"2021-06-22T08:50:00.000Z","size":182,"stargazers_count":49,"open_issues_count":4,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T22:51:15.597Z","etag":null,"topics":["cli-utility","cve-scanning","dependency-analysis","owasp","python","security","security-audit","software-composition-analysis","software-supply-chain","vulnerability-detection"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jhermann.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-11T12:46:13.000Z","updated_at":"2024-06-13T06:40:20.000Z","dependencies_parsed_at":"2022-11-03T16:30:42.401Z","dependency_job_id":null,"html_url":"https://github.com/jhermann/dependency-check-py","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhermann%2Fdependency-check-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhermann%2Fdependency-check-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhermann%2Fdependency-check-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhermann%2Fdependency-check-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhermann","download_url":"https://codeload.github.com/jhermann/dependency-check-py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248395374,"owners_count":21096755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli-utility","cve-scanning","dependency-analysis","owasp","python","security","security-audit","software-composition-analysis","software-supply-chain","vulnerability-detection"],"created_at":"2024-10-01T19:44:21.388Z","updated_at":"2025-04-14T09:40:42.812Z","avatar_url":"https://github.com/jhermann.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"dependency-check\n================\n\n |Travis CI|  |GitHub Issues|  |License|  |Latest Version|\n\n\nShim to easily install the `OWASP dependency-check-cli`_ tool into Python projects.\n\n.. contents:: **Table of Contents**\n\n.. _setup-start:\n\n:Code:          https://github.com/jhermann/dependency-check-py#readme\n:Docs:          https://github.com/jeremylong/dependencycheck#readme\n:CI:            https://travis-ci.org/jhermann/dependency-check-py\n:Issues:        https://github.com/jhermann/dependency-check-py/issues\n\n\nOverview\n--------\n\n``dependency-check`` scans application dependencies and checks whether they contain any published vulnerabilities\n(based on the NIST `NVD`_).\nIt runs in the JVM, so you need some form of ``java`` available in your ``PATH``.\nThe script should work on Linux, Mac OSX and Windows, but right now is only tested on Linux.\n\n\nUsage\n-----\n\nAfter installation, you'll have the ``dependency-check`` command available that, on first use,\nwill automatically download and install the OWASP release archive once for all projects.\nIt'll then redirect any calls to that installation, meaning the downloaded NVD data is shared\namongst projects.\n\n.. code-block::\n\n    dependency-check --disableAssembly -s . -o build --project \"$(python ./setup.py --name)\" \\\n        --exclude \".git/**\" --exclude \".venv/**\" --exclude \"**/__pycache__/**\" --exclude \".tox/**\" \\\n        \u0026\u0026 xdg-open build/dependency-check-report.html\n\nPlease see the `DependencyCheck site`_ for more configuration and usage details.\n\nTo install from PyPI, add ``dependency-check`` to your ``dev-requirements.txt``\nor a similar file. For more installation options, see the “Installation” section below.\n\n |Installation Demo|\n\n\nCustomization\n-------------\n\nUsing environment variables, you can change the version and download location of the release archive,\nand the directory for the local installation.\n\n=============================== ==============================================================================================\nVariable                        Default\n=============================== ==============================================================================================\n``DEPENDENCY_CHECK_VERSION``    ``6.2.2``\n``DEPENDENCY_CHECK_URL``        ``https://github.com/jeremylong/DependencyCheck/releases/download/v{version}/dependency-check-{version}-release.zip``\n``DEPENDENCY_CHECK_HOME``       ``~/.local/dependency-check``\n``DEPENDENCY_CHECK_NVD_URL``    *Use NIST NVD URLs*\n=============================== ==============================================================================================\n\nTo update to a new version of the OWASP software,\ndelete ``~/.local/dependency-check/bin/``,\nset ``DEPENDENCY_CHECK_VERSION`` to the new version number,\nand call ``dependency-check``.\n\nThe variable ``DEPENDENCY_CHECK_NVD_URL`` can be used to point to a local copy of the various NVD feeds,\nin a flat hierarchy with compressed JSON files.\n\n.. code-block:: shell\n\n    export DEPENDENCY_CHECK_NVD_URL='https://repo.local/nvd/nvdcve-1.1-%d.json.gz'\n\nIf you set this, the options ``--cveUrlBase`` and ``--cveUrlModified`` will be added to each call.\nNote that the ``%d`` representing the year is replaced by ``modified`` for the latter.\n\nRemove the ``~/.local/dependency-check/data/`` directory to force a full data reload.\n\n\nInstallation\n------------\n\nTo just get the ``dependency-check`` CLI tool installed into your home,\nindependent of any project, call ``python3 -m pip install --user dependency-check`` as usual,\nsee `releases`_ for an overview of available versions.\n\nIf you prefer an **isolated and easily removable venv installation**,\nconsider using `dephell jail install dependency-check`_ instead.\n\nTo get a bleeding-edge version from source, use these commands::\n\n    repo=\"jhermann/dependency-check-py\"\n    python3 -m pip install -r \"https://raw.githubusercontent.com/$repo/master/requirements.txt\"\n    python3 -m pip install \"https://github.com/$repo/archive/master.zip#egg=dependency-check\"\n\nAs a developer, to create a working directory for this project, call these commands::\n\n    git clone \"https://github.com/jhermann/dependency-check-py.git\"\n    cd \"dependency-check-py\"\n    command . .env --yes --develop\n    invoke build --docs test check\n\nYou might also need to follow some\n`setup procedures \u003chttps://py-generic-project.readthedocs.io/en/latest/installing.html#quick-setup\u003e`_\nto make the necessary basic commands available on *Linux*, *Mac OS X*, and *Windows*.\n\n\nOther Python Security Tools\n---------------------------\n\n* `openstack/bandit`_ – Security linter designed to find common security issues in Python code, by static AST analysis.\n* `pyupio/safety`_ – Safety checks your installed dependencies for known security vulnerabilities.\n\n  * `pyupio/safety-db`_ – A curated database of security vulnerabilities in Python packages.\n\n* `eliasgranderubio/dagda`_ – Static analysis of known vulnerabilities, trojans, viruses, malware \u0026 other malicious threats in Docker images, and runtime monitoring of containers for anomalous activities.\n* `anchore/anchore-engine`_ – A service for inspection, analysis and certification of container images, provided as a ready-to-deploy Docker container image.\n* `sonatype-nexus-community/jake`_ – An OSS Index integration to check your Conda environments for vulnerable Open Source packages.\n\n* `vintasoftware/python-linters-and-code-analysis`_ – Curated list of Python linters and code analysis tools.\n\n\n.. _`openstack/bandit`: https://github.com/openstack/bandit\n.. _`pyupio/safety`: https://github.com/pyupio/safety\n.. _`pyupio/safety-db`: https://github.com/pyupio/safety-db\n.. _`eliasgranderubio/dagda`: https://github.com/eliasgranderubio/dagda\n.. _`anchore/anchore-engine`: https://github.com/anchore/anchore-engine\n.. _`vintasoftware/python-linters-and-code-analysis`: https://github.com/vintasoftware/python-linters-and-code-analysis\n.. _`sonatype-nexus-community/jake`: https://github.com/sonatype-nexus-community/jake\n\n.. _`NVD`: https://nvd.nist.gov/\n.. _`OWASP dependency-check-cli`: https://github.com/jeremylong/dependencycheck#readme\n.. _`DependencyCheck site`: https://www.owasp.org/index.php/OWASP_Dependency_Check\n.. _`pip script installer`: https://github.com/mitsuhiko/pipsi#pipsi\n.. _`releases`: https://github.com/jhermann/dependency-check-py/releases\n.. _`dephell jail install dependency-check`: https://dephell.readthedocs.io/cmd-jail-install.html\n\n.. |Installation Demo| image:: https://raw.githubusercontent.com/jhermann/dependency-check-py/master/dependency_check.gif\n\n.. |Travis CI| image:: https://api.travis-ci.org/jhermann/dependency-check-py.svg\n    :target: https://travis-ci.org/jhermann/dependency-check-py\n.. |Coveralls| image:: https://img.shields.io/coveralls/jhermann/dependency-check-py.svg\n    :target: https://coveralls.io/r/jhermann/dependency-check-py\n.. |GitHub Issues| image:: https://img.shields.io/github/issues/jhermann/dependency-check-py.svg\n    :target: https://github.com/jhermann/dependency-check-py/issues\n.. |License| image:: https://img.shields.io/pypi/l/dependency-check.svg\n    :target: https://github.com/jhermann/dependency-check-py/blob/master/LICENSE\n.. |Development Status| image:: https://img.shields.io/pypi/status/dependency-check.svg\n    :target: https://pypi.python.org/pypi/dependency-check/\n.. |Latest Version| image:: https://img.shields.io/pypi/v/dependency-check.svg\n    :target: https://pypi.python.org/pypi/dependency-check/\n.. |Download format| image:: https://img.shields.io/pypi/format/dependency-check.svg\n    :target: https://pypi.python.org/pypi/dependency-check/\n.. |Downloads| image:: https://img.shields.io/pypi/dw/dependency-check.svg\n    :target: https://pypi.python.org/pypi/dependency-check/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhermann%2Fdependency-check-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhermann%2Fdependency-check-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhermann%2Fdependency-check-py/lists"}