Revert "Revert usage of --codescanning-config flag"

This reverts commit 43d066495c.
This commit is contained in:
Andrew Eisenberg 2022-06-16 18:10:13 -07:00
parent e8c48cc8cf
commit 237260b693
7 changed files with 76 additions and 9 deletions

3
lib/analyze.js generated
View file

@ -137,7 +137,8 @@ async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag,
}
const codeql = await (0, codeql_1.getCodeQL)(config.codeQLCmd);
try {
if (hasPackWithCustomQueries) {
if (hasPackWithCustomQueries &&
!(await util.codeQlVersionAbove(codeql, codeql_1.CODEQL_VERSION_CONFIG_FILES))) {
logger.info("Performing analysis with custom CodeQL Packs.");
logger.startGroup(`Downloading custom packs for ${language}`);
const results = await codeql.packDownload(packsWithVersion);