Add event name to status report

This commit is contained in:
Henry Mercer 2024-02-26 19:36:37 +00:00
parent e4a536270d
commit 60465730fb
24 changed files with 83 additions and 38 deletions

View file

@ -33,13 +33,13 @@ interface InitPostStatusReport
initActionPostHelper.JobStatusReport {}
async function runWrapper() {
const logger = getActionsLogger();
const startedAt = new Date();
let config: Config | undefined;
let uploadFailedSarifResult:
| initActionPostHelper.UploadFailedSarifResult
| undefined;
try {
const logger = getActionsLogger();
const gitHubVersion = await getGitHubVersion();
checkGitHubVersionInRange(gitHubVersion, logger);
@ -81,6 +81,7 @@ async function runWrapper() {
startedAt,
config,
await checkDiskUsage(),
logger,
error.message,
error.stack,
),
@ -93,6 +94,7 @@ async function runWrapper() {
startedAt,
config,
await checkDiskUsage(),
logger,
);
const statusReport: InitPostStatusReport = {
...statusReportBase,