Revert usage of --codescanning-config flag

This commit is contained in:
Edoardo Pirovano 2022-04-05 09:34:40 +01:00
parent f090899ed0
commit 43d066495c
No known key found for this signature in database
GPG key ID: 047556B5D93FFE28
7 changed files with 10 additions and 71 deletions

3
lib/analyze.js generated
View file

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