From ac359aad20e59fd46ecd05e63c6d4b99cad25272 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Wed, 19 Nov 2025 14:59:16 +0000 Subject: [PATCH] Add return type --- src/setup-codeql.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/setup-codeql.ts b/src/setup-codeql.ts index 6a412d1df..16375421a 100644 --- a/src/setup-codeql.ts +++ b/src/setup-codeql.ts @@ -718,6 +718,14 @@ function getCanonicalToolcacheVersion( return cliVersion; } +interface SetupCodeQLResult { + codeqlFolder: string; + toolsDownloadStatusReport?: ToolsDownloadStatusReport; + toolsSource: ToolsSource; + toolsVersion: string; + zstdAvailability: tar.ZstdAvailability; +} + /** * Obtains the CodeQL bundle, installs it in the toolcache if appropriate, and extracts it. * @@ -731,7 +739,7 @@ export async function setupCodeQLBundle( defaultCliVersion: CodeQLDefaultVersionInfo, features: FeatureEnablement, logger: Logger, -) { +): Promise { if (!(await util.isBinaryAccessible("tar", logger))) { throw new util.ConfigurationError( "Could not find tar in PATH, so unable to extract CodeQL bundle.",