phylum-dev / cli

Command line interface for the Phylum API
https://phylum.io
GNU General Public License v3.0
101 stars 10 forks source link

Allow more valid `pip` sources #1349

Closed maxrake closed 6 months ago

maxrake commented 6 months ago

Overview

It has been observed that users with their primary/active python3/pip binary located in ~/.local are not able to perform lockfile generation on pip manifest files. This is a valid location for pip to exist and should be supported. Updates to sandbox exceptions are likely needed.

Additional Guidance

A workaround exists to bypass the sandbox with the --skip-sandbox option. However, this is not recommended unless the fully resolved set of dependencies are already known and trusted since arbitrary code execution is possible without the sandbox.

Acceptance Criteria

louislang commented 6 months ago

@phylum-dev/user-components This should be treated as critical. It's blocking a customer, we need to unblock them asap!

cd-work commented 6 months ago

For personal reference:

$ pip3 --version
pip 23.3.2 from /home/ubuntu/.local/lib/python3.8/site-packages/pip (python 3.8)
$ python3 -m pip --version
pip 23.3.2 from /home/ubuntu/.local/lib/python3.8/site-packages/pip (python 3.8)