mirror of
https://github.com/github/codeql-action.git
synced 2026-10-21 02:01:27 +00:00
Await toolcache.downloadTool
This commit is contained in:
2
lib/entry-points.js
generated
2
lib/entry-points.js
generated
@@ -187718,7 +187718,7 @@ async function getDownloadUrl(action, apiDetails) {
|
||||
}
|
||||
async function downloadProxy(logger2, url2, authorization) {
|
||||
try {
|
||||
return toolcache4.downloadTool(
|
||||
return await toolcache4.downloadTool(
|
||||
url2,
|
||||
/* dest: */
|
||||
void 0,
|
||||
|
||||
@@ -461,9 +461,14 @@ export async function downloadProxy(
|
||||
try {
|
||||
// Download the proxy archive from `url`. We let `downloadTool` choose where
|
||||
// to store it. The path to the downloaded file will be returned if successful.
|
||||
return toolcache.downloadTool(url, /* dest: */ undefined, authorization, {
|
||||
accept: "application/octet-stream",
|
||||
});
|
||||
return await toolcache.downloadTool(
|
||||
url,
|
||||
/* dest: */ undefined,
|
||||
authorization,
|
||||
{
|
||||
accept: "application/octet-stream",
|
||||
},
|
||||
);
|
||||
} catch (error) {
|
||||
logger.error(
|
||||
`Failed to download proxy archive from ${url}: ${getErrorMessage(error)}`,
|
||||
|
||||
Reference in New Issue
Block a user