You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 16, 2025. It is now read-only.
fix(webhook): Avoid jobs are accepted without labels (#3548)
## Descirption
When using the mult-runner with an exact match set to `true` worklfows
events with an empty array of labels matches the first matcher. This
cause not intented runners are created. This change avoids jobs with no
labels ar accepted.
The exactMatch is some bagage we ccarry from the past. I have aaded a
set of unit tests to show how the match is working. We should think
about removing the switch.
Copy file name to clipboardExpand all lines: modules/webhook/variables.tf
+1-1
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ variable "tags" {
34
34
}
35
35
36
36
variable"runner_config" {
37
-
description="SQS queue to publish accepted build events based on the runner type."
37
+
description="SQS queue to publish accepted build events based on the runner type. When exact match is disabled the webhook accecpts the event if one of the workflow job labels is part of the matcher."
0 commit comments