mirror of
https://github.com/github/codeql-action.git
synced 2026-05-07 22:30:44 +00:00
Remove --sarif-include-diagnostics from diagnotics export
This commit is contained in:
Generated
+3
-8
@@ -622,7 +622,9 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
||||
"--db-cluster",
|
||||
"--format=sarif-latest",
|
||||
`--output=${sarifFile}`,
|
||||
await getSarifIncludeDiagnosticsArgument(this, features),
|
||||
(await features.getValue(feature_flags_1.Feature.ExportCodeScanningConfigEnabled, this))
|
||||
? "--sarif-include-diagnostics"
|
||||
: "",
|
||||
...getExtraOptionsFromEnv(["diagnostics", "export"]),
|
||||
];
|
||||
args.push(databasePath);
|
||||
@@ -637,7 +639,6 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
||||
"export",
|
||||
"--format=sarif-latest",
|
||||
`--output=${sarifFile}`,
|
||||
await getSarifIncludeDiagnosticsArgument(this, features),
|
||||
...(await getCodeScanningConfigExportArguments(config, this, features)),
|
||||
...getExtraOptionsFromEnv(["diagnostics", "export"]),
|
||||
];
|
||||
@@ -831,10 +832,4 @@ async function getCodeScanningConfigExportArguments(config, codeql, features) {
|
||||
}
|
||||
return [];
|
||||
}
|
||||
async function getSarifIncludeDiagnosticsArgument(codeql, features) {
|
||||
if ((await features.getValue(feature_flags_1.Feature.ExportCodeScanningConfigEnabled, codeql)) === true) {
|
||||
return "--sarif-include-diagnostics";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
//# sourceMappingURL=codeql.js.map
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user