mirror of
https://github.com/github/codeql-action.git
synced 2026-05-09 07:10:22 +00:00
Specify Accept header for toolcache.downloadTool
This commit is contained in:
Generated
+8
-1
@@ -49682,7 +49682,14 @@ async function getProxyBinaryPath(logger) {
|
||||
const proxyInfo = await getDownloadUrl(logger);
|
||||
let proxyBin = toolcache.find(proxyFileName, proxyInfo.version);
|
||||
if (!proxyBin) {
|
||||
const temp = await toolcache.downloadTool(proxyInfo.url);
|
||||
const temp = await toolcache.downloadTool(
|
||||
proxyInfo.url,
|
||||
void 0,
|
||||
void 0,
|
||||
{
|
||||
accept: "application/octet-stream"
|
||||
}
|
||||
);
|
||||
const extracted = await toolcache.extractTar(temp);
|
||||
proxyBin = await toolcache.cacheDir(
|
||||
extracted,
|
||||
|
||||
@@ -192,7 +192,14 @@ async function getProxyBinaryPath(logger: Logger): Promise<string> {
|
||||
|
||||
let proxyBin = toolcache.find(proxyFileName, proxyInfo.version);
|
||||
if (!proxyBin) {
|
||||
const temp = await toolcache.downloadTool(proxyInfo.url);
|
||||
const temp = await toolcache.downloadTool(
|
||||
proxyInfo.url,
|
||||
undefined,
|
||||
undefined,
|
||||
{
|
||||
accept: "application/octet-stream",
|
||||
},
|
||||
);
|
||||
const extracted = await toolcache.extractTar(temp);
|
||||
proxyBin = await toolcache.cacheDir(
|
||||
extracted,
|
||||
|
||||
Reference in New Issue
Block a user