mirror of
https://github.com/github/codeql-action.git
synced 2026-04-17 04:23:16 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user