MOC Alliance

Adding and removing members of the CCI-MOC GitHub organization

docs/2026-12-01-adding-github-org-members

Overview

Membership of the CCI-MOC GitHub organization is managed as code in the moc-github repository. To add or remove someone, edit its CSV files in a pull request. When the pull request merges, the Apply workflow runs OpenTofu, which makes the change in GitHub.

Do not add or remove people through the GitHub web UI:

This document describes the current CCI-MOC organization. Update it if the organization moves into a different GitHub Enterprise.

Before you start

Collect the following. The email template at the end of this document asks the person for the first three.

Adding a member

  1. Make the changes below on a new branch of moc-github. You can use git or GitHub’s web editor (the pencil icon on a file). If you have write access to moc-github, create the branch there rather than in a fork; see step 5.

  2. In members.csv, add one line for the person, for example at the end of the file:

    newuser,member
    

    Use member for almost everyone. admin makes the person an organization owner; reserve it for people who administer the organization itself. Everyone in members.csv is also added automatically to the all-members team.

  3. For each team they need, add a line to that team’s file in team-members/, for example team-members/esi.csv:

    newuser,member
    

    The role here is member or maintainer. If the person is an organization owner (admin in members.csv), use maintainer in every team, or every plan will show a change.

  4. Commit with a message that names the person, the reason, and the sponsor, for example:

    Add Jane Doe to cci-moc organization
    
    Jane is a BU IS&T Engineer collaborating on X. Sponsor: Y.
    
  5. Open a pull request.

    • From a branch in moc-github: the Plan workflow runs. Open it from the pull request’s checks and read the TF Plan step. It should show only your changes: a new github_membership and updates to the teams you edited.
    • From a fork: Plan does not run. For a simple addition that is usually fine, but reviewers should check the username and CSV lines by eye. The plan matters more for changes to teams, repositories, or admin roles, because Apply applies the whole configuration, including any unrelated pending changes.
  6. Get two approving reviews and a passing pre-commit check, then merge with “Squash and merge” or “Rebase and merge”. The repository requires linear history, so a merge commit is not allowed.

  7. Apply runs automatically and GitHub emails the person an invitation. They are not a member, and their team memberships do not take effect, until they accept it.

Verify

Removing a member

Removing a line from members.csv does remove the person: when Apply runs, OpenTofu removes them from the organization, or cancels their invitation if they have not accepted it. (OpenTofu only ignores people who were never in the file.)

Remove every reference to the person in the same pull request, not just the members.csv line:

To find every reference, search for the username. Both methods below ignore case and also match longer names (such as jdoe2), so check each hit.

Then follow steps 4 to 6 above, with a commit message that says why the person is being removed.

If the person is in the organization but not in members.csv, they were added outside this process and OpenTofu cannot remove them. An organization owner removes them from the People page.

Email template

Send this to the person before opening the pull request. Replace the placeholders in angle brackets.

Subject: GitHub access for the Mass Open Cloud (CCI-MOC)

Hi <name>,

To give you access to the Mass Open Cloud's GitHub organization (CCI-MOC), I need two things from you:

1. Your GitHub username. It is the name in your profile address, github.com/<username>. If you don't have a GitHub account yet, create one at https://github.com/signup (instructions: https://docs.github.com/en/get-started/start-your-journey/creating-an-account-on-github).

2. Confirmation that two-factor authentication (2FA) is turned on for that account. To check or enable it: click your profile picture at the top right of GitHub, choose Settings, then Password and authentication, and under "Two-factor authentication" click "Enable two-factor authentication". Full instructions: https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication

Once you're added, GitHub will email you an invitation to join CCI-MOC. Please accept it; your access starts only after you do.

Thanks,
<your name>