review-comments: refactor getActionsStatus to accept an extra parameter designating if the analysis is third-party
This commit is contained in:
parent
01f1a1f2c9
commit
55ee663d5f
30 changed files with 121 additions and 56 deletions
3
lib/init-action-post.js
generated
3
lib/init-action-post.js
generated
|
|
@ -72,7 +72,8 @@ async function runWrapper() {
|
|||
catch (unwrappedError) {
|
||||
const error = (0, util_1.wrapError)(unwrappedError);
|
||||
core.setFailed(error.message);
|
||||
const statusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.InitPost, (0, status_report_1.getActionsStatus)(error), startedAt, config, await (0, util_1.checkDiskUsage)(logger), logger, error.message, error.stack);
|
||||
const isThirdPartyAnalysis = !(0, status_report_1.isFirstPartyAnalysis)(status_report_1.ActionName.InitPost);
|
||||
const statusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.InitPost, (0, status_report_1.getActionsStatus)(isThirdPartyAnalysis, error), startedAt, config, await (0, util_1.checkDiskUsage)(logger), logger, error.message, error.stack);
|
||||
if (statusReportBase !== undefined) {
|
||||
await (0, status_report_1.sendStatusReport)(statusReportBase);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue