use ATM pack v0.4.0 for CLI v2.11.3 and above

This commit is contained in:
Stephan Brandauer 2022-11-08 13:24:32 +01:00
parent 0e5b04a79a
commit 01c4458f0c
6 changed files with 36 additions and 4 deletions

5
lib/util.js generated
View file

@ -553,7 +553,10 @@ exports.ML_POWERED_JS_QUERIES_PACK_NAME = "codeql/javascript-experimental-atm-qu
*/
async function getMlPoweredJsQueriesPack(codeQL) {
let version;
if (await codeQlVersionAbove(codeQL, "2.9.3")) {
if (await codeQlVersionAbove(codeQL, "2.11.3")) {
version = "~0.4.0";
}
else if (await codeQlVersionAbove(codeQL, "2.9.3")) {
version = `~0.3.0`;
}
else if (await codeQlVersionAbove(codeQL, "2.8.4")) {