Skip to content

Commit 634443b

Browse files
chore(webhook): add workflow job debug log keys (github-aws-runners#5179)
## Description Adds additional persistent GitHub workflow job context to webhook logs to improve debugging for queued jobs, label matching, and runner assignment issues. New log keys include workflow/run identifiers, labels, branch/SHA and workflow name. ## Test Plan <!-- Please describe how you tested these changes. This helps reviewers understand the scope and confidence level of the change. Examples: - Ran `terraform plan` against an existing deployment - Added/updated unit tests (link to test file or describe coverage) - Deployed to a test environment and triggered a workflow run - Validated with `terraform validate` and `tflint` --> ## Related Issues <!-- Link any related issues, e.g. Fixes github-aws-runners#123, Closes github-aws-runners#456 -->
1 parent 7d8c576 commit 634443b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • lambdas/functions/webhook/src/webhook

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,15 @@ function readWorkflowJobEvent(
149149
name: event.workflow_job.name,
150150
status: event.workflow_job.status,
151151
workflowJobId: event.workflow_job.id,
152+
workflowJobUrl: event.workflow_job.html_url,
153+
runId: event.workflow_job.run_id,
154+
runAttempt: event.workflow_job.run_attempt,
155+
runUrl: event.workflow_job.run_url,
156+
workflowName: event.workflow_job.workflow_name,
157+
labels: event.workflow_job.labels,
158+
headSha: event.workflow_job.head_sha,
159+
headBranch: event.workflow_job.head_branch,
160+
created_at: event.workflow_job.created_at,
152161
started_at: event.workflow_job.started_at,
153162
completed_at: event.workflow_job.completed_at,
154163
conclusion: event.workflow_job.conclusion,

0 commit comments

Comments
 (0)