mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Log whether the proxy is picked up on
This commit is contained in:
6
lib/entry-points.js
generated
6
lib/entry-points.js
generated
@@ -145629,8 +145629,12 @@ function getRegistryProxy(action) {
|
||||
const port = action.env.getOptional("CODEQL_PROXY_PORT" /* PROXY_PORT */);
|
||||
const cert = action.env.getOptional("CODEQL_PROXY_CA_CERTIFICATE" /* PROXY_CA_CERTIFICATE */);
|
||||
if (host && port) {
|
||||
const uri = `http://${host}:${port}`;
|
||||
action.logger.debug(
|
||||
`Using private registry proxy at '${uri}' for API client.`
|
||||
);
|
||||
return new import_undici.ProxyAgent({
|
||||
uri: `http://${host}:${port}`,
|
||||
uri,
|
||||
keepAliveTimeout: 10,
|
||||
keepAliveMaxTimeout: 10,
|
||||
requestTls: cert ? { ca: cert } : void 0
|
||||
|
||||
Reference in New Issue
Block a user