diff --git a/modules/webhook/lambdas/webhook/src/webhook/handler.ts b/modules/webhook/lambdas/webhook/src/webhook/handler.ts index d7df3aca4e..1b2c4d5d08 100644 --- a/modules/webhook/lambdas/webhook/src/webhook/handler.ts +++ b/modules/webhook/lambdas/webhook/src/webhook/handler.ts @@ -131,8 +131,8 @@ function isRunnerNotAllowed(job: WorkflowJob): boolean { console.debug( `Received workflow job event with labels: '${JSON.stringify(job.workflow_job.labels)}'. The event does ${ - runnerMatch ? '' : 'NOT' - } match the configured labels: '${JSON.stringify(runnerLabels)}'`, + runnerMatch ? '' : 'NOT ' + }match the configured labels: '${Array.from(runnerLabels).join(',')}'`, ); return !runnerMatch; } diff --git a/modules/webhook/webhook.tf b/modules/webhook/webhook.tf index 31c16b1a50..5e7b8373cf 100644 --- a/modules/webhook/webhook.tf +++ b/modules/webhook/webhook.tf @@ -15,7 +15,7 @@ resource "aws_lambda_function" "webhook" { ENVIRONMENT = var.environment SQS_URL_WEBHOOK = var.sqs_build_queue.id REPOSITORY_WHITE_LIST = jsonencode(var.repository_white_list) - RUNNER_LABELS = jsonencode(var.runner_extra_labels) + RUNNER_LABELS = jsonencode(split(",", var.runner_extra_labels)) } }