Skip to content

armgit / herdr

Public Imported from GitHub
0

the runtime your coding agents live on

ci: restrict contributor approvals to admins

Ogulcan Celik00819ac000bf
diff --git a/.github/workflows/approve-contributor.yml b/.github/workflows/approve-contributor.yml
index cb5c2e704..bc68b4f06 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;
}