Skip to content

Commit 6e35f86

Browse files
committed
Add proxy_binary input to start-proxy Action
This allows a custom binary to be used. Mainly for testing.
1 parent f843d94 commit 6e35f86

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

lib/start-proxy-action.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/start-proxy-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/start-proxy-action.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ async function runWrapper() {
119119
};
120120

121121
// Start the Proxy
122-
const proxyBin = await getProxyBinaryPath();
122+
const proxyBin =
123+
actionsUtil.getOptionalInput("proxy_binary") ??
124+
(await getProxyBinaryPath());
123125
await startProxy(proxyBin, proxyConfig, proxyLogFilePath, logger);
124126
}
125127

start-proxy/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: "CodeQL: Start proxy"
22
description: "[Experimental] Start HTTP proxy server. This action is for internal GitHub used only and will change without notice."
33
author: "GitHub"
44
inputs:
5+
proxy_binary:
6+
description: >-
7+
A path for the proxy binary to use.
8+
required: false
59
registry_secrets:
610
description: The URLs and credentials of package registries
711
required: false

0 commit comments

Comments
 (0)