mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
report status as failure if upload fails
This commit is contained in:
5
lib/finalize-db.js
generated
5
lib/finalize-db.js
generated
@@ -125,7 +125,10 @@ async function run() {
|
||||
core.info('Analyzing database');
|
||||
await runQueries(codeqlCmd, databaseFolder, sarifFolder, config);
|
||||
if ('true' === core.getInput('upload')) {
|
||||
await upload_lib.upload(sarifFolder);
|
||||
if (!await upload_lib.upload(sarifFolder)) {
|
||||
await util.reportActionFailed('failed', 'upload');
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user