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
3
lib/codeql.js
generated
3
lib/codeql.js
generated
|
|
@ -537,6 +537,9 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||
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) {
|
||||
codeqlArgs.push(...querySuitePaths);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue