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

View File

@@ -361,7 +361,7 @@ async function run() {
category,
actionsUtil.getOptionalInput("processed-sarif-path"),
);
} else {
} else if (uploadKind === "always") {
uploadResults = {};
if (isCodeScanningEnabled(config)) {
@@ -387,6 +387,9 @@ async function run() {
analyses.CodeQuality,
);
}
} else {
uploadResults = {};
logger.info("Not uploading results");
}
// Set the SARIF id outputs only if we have results for them, to avoid