ci: restrict contributor approvals to admins

This commit is contained in:
Ogulcan Celik 2026-05-20 04:37:01 +03:00
parent 6bd8bb6bf1
commit 00819ac000
1 changed files with 2 additions and 2 deletions

View File

@ -42,8 +42,8 @@ jobs:
username: commenter,
});
if (!['admin', 'write'].includes(permissionLevel.permission)) {
console.log(`${commenter} does not have write access`);
if (permissionLevel.permission !== 'admin') {
console.log(`${commenter} does not have admin access`);
core.setOutput('status', 'skipped');
return;
}