-
Notifications
You must be signed in to change notification settings - Fork 1
Added compatibility for pip >v22.2.2 #277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Additionally, locked |
|
Resolved CodeSQL warning about polynomial regular expression. Unable to resolve warnings related to server-side request forgery. |
…ific; updated URL validation logic again
|
Successfully made contact with GitHub's CodeQL team. Will dismiss alert if unable to resolve issue by end of week. Current state of changes made:
|
|
|
||
| # Get HTTP response | ||
| url = f"https://pypi.org/simple/{package_clean}" | ||
| response = requests.get(url) |
Check failure
Code scanning / CodeQL
Partial server-side request forgery
Fixes issue #268.
As of
pip v22.3(in accordance with PEP 658),pipnow expects an additionalwhl.metadatafile to be served from the Simple Index it is using for the package installation. This file is not visible on the Simple Index web page, but is expected to be accessible by replacing.whlwith.whl.metadatain the URL.The bootstrap script previously only copied across what was explicitly visible on the PyPI Simple Index, so these implied URLs were not ported across as well. This commit fixes that by explicitly creating and displaying links to the
whl.metadataon the proxy server as well.Python versions tested: