Check that outputPath is non-empty

This commit is contained in:
Michael B. Gale
2025-10-24 14:42:36 +01:00
parent f0452d5366
commit 710606cc35
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -95936,7 +95936,7 @@ async function postProcessSarifFiles(logger, features, checkoutPath, sarifPaths,
}
async function writePostProcessedFiles(logger, pathInput, uploadTarget, postProcessingResults) {
const outputPath = pathInput || process.env["CODEQL_ACTION_SARIF_DUMP_DIR" /* SARIF_DUMP_DIR */];
if (outputPath !== void 0) {
if (outputPath !== void 0 && outputPath.trim() !== "") {
dumpSarifFile(
JSON.stringify(postProcessingResults.sarif),
outputPath,
+1 -1
View File
@@ -92750,7 +92750,7 @@ async function postProcessSarifFiles(logger, features, checkoutPath, sarifPaths,
}
async function writePostProcessedFiles(logger, pathInput, uploadTarget, postProcessingResults) {
const outputPath = pathInput || process.env["CODEQL_ACTION_SARIF_DUMP_DIR" /* SARIF_DUMP_DIR */];
if (outputPath !== void 0) {
if (outputPath !== void 0 && outputPath.trim() !== "") {
dumpSarifFile(
JSON.stringify(postProcessingResults.sarif),
outputPath,
+1 -1
View File
@@ -93406,7 +93406,7 @@ async function postProcessSarifFiles(logger, features, checkoutPath, sarifPaths,
}
async function writePostProcessedFiles(logger, pathInput, uploadTarget, postProcessingResults) {
const outputPath = pathInput || process.env["CODEQL_ACTION_SARIF_DUMP_DIR" /* SARIF_DUMP_DIR */];
if (outputPath !== void 0) {
if (outputPath !== void 0 && outputPath.trim() !== "") {
dumpSarifFile(
JSON.stringify(postProcessingResults.sarif),
outputPath,