Skip to content

Commit 45db325

Browse files
localdenclaude
andauthored
Grant access repo write through a team (#262)
Replace two per-user grants with an access-maintainers team that has push, and set infrastructure-wg to push. Co-authored-by: Claude <noreply@anthropic.com>
1 parent e4e39de commit 45db325

5 files changed

Lines changed: 14 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ The [contributor ladder](https://modelcontextprotocol.io/community/contributor-l
7878

7979
Things to know when reading the config against the ladder:
8080

81-
- **GitHub child teams inherit their parent's repository access.** WG, IG, and SDK teams nest under `steering-committee` (via `working-groups`, `interest-groups`, and `sdk-maintainers`). Their members therefore get `steering-committee`'s grants, which include `triage` on `modelcontextprotocol`, `.github`, `inspector`, and `quickstart-resources`, and `push` on the archived `docs` repository. `steering-committee` deliberately has no grant on `servers`, so the teams listed there each have their own `triage` grant. Write access on `inspector`, `servers`, and `quickstart-resources` comes from the team that owns each one: `inspector-maintainers` on `inspector`, `reference-servers-maintainers` on `servers`, and `docs-maintainers` on `quickstart-resources`. This is independent of ladder rank. Roles that must not inherit these grants (`members`, `maintainers`, `security-team`) have no parent.
82-
- **Some roles have no ladder counterpart.** These are functional or operational roles: `security-managers`, `security-team`, CODEOWNERS teams (`*-auth`, `conformance-auth`), collaborator teams (`registry-collaborators`, `typescript-sdk-collaborators`), `auth-contributors` (`push` on `ext-auth` only, no parent team), `csharp-sdk-admin`, Discord-only `administrators` and `community-managers`, and Google email groups.
81+
- **GitHub child teams inherit their parent's repository access.** WG, IG, and SDK teams nest under `steering-committee` (via `working-groups`, `interest-groups`, and `sdk-maintainers`). Their members therefore get `steering-committee`'s grants, which include `triage` on `modelcontextprotocol`, `.github`, `inspector`, and `quickstart-resources`, and `push` on the archived `docs` repository. `steering-committee` deliberately has no grant on `servers`, so the teams listed there each have their own `triage` grant. Write access on `inspector`, `servers`, and `quickstart-resources` comes from the team that owns each one: `inspector-maintainers` on `inspector`, `reference-servers-maintainers` on `servers`, and `docs-maintainers` on `quickstart-resources`. This is independent of ladder rank. Roles that must not inherit these grants (`members`, `maintainers`, `access-maintainers`, `security-team`) have no parent.
82+
- **Some roles have no ladder counterpart.** These are functional or operational roles: `security-managers`, `security-team`, CODEOWNERS teams (`*-auth`, `conformance-auth`), collaborator teams (`registry-collaborators`, `typescript-sdk-collaborators`), `auth-contributors` (`push` on `ext-auth` only, no parent team), `access-maintainers` (`push` on `access` only, no parent team), `csharp-sdk-admin`, Discord-only `administrators` and `community-managers`, and Google email groups.
8383
- **Per-user grants** in `repoAccess.ts` (the `users` lists) are not tied to any ladder role.
8484
- **`security-ig` has `admin` on six repositories** (`docs`, `.github`, `inspector`, `modelcontextprotocol`, `quickstart-resources`, `servers`). This was carried over unchanged from `security-wg` in #170, and reviewing it is tracked as a separate workstream.
8585

‎src/config/repoAccess.ts‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -553,14 +553,11 @@ export const REPOSITORY_ACCESS: RepositoryAccess[] = [
553553
{
554554
repository: 'access',
555555
teams: [
556-
{ team: 'infrastructure-wg', permission: 'admin' },
556+
{ team: 'access-maintainers', permission: 'push' },
557+
{ team: 'infrastructure-wg', permission: 'push' },
557558
{ team: 'maintainers', permission: 'triage' },
558559
{ team: 'sdk-maintainers', permission: 'triage' },
559560
],
560-
users: [
561-
{ username: 'felixweinberger', permission: 'admin' },
562-
{ username: 'maxisbey', permission: 'admin' },
563-
],
564561
},
565562
{
566563
repository: 'security-room',

‎src/config/roleIds.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const ROLE_IDS = {
2222
// Maintainer Groups
2323
// ===================
2424
MAINTAINERS: 'maintainers',
25+
ACCESS_MAINTAINERS: 'access-maintainers', // GitHub only (push on access)
2526
CONFORMANCE_AUTH: 'conformance-auth', // GitHub only (CODEOWNERS)
2627
DOCS_MAINTAINERS: 'docs-maintainers',
2728
INSPECTOR_MAINTAINERS: 'inspector-maintainers',

‎src/config/roles.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,13 @@ export const ROLES: readonly Role[] = [
175175
google: { group: 'maintainers', allowExternalMembers: true },
176176
provisionUser: true,
177177
},
178+
{
179+
id: ROLE_IDS.ACCESS_MAINTAINERS,
180+
description: 'Write access to the access repository',
181+
// No parent team: must not inherit steering-committee repo permissions
182+
github: { team: 'access-maintainers' },
183+
// GitHub only
184+
},
178185
{
179186
id: ROLE_IDS.CONFORMANCE_AUTH,
180187
description: 'Conformance authorization-server code owners',

‎src/config/users.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ export const MEMBERS: readonly Member[] = [
385385
lastName: 'Weinberger',
386386
googleEmailPrefix: 'felix',
387387
memberOf: [
388+
ROLE_IDS.ACCESS_MAINTAINERS,
388389
ROLE_IDS.MAINTAINERS,
389390
ROLE_IDS.PYTHON_SDK,
390391
ROLE_IDS.SECURITY_IG,
@@ -722,6 +723,7 @@ export const MEMBERS: readonly Member[] = [
722723
lastName: 'Isbey',
723724
googleEmailPrefix: 'max',
724725
memberOf: [
726+
ROLE_IDS.ACCESS_MAINTAINERS,
725727
ROLE_IDS.MAINTAINERS,
726728
ROLE_IDS.PYTHON_SDK,
727729
ROLE_IDS.SECURITY_MANAGERS,

0 commit comments

Comments
 (0)