reference Environment variables

ALL_PROXY

Also spelled
all_proxy
Value
a proxy URL with a scheme, such as http://proxy.example.com:3128
See also
HTTP_PROXY, HTTPS_PROXY

The proxy for all downloads that Opengrep makes, over http and https. HTTPS_PROXY and HTTP_PROXY take precedence for their own scheme, and the hosts listed in NO_PROXY are reached directly.

The lowercase all_proxy is also read; when both are set, ALL_PROXY takes precedence. The variable has no OPENGREP_ form.

Examples

Both schemes through one proxy

The host proxy.invalid does not exist, so a download through the proxy fails when Opengrep resolves the proxy.

app.py
eval(1)
Command and result
$ ALL_PROXY=http://proxy.invalid:3128 opengrep scan --config http://example.invalid/rules.yaml app.py 2>&1 | grep 'Failed to download'
error    Failed to download config from http://example.invalid/rules.yaml: Failure: resolution failed: name resolution failed
$ ALL_PROXY=http://proxy.invalid:3128 opengrep scan --config https://example.invalid/rules.yaml app.py 2>&1 | grep 'Failed to download'
error    Failed to download config from https://example.invalid/rules.yaml: Failure: resolution failed: name resolution failed