GeezerVison is showing github.com — use ATM pack v0.4.0 for CLI v2.11.3 and above · github/codeql-action@01c4458
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: lib/config-utils.test.js +6Lines changed: 6 additions & 0 deletions Collapse file
Copy file name to clipboardExpand all lines: lib/config-utils.test.js.map +1-1Lines changed: 1 addition & 1 deletion Collapse file
Copy file name to clipboardExpand all lines: lib/util.js +4-1Lines changed: 4 additions & 1 deletion Collapse file
Copy file name to clipboardExpand all lines: lib/util.js.map +1-1Lines changed: 1 addition & 1 deletion Collapse file
Copy file name to clipboardExpand all lines: src/config-utils.test.ts +21Lines changed: 21 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2059,6 +2059,27 @@ test( |
2059 | 2059 | "security-and-quality", |
2060 | 2060 | "~0.3.0" |
2061 | 2061 | ); |
| 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 | +); |
2062 | 2083 |
|
2063 | 2084 | const calculateAugmentationMacro = test.macro({ |
2064 | 2085 | exec: async ( |
|
Collapse file
Copy file name to clipboardExpand all lines: src/util.ts +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -672,7 +672,9 @@ export async function getMlPoweredJsQueriesPack( |
672 | 672 | codeQL: CodeQL |
673 | 673 | ): Promise<string> { |
674 | 674 | 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")) { |
676 | 678 | version = `~0.3.0`; |
677 | 679 | } else if (await codeQlVersionAbove(codeQL, "2.8.4")) { |
678 | 680 | version = `~0.2.0`; |
|