mirror of
https://github.com/github/codeql-action.git
synced 2026-05-08 06:40:19 +00:00
Add proxy_binary input to start-proxy Action
This allows a custom binary to be used. Mainly for testing.
This commit is contained in:
Generated
+2
-1
@@ -112,7 +112,8 @@ async function runWrapper() {
|
||||
ca,
|
||||
};
|
||||
// Start the Proxy
|
||||
const proxyBin = await getProxyBinaryPath();
|
||||
const proxyBin = actionsUtil.getOptionalInput("proxy_binary") ??
|
||||
(await getProxyBinaryPath());
|
||||
await startProxy(proxyBin, proxyConfig, proxyLogFilePath, logger);
|
||||
}
|
||||
async function startProxy(binPath, config, logFilePath, logger) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -119,7 +119,9 @@ async function runWrapper() {
|
||||
};
|
||||
|
||||
// Start the Proxy
|
||||
const proxyBin = await getProxyBinaryPath();
|
||||
const proxyBin =
|
||||
actionsUtil.getOptionalInput("proxy_binary") ??
|
||||
(await getProxyBinaryPath());
|
||||
await startProxy(proxyBin, proxyConfig, proxyLogFilePath, logger);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,10 @@ name: "CodeQL: Start proxy"
|
||||
description: "[Experimental] Start HTTP proxy server. This action is for internal GitHub used only and will change without notice."
|
||||
author: "GitHub"
|
||||
inputs:
|
||||
proxy_binary:
|
||||
description: >-
|
||||
A path for the proxy binary to use.
|
||||
required: false
|
||||
registry_secrets:
|
||||
description: The URLs and credentials of package registries
|
||||
required: false
|
||||
|
||||
Reference in New Issue
Block a user