From dd3898ae5842543c91979b8a9b9b3f47bfdee874 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Mon, 12 Oct 2026 15:40:20 +0100 Subject: [PATCH] Await `toolcache.downloadTool` --- lib/entry-points.js | 2 +- src/start-proxy.ts | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/entry-points.js b/lib/entry-points.js index a2951f159..f22ad311f 100644 --- a/lib/entry-points.js +++ b/lib/entry-points.js @@ -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, diff --git a/src/start-proxy.ts b/src/start-proxy.ts index ca2f5c2b5..21a5012f1 100644 --- a/src/start-proxy.ts +++ b/src/start-proxy.ts @@ -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)}`,