From ae2c9090cc07e0f4f9ca9b076a709e7a0c9d3d9a Mon Sep 17 00:00:00 2001 From: Samson <16504129+sagudev@users.noreply.github.com> Date: Tue, 11 Mar 2025 19:10:01 +0100 Subject: [PATCH] Allow try runs to all users with label permissions (#35911) https://servo.zulipchat.com/#narrow/channel/263398-general/topic/Contributors.20do.20not.20seem.20to.20have.20try.20job.20permissions/with/504859292 Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com> --- .github/workflows/try-label.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.github/workflows/try-label.yml b/.github/workflows/try-label.yml index be9b2a97455..046b3370b4f 100644 --- a/.github/workflows/try-label.yml +++ b/.github/workflows/try-label.yml @@ -65,17 +65,6 @@ jobs: return ""; } - let username = context.payload.sender.login; - let result = await github.rest.repos.getCollaboratorPermissionLevel({ - owner: context.repo.owner, - repo: context.repo.repo, - username - }); - if (!result.data.user.permissions.push) { - makeComment('🔒 User @' + username + ' does not have permission to trigger try jobs.'); - return ""; - } - return try_string; - uses: actions/checkout@v4 with: