Support passing local zstd-compressed bundles

This commit is contained in:
Henry Mercer
2024-08-23 17:55:34 +01:00
parent 3bf847063c
commit 0edd5e8309
3 changed files with 9 additions and 5 deletions

6
lib/setup-codeql.js generated
View File

@@ -480,10 +480,12 @@ async function setupCodeQLBundleWithZstdOption(toolsInput, apiDetails, tempDir,
let toolsDownloadStatusReport;
let toolsSource;
switch (source.sourceType) {
case "local":
codeqlFolder = await toolcache.extractTar(source.codeqlTarPath);
case "local": {
const { outputPath } = await tar.extract(source.codeqlTarPath);
codeqlFolder = outputPath;
toolsSource = ToolsSource.Local;
break;
}
case "toolcache":
codeqlFolder = source.codeqlFolder;
logger.debug(`CodeQL found in cache ${codeqlFolder}`);