Skip to content

Commit eaa8869

Browse files
committed
use ATM pack v0.4.0 for CLI v2.11.3 and above
1 parent 0e5b04a commit eaa8869

File tree

6 files changed

+36
-4
lines changed

6 files changed

+36
-4
lines changed

lib/config-utils.test.js

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/config-utils.test.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/util.js

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/util.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config-utils.test.ts

+21
Original file line numberDiff line numberDiff line change
@@ -2059,6 +2059,27 @@ test(
20592059
"security-and-quality",
20602060
"~0.3.0"
20612061
);
2062+
// Test that ML-powered queries are run on all platforms running `security-extended` on CodeQL
2063+
// CLI 2.11.3+.
2064+
test(
2065+
mlPoweredQueriesMacro,
2066+
"2.11.3",
2067+
true,
2068+
undefined,
2069+
"security-extended",
2070+
"~0.4.0"
2071+
);
2072+
2073+
// Test that ML-powered queries are run on all platforms running `security-and-quality` on CodeQL
2074+
// CLI 2.11.3+.
2075+
test(
2076+
mlPoweredQueriesMacro,
2077+
"2.11.3",
2078+
true,
2079+
undefined,
2080+
"security-and-quality",
2081+
"~0.4.0"
2082+
);
20622083

20632084
const calculateAugmentationMacro = test.macro({
20642085
exec: async (

src/util.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,9 @@ export async function getMlPoweredJsQueriesPack(
672672
codeQL: CodeQL
673673
): Promise<string> {
674674
let version;
675-
if (await codeQlVersionAbove(codeQL, "2.9.3")) {
675+
if (await codeQlVersionAbove(codeQL, "2.11.3")) {
676+
version = "~0.4.0";
677+
} else if (await codeQlVersionAbove(codeQL, "2.9.3")) {
676678
version = `~0.3.0`;
677679
} else if (await codeQlVersionAbove(codeQL, "2.8.4")) {
678680
version = `~0.2.0`;

0 commit comments

Comments
 (0)