diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-20 04:37:01 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-20 04:37:01 +0300 |
| commit | 00819ac000bf89dc822da67bca6cd238796c23e6 (patch) | |
| tree | f22ab070ee52e4d2a95bb0801358c69baa66d5f5 /.github/workflows | |
| parent | 6bd8bb6bf197ea3dce470b547ce7b16b8d4450b1 (diff) | |
ci: restrict contributor approvals to admins
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/approve-contributor.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/approve-contributor.yml b/.github/workflows/approve-contributor.yml index cb5c2e70..bc68b4f0 100644 --- a/.github/workflows/approve-contributor.yml +++ b/.github/workflows/approve-contributor.yml @@ -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; } |
