Is there an existing issue for this?
What you expected to see, versus what you actually saw
Right now the gate only treats failure|cancelled as failures. GitHub job results can also be timed_out and action_required, which would incorrectly pass Line 179-182 and allow the workflow to succeed. Consider expanding the pattern.
Or, consider explicitly checking for the "good" statuses