mirror of
https://github.com/github/codeql-action.git
synced 2026-05-06 22:00:39 +00:00
Gate database export-diagnostics behind feature flag
This commit is contained in:
Generated
+2
-4
@@ -610,7 +610,7 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
||||
];
|
||||
await new toolrunner.ToolRunner(cmd, args).exec();
|
||||
},
|
||||
async databaseExportDiagnostics(databasePath, sarifFile, automationDetailsId, features) {
|
||||
async databaseExportDiagnostics(databasePath, sarifFile, automationDetailsId) {
|
||||
const args = [
|
||||
"database",
|
||||
"export-diagnostics",
|
||||
@@ -618,11 +618,9 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
||||
"--db-cluster",
|
||||
"--format=sarif-latest",
|
||||
`--output=${sarifFile}`,
|
||||
"--sarif-include-diagnostics",
|
||||
...getExtraOptionsFromEnv(["diagnostics", "export"]),
|
||||
];
|
||||
if (await features.getValue(feature_flags_1.Feature.ExportDiagnosticsEnabled, this)) {
|
||||
args.push("--sarif-include-diagnostics");
|
||||
}
|
||||
if (automationDetailsId !== undefined) {
|
||||
args.push("--sarif-category", automationDetailsId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user