ggshield secret scan pypi fails if the Python version is not supported by pip #458
Labels
status:confirmed
This issue has been reviewed and confirmed
status:new
This issue needs to be reviewed
type:bug
Something isn't working
Environment
Describe the bug
ggshield secret scan pypi
uses thepip
command to download packages to scan. If a package requires, for example, Python >= 3.11 and our version ofpip
is for Python 3.10, then the scan fails.Here is an example trying to scan vkpybot, which requires 3.11 with a 3.10 Python.
Possible solution
Use unearth instead of pip. The example below shows how unearth used with Python 3.8 finds vkpybot 0.1.10 even if it requires Python >=3.11.0:
This would probably solve #394 as well.
The text was updated successfully, but these errors were encountered: