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>
This commit is contained in:
Samson 2025-03-11 19:10:01 +01:00 committed by GitHub
parent e51ab9728d
commit ae2c9090cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: