Python - Pip, Pipenv, UV, poetry
See a breakdown of the file formats and features supported in Python.
Fortify SCA now tracks Python dependencies through:
Pip (using the older requirements.txt files)
Pipenv (using the newer Pipfile.lock files)
UV (using the newer uv.lock files)
poetry (using the newer poetry.lock files)
file fingerprinting, to find dependencies not defined in manifest-files
Pip
To achieve the fastest and most accurate results, create a file containing the resolved dependency tree before scanning. This can be accomplished using the High Performance Scans technology in Fortify SCA CLI. By executing the resolve command, the CLI automatically identifies all manifest files that lack the recommended lock files and generates them as needed. The first part of the name is based on the name of the file it was generated from. The file naming format is as follows:
<FILE_NAME>.pip.debricked.lockExample: .requirements.txt.pip.debricked.lock
If at least one of the supported files is committed to the repository, it will be automatically scanned for dependencies when integrated with the Fortify SCA CI/CD pipeline.
File fingerprinting
Fortify SCA supports scanning for Python dependencies not defined in manifest files through file fingerprinting. Fortify SCA database contains the hashes of .whl files as well as their unpacked contents (including .py files) for all packages in the Python package index (PyPI). This is used when comparing with the contents of your application, to ensure as accurate matches as possible.
For more information on file fingerprinting and how to set it up, see file fingerprinting.
Supported file formats and features
Pip
requirements.txt
Yes
Pipenv
Pipfile
Pipenv
Pipfile.lock
Yes
UV
pyproject.toml
Yes
UV
uv.lock
Yes*
poetry
pyproject.toml
Yes
poetry
poetry.lock
Yes*
-
fingerprinted files (.py, .txt, .sh, .c, .egg, .h and more**)
-
Pip
requirements.txt
Yes
Pipenv
Pipfile
Pipenv
Pipfile.lock
Yes
UV
pyproject.toml
Yes
UV
uv.lock
Yes*
poetry
pyproject.toml
Yes
poetry
poetry.lock
Yes*
-
fingerprinted files (.py, .txt, .sh, .c, .egg, .h and more**)
-
Pip
requirements.txt
Yes
Pipenv
Pipfile
Pipenv
Pipfile.lock
Yes
UV
pyproject.toml
Yes
UV
uv.lock
Yes*
poetry
pyproject.toml
Yes
poetry
poetry.lock
Yes*
-
fingerprinted files (.py, .txt, .sh, .c, .egg, .h and more**)
-
*This is a native lock file format. Native lock file formats are the fastest formats to scan.
Last updated
Was this helpful?

