-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into henrymercer/update-actions-major-versions
- Loading branch information
Showing
6 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1788,7 +1788,8 @@ const mlPoweredQueriesMacro = test.macro({ | |
}`, | ||
}); | ||
|
||
// macro, isMlPoweredQueriesFlagEnabled, packsInput, queriesInput, versionString | ||
// macro, codeQLVersion, isMlPoweredQueriesFlagEnabled, packsInput, queriesInput, expectedVersionString | ||
// Test that ML-powered queries aren't run on v2.7.4 of the CLI. | ||
test( | ||
mlPoweredQueriesMacro, | ||
"2.7.4", | ||
|
@@ -1797,6 +1798,7 @@ test( | |
"security-extended", | ||
undefined | ||
); | ||
// Test that ML-powered queries aren't run when the feature flag is off. | ||
test( | ||
mlPoweredQueriesMacro, | ||
"2.7.5", | ||
|
@@ -1805,28 +1807,33 @@ test( | |
"security-extended", | ||
undefined | ||
); | ||
// Test that ML-powered queries aren't run when the user hasn't specified that we should run the | ||
// `security-extended` or `security-and-quality` query suite. | ||
test(mlPoweredQueriesMacro, "2.7.5", true, undefined, undefined, undefined); | ||
// Test that ML-powered queries are run on non-Windows platforms running `security-extended`. | ||
test( | ||
mlPoweredQueriesMacro, | ||
"2.7.5", | ||
true, | ||
undefined, | ||
"security-extended", | ||
"~0.1.0" | ||
process.platform === "win32" ? undefined : "~0.1.0" | ||
); | ||
// Test that ML-powered queries are run on non-Windows platforms running `security-and-quality`. | ||
test( | ||
mlPoweredQueriesMacro, | ||
"2.7.5", | ||
true, | ||
undefined, | ||
"security-and-quality", | ||
"~0.1.0" | ||
process.platform === "win32" ? undefined : "~0.1.0" | ||
); | ||
// Test that we don't inject an ML-powered query pack if the user has already specified one. | ||
test( | ||
mlPoweredQueriesMacro, | ||
"2.7.5", | ||
true, | ||
"codeql/[email protected]", | ||
"security-and-quality", | ||
"0.0.1" | ||
process.platform === "win32" ? undefined : "0.0.1" | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters