Skip to content

Commit f48b54a

Browse files
committed
Fix fallback not being guarded by uploadKind check
1 parent aed27f7 commit f48b54a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

lib/analyze-action.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/analyze-action.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ async function run() {
361361
category,
362362
actionsUtil.getOptionalInput("processed-sarif-path"),
363363
);
364-
} else {
364+
} else if (uploadKind === "always") {
365365
uploadResults = {};
366366

367367
if (isCodeScanningEnabled(config)) {
@@ -387,6 +387,9 @@ async function run() {
387387
analyses.CodeQuality,
388388
);
389389
}
390+
} else {
391+
uploadResults = {};
392+
logger.info("Not uploading results");
390393
}
391394

392395
// Set the SARIF id outputs only if we have results for them, to avoid

0 commit comments

Comments
 (0)