Scanning endpoint failures should not halt the scan

This commit is contained in:
Simon Engledew 2020-11-19 15:49:46 +00:00
parent 7fda765d49
commit eb4226ede4
No known key found for this signature in database
GPG key ID: 84302E7B02FE8BCE
15 changed files with 32 additions and 49 deletions

View file

@ -22,7 +22,7 @@ async function sendSuccessStatusReport(startedAt, uploadStats) {
}
async function run() {
const startedAt = new Date();
if (!(await actionsUtil.sendStatusReport(await actionsUtil.createStatusReportBase("upload-sarif", "starting", startedAt), true))) {
if (!(await actionsUtil.sendStatusReport(await actionsUtil.createStatusReportBase("upload-sarif", "starting", startedAt)))) {
return;
}
try {