| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,6 +6,7 @@ import * as yaml from "js-yaml"; | |||
| 6 | 6 | ||
| 7 | 7 | import * as analysisPaths from "./analysis-paths"; | |
| 8 | 8 | import { | |
| 9 | + CODEQL_VERSION_CONFIG_FILES, | ||
| 9 | 10 | CODEQL_VERSION_COUNTS_LINES, | |
| 10 | 11 | CODEQL_VERSION_NEW_TRACING, | |
| 11 | 12 | getCodeQL, | |
@@ -235,12 +236,15 @@ export async function runQueries( | |||
| 235 | 236 | ); | |
| 236 | 237 | } | |
| 237 | 238 | ||
| 239 | + const codeql = await getCodeQL(config.codeQLCmd); | ||
| 238 | 240 | try { | |
| 239 | - if (hasPackWithCustomQueries) { | ||
| 241 | + if ( | ||
| 242 | + hasPackWithCustomQueries && | ||
| 243 | + !(await util.codeQlVersionAbove(codeql, CODEQL_VERSION_CONFIG_FILES)) | ||
| 244 | + ) { | ||
| 240 | 245 | logger.info("Performing analysis with custom CodeQL Packs."); | |
| 241 | 246 | logger.startGroup(`Downloading custom packs for ${language}`); | |
| 242 | 247 | ||
| 243 | - const codeql = await getCodeQL(config.codeQLCmd); | ||
| 244 | 248 | const results = await codeql.packDownload(packsWithVersion); | |
| 245 | 249 | logger.info( | |
| 246 | 250 | `Downloaded packs: ${results.packs | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -220,7 +220,7 @@ const CODEQL_VERSION_GROUP_RULES = "2.5.5"; | |||
| 220 | 220 | const CODEQL_VERSION_SARIF_GROUP = "2.5.3"; | |
| 221 | 221 | export const CODEQL_VERSION_COUNTS_LINES = "2.6.2"; | |
| 222 | 222 | const CODEQL_VERSION_CUSTOM_QUERY_HELP = "2.7.1"; | |
| 223 | - const CODEQL_VERSION_CONFIG_FILES = "2.8.2"; // Versions before 2.8.2 weren't tolerant to unknown properties | ||
| 223 | + export const CODEQL_VERSION_CONFIG_FILES = "2.8.2"; // Versions before 2.8.2 weren't tolerant to unknown properties | ||
| 224 | 224 | export const CODEQL_VERSION_ML_POWERED_QUERIES = "2.7.5"; | |
| 225 | 225 | ||
| 226 | 226 | /** | |
| Back | FazBrowse Home | New Git URL |
0 commit comments