-
Notifications
You must be signed in to change notification settings - Fork 430
Run ML-powered queries on Windows with CodeQL CLI 2.9.0+ #1051
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
d9e30cb
193cfa5
ed0abc6
395afb1
533ce91
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1807,42 +1807,64 @@ test( | |
| "security-extended", | ||
| undefined | ||
| ); | ||
| // Test that the ~0.1.0 version of ML-powered queries is run on v2.8.3 of the CLI. | ||
| test( | ||
| mlPoweredQueriesMacro, | ||
| "2.8.3", | ||
| true, | ||
| undefined, | ||
| "security-extended", | ||
| process.platform === "win32" ? undefined : "~0.1.0" | ||
| ); | ||
| // 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 that ML-powered queries are run on non-Windows platforms running `security-extended` on | ||
| // versions of the CodeQL CLI prior to 2.9.0. | ||
| test( | ||
| mlPoweredQueriesMacro, | ||
| "2.7.5", | ||
| "2.8.5", | ||
| true, | ||
| undefined, | ||
| "security-extended", | ||
| process.platform === "win32" ? undefined : "~0.1.0" | ||
| process.platform === "win32" ? undefined : "~0.2.0" | ||
| ); | ||
| // Test that ML-powered queries are run on non-Windows platforms running `security-and-quality`. | ||
| // Test that ML-powered queries are run on non-Windows platforms running `security-and-quality` on | ||
| // versions of the CodeQL CLI prior to 2.9.0. | ||
| test( | ||
| mlPoweredQueriesMacro, | ||
| "2.7.5", | ||
| "2.8.5", | ||
| true, | ||
| undefined, | ||
| "security-and-quality", | ||
| process.platform === "win32" ? undefined : "~0.1.0" | ||
| process.platform === "win32" ? undefined : "~0.2.0" | ||
| ); | ||
| // Test that we don't inject an ML-powered query pack if the user has already specified one. | ||
| // Test that ML-powered queries are run on all platforms running `security-extended` on CodeQL CLI | ||
| // 2.9.0+. | ||
| test( | ||
| mlPoweredQueriesMacro, | ||
| "2.7.5", | ||
| "2.9.0", | ||
| true, | ||
| "codeql/[email protected]", | ||
| "security-and-quality", | ||
| process.platform === "win32" ? undefined : "0.0.1" | ||
| undefined, | ||
| "security-extended", | ||
| "~0.2.0" | ||
| ); | ||
| // Test that the ~0.2.0 version of ML-powered queries is run on v2.8.4 of the CLI. | ||
| // Test that ML-powered queries are run on all platforms running `security-and-quality` on CodeQL | ||
| // CLI 2.9.0+. | ||
| test( | ||
| mlPoweredQueriesMacro, | ||
| "2.8.4", | ||
| "2.9.0", | ||
| true, | ||
| undefined, | ||
| "security-extended", | ||
| process.platform === "win32" ? undefined : "~0.2.0" | ||
| "security-and-quality", | ||
| "~0.2.0" | ||
| ); | ||
| // Test that we don't inject an ML-powered query pack if the user has already specified one. | ||
| test( | ||
| mlPoweredQueriesMacro, | ||
| "2.9.0", | ||
| true, | ||
| "codeql/[email protected]", | ||
| "security-and-quality", | ||
| process.platform === "win32" ? undefined : "0.0.1" | ||
| ); | ||
Uh oh!
There was an error while loading. Please reload this page.