mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 01:27:22 +00:00
Change diagnosticsExport to not require full Config
This commit is contained in:
11
lib/entry-points.js
generated
11
lib/entry-points.js
generated
@@ -177334,14 +177334,14 @@ async function getCodeQLForCmd(logger2, cmd, checkVersion, env = getEnv()) {
|
||||
}
|
||||
await new toolrunner3.ToolRunner(cmd, args).exec();
|
||||
},
|
||||
async diagnosticsExport(sarifFile, automationDetailsId, config, diagnosticDir) {
|
||||
async diagnosticsExport(sarifFile, automationDetailsId, tempDir, diagnosticDir) {
|
||||
const args = [
|
||||
"diagnostics",
|
||||
"export",
|
||||
"--format=sarif-latest",
|
||||
`--output=${sarifFile}`,
|
||||
`--sarif-codescanning-config=${getGeneratedCodeScanningConfigPath(
|
||||
config.tempDir
|
||||
tempDir
|
||||
)}`,
|
||||
...diagnosticDir !== void 0 ? [`--diagnostic-dir=${diagnosticDir}`] : [],
|
||||
...getExtraOptionsFromEnv(["diagnostics", "export"])
|
||||
@@ -186904,7 +186904,12 @@ async function generateFailedSarif(logger2, features, config, category, checkout
|
||||
if (!fs31.existsSync(diagnosticDir)) {
|
||||
diagnosticDir = void 0;
|
||||
}
|
||||
await codeql.diagnosticsExport(sarifFile, category, config, diagnosticDir);
|
||||
await codeql.diagnosticsExport(
|
||||
sarifFile,
|
||||
category,
|
||||
config.tempDir,
|
||||
diagnosticDir
|
||||
);
|
||||
} else {
|
||||
await codeql.databaseExportDiagnostics(databasePath, sarifFile, category);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user