Await toolcache.downloadTool

This commit is contained in:
Michael B. Gale
2026-10-12 15:40:20 +01:00
parent 3d7016f514
commit dd3898ae58
2 changed files with 9 additions and 4 deletions

2
lib/entry-points.js generated
View File

@@ -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,

View File

@@ -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)}`,