mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
Add CONTRIBUTOR to the allowed author_association
This commit is contained in:
parent
268a3f8289
commit
e569bffd89
1 changed files with 1 additions and 1 deletions
2
run.py
2
run.py
|
@ -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", "COLLABORATOR"]:
|
||||
if hook_infos["comment"]["author_association"] not in ["MEMBER", "OWNER", "COLLABORATOR", "CONTRIBUTOR"]:
|
||||
# Unauthorized
|
||||
abort(403, "Unauthorized")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue