Also allow collaborators to trigger jobs, because for some reason Github flag some member as collaborators...

This commit is contained in:
Alexandre Aubin 2021-01-18 15:38:25 +01:00
parent fd84352eb6
commit 268a3f8289

2
run.py
View file

@ -1032,7 +1032,7 @@ async def github(request):
# We only accept this from people which are member/owner of the org/repo
# https://docs.github.com/en/free-pro-team@latest/graphql/reference/enums#commentauthorassociation
if hook_infos["comment"]["author_association"] not in ["MEMBER", "OWNER"]:
if hook_infos["comment"]["author_association"] not in ["MEMBER", "OWNER", "COLLABORATOR"]:
# Unauthorized
abort(403, "Unauthorized")