使用 pip-audit 稽核 Python 環境與需求檔案中的已知漏洞 是做什麼的?
在部署、升級或核准依賴項變更前,檢查 Python 環境與需求檔案中是否存在已公開的漏洞。
先決條件
Python 3.9+、pip、pip-audit
安裝
請使用符合您環境的上游安裝或設定方式:
- pip-audit
- pip-audit 是一個用於掃描 Python 環境中的套件是否存在已知漏洞的工具
- pip-audit 需要 Python 3.10 或更新版本,並可直接透過 pip 安裝:
- python -m pip install pip-audit
上游的需求與注意事項:
基本用法或入門說明:
-
bash
-
第三方套件
-
擷取自上游文件:https://raw.githubusercontent.com/pypa/pip-audit/HEAD/README.md