ci: restrict contributor approvals to admins
This commit is contained in:
parent
6bd8bb6bf1
commit
00819ac000
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue