dependency-submission-toolkit
dependency-submission-toolkit copied to clipboard
DRAFT: add HTTP proxy support
trafficstars
Users reasonably expect that the HTTP_PROXY and HTTPS_PROXY environment variables will be respected by dependency submission actions that rely on this library. However, those users are sadly disappointed for now.
This is little more than some notes on how to proceed here:
- if
HTTP_PROXYorHTTPS_PROXYis set, we'll use that to create a proxyAgent - we'll need to pass that proxyAgent as the
request.agentparam tooctokit.request - the tests can set up a fake proxy and use it to verify that the settings are being honored