Skip to content

Commit 9753473

Browse files
committed
Warn if no SARIF files were uploaded
1 parent 022d7d5 commit 9753473

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

lib/upload-sarif-action.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/upload-sarif-action.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ async function run() {
179179
id: qualityUploadResult.sarifID,
180180
});
181181
}
182+
183+
if (sarifIds.length === 0) {
184+
logger.warning(`No SARIF files were uploaded.`);
185+
}
186+
182187
core.setOutput("sarif-ids", JSON.stringify(sarifIds));
183188

184189
// We don't upload results in test mode, so don't wait for processing

0 commit comments

Comments
 (0)