Support passing local zstd-compressed bundles
This commit is contained in:
parent
6240306694
commit
379271d235
3 changed files with 9 additions and 5 deletions
6
lib/setup-codeql.js
generated
6
lib/setup-codeql.js
generated
|
|
@ -475,10 +475,12 @@ async function setupCodeQLBundle(toolsInput, apiDetails, tempDir, variant, defau
|
|||
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}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue