-
Notifications
You must be signed in to change notification settings - Fork 655
Webhook incorrectly filtering workflow_job
events based on labels
#1132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@gertjanmaas can you have a look at the issue. I have just checked the default example which uses extra labels, and here it works fine. So maybe we have indeed an issue for an empty list. |
I checked the code and it seems the labels are not transferred from the terraform module to the webhook environment variable correctly. I'll make a PR for this and test out a couple of situations (including no labels). Not sure if I have time to do this today, but I'll try :) |
For what it's worth my list was not empty. I had about 7 comma separated labels. |
Then I misunderstood the ticket, but it also doesn't work as expected when labels are entered. 🙂 |
New release is out with a fix |
Thanks for this! @gertjanmaas @npalm @mrmeyers99 |
I tried using the
workflow_job
event instead ofcheck_run
. The webhook is ignoring the job though because it thinks that the labels do not match the configured labels for my runner.The configured labels is empty, and I think it's an issue with the way RUNNER_LABELS is stored.
runner_extra_labels
is a comma separated list of labels. That variable is mapped to the RUNNER_LABELS environment variable for the lambda, but theworkflow_job
handler is expecting theRUNNER_LABELS
environment variable to be a proper json array.The text was updated successfully, but these errors were encountered: