mirror of
https://github.com/github/codeql-action
synced 2026-05-25 15:00:36 +03: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:
Generated
+3
@@ -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);
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -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