From 0ece1d100004cfe33856fffbf842a41cd2f4e05a Mon Sep 17 00:00:00 2001 From: tombolton Date: Wed, 1 Jun 2022 10:51:16 +0100 Subject: [PATCH] add ml query pack 0.3.0 --- src/util.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/util.ts b/src/util.ts index e41078be6..41681274c 100644 --- a/src/util.ts +++ b/src/util.ts @@ -664,7 +664,10 @@ export const ML_POWERED_JS_QUERIES_PACK_NAME = export async function getMlPoweredJsQueriesPack( codeQL: CodeQL ): Promise { - if (await codeQlVersionAbove(codeQL, "2.8.4")) { + if (await codeQlVersionAbove(codeQL, "2.9.3")) { + return `${ML_POWERED_JS_QUERIES_PACK_NAME}@~0.3.0`; + } + else if (await codeQlVersionAbove(codeQL, "2.8.4")) { return `${ML_POWERED_JS_QUERIES_PACK_NAME}@~0.2.0`; } return `${ML_POWERED_JS_QUERIES_PACK_NAME}@~0.1.0`; @@ -740,8 +743,8 @@ export async function checkActionVersion(version: string) { ) { core.warning( "CodeQL Action v1 will be deprecated on December 7th, 2022. Please upgrade to v2. For " + - "more information, see " + - "https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/" + "more information, see " + + "https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/" ); } }