Fix fallback not being guarded by uploadKind check

This commit is contained in:
Michael B. Gale
2025-10-23 13:33:36 +01:00
parent aed27f7231
commit f48b54af10
2 changed files with 8 additions and 2 deletions

5
lib/analyze-action.js generated
View File

@@ -96435,7 +96435,7 @@ async function run() {
category,
getOptionalInput("processed-sarif-path")
);
} else {
} else if (uploadKind === "always") {
uploadResults = {};
if (isCodeScanningEnabled(config)) {
uploadResults["code-scanning" /* CodeScanning */] = await uploadFiles(
@@ -96457,6 +96457,9 @@ async function run() {
CodeQuality
);
}
} else {
uploadResults = {};
logger.info("Not uploading results");
}
if (uploadResults["code-scanning" /* CodeScanning */] !== void 0) {
core14.setOutput(