mirror of
https://github.com/github/codeql-action.git
synced 2026-05-04 12:50:14 +00:00
Support passing local zstd-compressed bundles
This commit is contained in:
Generated
+4
-2
@@ -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}`);
|
||||
|
||||
File diff suppressed because one or more lines are too long
+4
-2
@@ -672,10 +672,12 @@ async function setupCodeQLBundleWithZstdOption(
|
||||
let toolsDownloadStatusReport: ToolsDownloadStatusReport | undefined;
|
||||
let toolsSource: 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}`);
|
||||
|
||||
Reference in New Issue
Block a user