Pass negative SARIF include diagnostics flag when feature is disabled
In preparation for enabling this flag by default in the CLI
This commit is contained in:
parent
29a4713933
commit
69aec345f1
3 changed files with 6 additions and 1 deletions
|
|
@ -910,6 +910,8 @@ export async function getCodeQLForCmd(
|
|||
}
|
||||
if (shouldExportDiagnostics) {
|
||||
codeqlArgs.push("--sarif-include-diagnostics");
|
||||
} else if (await util.codeQlVersionAbove(this, "2.12.4")) {
|
||||
codeqlArgs.push("--no-sarif-include-diagnostics");
|
||||
}
|
||||
codeqlArgs.push(databasePath);
|
||||
if (querySuitePaths) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue