Skip to content

Commit f821ee2

Browse files
andrecastroBrend-Smits
authored andcommitted
Read workflow_job event for logging enhancement
1 parent 8b21df4 commit f821ee2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • lambdas/functions/webhook/src/webhook

lambdas/functions/webhook/src/webhook/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ export async function publishOnEventBridge(
4343
const eventType = headers['x-github-event'] as string;
4444
checkEventIsSupported(eventType, config.allowedEvents);
4545

46+
// If workflow_job event, read the event and log relevant information for monitoring and debugging purposes.
47+
if (eventType === 'workflow_job') {
48+
readWorkflowJobEvent(headers, body);
49+
}
50+
4651
const checkBodySizeResult = checkBodySize(body, headers);
4752

4853
logger.info(

0 commit comments

Comments
 (0)