Run the pack download command
This commit is contained in:
parent
06687e95c8
commit
d87945e9fd
9 changed files with 73 additions and 7 deletions
|
|
@ -178,6 +178,16 @@ export async function runQueries(
|
|||
}
|
||||
|
||||
try {
|
||||
if (hasPackWithCustomQueries) {
|
||||
const codeql = getCodeQL(config.codeQLCmd);
|
||||
const results = await codeql.packDownload(packsWithVersion);
|
||||
logger.info(
|
||||
`Downloaded packs: ${results.packs
|
||||
.map((r) => `${r.name}@${r.version || "latest"}`)
|
||||
.join(", ")}`
|
||||
);
|
||||
}
|
||||
|
||||
let analysisSummaryBuiltIn = "";
|
||||
const customAnalysisSummaries: string[] = [];
|
||||
if (queries["builtin"].length > 0) {
|
||||
|
|
@ -256,6 +266,7 @@ export async function runQueries(
|
|||
logger.endGroup();
|
||||
} catch (e) {
|
||||
logger.info(e);
|
||||
logger.info(e.stack);
|
||||
statusReport.analyze_failure_language = language;
|
||||
throw new CodeQLAnalysisError(
|
||||
statusReport,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue