mirror of
https://github.com/github/codeql-action.git
synced 2026-11-08 22:19:50 +00:00
Don't include diagnostics if FF is off
This commit is contained in:
8
lib/entry-points.js
generated
8
lib/entry-points.js
generated
@@ -187041,11 +187041,15 @@ async function generateFailedSarif(logger2, features, config, category, checkout
|
||||
if (sarifFile === void 0) {
|
||||
sarifFile = "../codeql-failed-run.sarif";
|
||||
}
|
||||
if (databasePath === void 0 || !await features.getValue("export_diagnostics_enabled" /* ExportDiagnosticsEnabled */, codeql)) {
|
||||
const exportDiagnosticsEnabled = await features.getValue(
|
||||
"export_diagnostics_enabled" /* ExportDiagnosticsEnabled */,
|
||||
codeql
|
||||
);
|
||||
if (databasePath === void 0 || !exportDiagnosticsEnabled) {
|
||||
let diagnosticDir = getTempDiagnosticPath(
|
||||
config.tempDir
|
||||
);
|
||||
if (!fs31.existsSync(diagnosticDir)) {
|
||||
if (!exportDiagnosticsEnabled || !fs31.existsSync(diagnosticDir)) {
|
||||
diagnosticDir = void 0;
|
||||
}
|
||||
await codeql.diagnosticsExport(sarifFile, category, config, diagnosticDir);
|
||||
|
||||
Reference in New Issue
Block a user