mirror of
https://github.com/github/codeql-action.git
synced 2026-04-29 18:30:14 +00:00
Add and use getProxyFilename
This commit is contained in:
Generated
+4
-1
@@ -119806,8 +119806,11 @@ async function cacheProxy(logger, source, filename, version) {
|
||||
throw new StartProxyError("Failed to add proxy to toolcache" /* CacheFailed */);
|
||||
}
|
||||
}
|
||||
function getProxyFilename() {
|
||||
return process.platform === "win32" ? `${UPDATEJOB_PROXY}.exe` : UPDATEJOB_PROXY;
|
||||
}
|
||||
async function getProxyBinaryPath(logger) {
|
||||
const proxyFileName = process.platform === "win32" ? `${UPDATEJOB_PROXY}.exe` : UPDATEJOB_PROXY;
|
||||
const proxyFileName = getProxyFilename();
|
||||
const proxyInfo = await getDownloadUrl(logger);
|
||||
let proxyBin = toolcache.find(proxyFileName, proxyInfo.version);
|
||||
if (!proxyBin) {
|
||||
|
||||
Reference in New Issue
Block a user