Compliance

Phase 1, Phase 2, then keep it running

A fixed-price gap analysis, remediation through to your audit, and upkeep after it. All in a workspace you keep.

All compliance
Security

Find it before a buyer does

Testing, assessments and security leadership, run by the researcher who found the Mirai botnet kill switch.

All security
Industries

Prove you are secure

To the people you sell to, raise from or answer to.

All industries
Resources

Learn the space

Original research, free tools and plain-language guides, from a published security researcher.

Read the blog
Security

How to Secure Your GitHub Organization for SOC 2

On this page, 7 sections
  1. What a GitHub access control actually covers under SOC 2
  2. How to decide how far to go for your own company
  3. The steps in order
  4. What evidence an auditor or enterprise buyer will ask to see
  5. Mistakes that turn into findings
  6. How this differs by company size, stage and framework
  7. Common questions about securing GitHub for SOC 2

To secure your GitHub organization for SOC 2, you need four things in place and documented: SAML SSO enforced for every member, phishing-resistant multi-factor authentication for anyone with write access, a reviewed list of who holds which permission, and a removal process tied to offboarding that runs within a day of a departure. Everything else on a typical control list, branch protection, signed commits, secret scanning, matters, but auditors and enterprise buyers start with identity and access because that is where real breaches start. In November 2026, 1Password disclosed that an attacker reached some backend systems through a hijacked employee GitHub account, touching customer information and source code. A credential security company losing a developer account is the reason this question is being asked in questionnaires right now.

What a GitHub access control actually covers under SOC 2

SOC 2 does not have a GitHub control. It has logical access criteria in the Common Criteria, mainly CC6.1 through CC6.3, that require you to restrict access to systems and data, authenticate users, authorize them based on role, and remove access when it is no longer needed. Your source control repository is in scope for every one of those because it holds the code that runs your product, often holds infrastructure definitions, and frequently holds deployment credentials in CI configuration.

In practice an auditor will treat GitHub as an in-scope system alongside your cloud provider and your production database. That means the same four questions get asked of it:

  • Who has access, and is that list approved? A current member list with roles, matched against an authoritative source such as your HR roster.
  • How are they authenticated? SSO through your identity provider, with MFA enforced at the identity provider rather than left to each user's personal GitHub settings.
  • How is access granted and changed? A ticket, an approval, a defined role, not a Slack message to whoever happens to be an owner.
  • How is access removed? Evidence that departures result in removal from the org, not just from email.

The 1Password incident is instructive because the failure mode it describes, an employee account being hijacked and used to reach backend systems, is exactly what CC6.1 and CC6.2 exist to limit. MFA alone does not stop it if the factor is phishable and if a compromised developer account can reach production from source control.

How to decide how far to go for your own company

A 15 person startup and a 180 person company selling to banks do not need identical controls, but the floor has moved. Use these decision rules.

  • If you are pre-SOC 2 and selling to SMBs: enforce SSO, require MFA, remove ex-employees. That is the minimum that will not embarrass you in a questionnaire.
  • If you are in a SOC 2 Type 2 observation window: add quarterly access reviews with written evidence, a documented approval path for new access, and branch protection on default branches. Auditors sample the period, so the controls need to have been running the whole time.
  • If you sell to financial services, health care or large enterprises: add phishing-resistant factors (hardware keys or passkeys) for anyone with write or admin access, disable personal access tokens with broad scopes, and require that deployment credentials come from short-lived OIDC federation rather than stored secrets.
  • If your code can deploy itself to production: treat GitHub as a production system. Admin on the org is equivalent to admin on your environment, and your access list should be as short as your production access list.

The test I use with clients is simple. If one engineer's laptop were phished tonight, what could the attacker reach by 9am? If the answer includes production, customer data or signing keys, you have a GitHub problem rather than a laptop problem.

The steps in order

Do these in sequence order, because each one makes the next cheaper to verify.

  • Export your org member list today. Include role, last activity, and whether the account is SSO-linked. Put it in a spreadsheet next to your HR roster. Count how many people with write access left the company this year. That number is the first thing a buyer should never see, and the first thing you should fix.
  • Enforce SAML SSO at the organization level. Not optional SSO, enforced, so that non-linked accounts lose access. Expect to find two or three service accounts and one contractor that break when you flip it. Fix them rather than granting exceptions.
  • Move MFA policy to the identity provider and require phishing-resistant factors for engineers. Hardware keys or platform passkeys for anyone with write access. SMS and push-approval should be off for that group.
  • Define roles and strip standing admin. Most orgs have far too many owners. Two is usually enough, with a documented break-glass account stored in your password manager and alerted on use.
  • Kill long-lived credentials. Audit personal access tokens, deploy keys and GitHub App installations. Replace stored cloud credentials in CI with OIDC federation. This is the same discipline described in the guide to secrets management for startups, applied to your build pipeline.
  • Turn on the platform controls. Secret scanning with push protection, Dependabot alerts, required reviews on protected branches, and restrictions on who can change workflow files. Workflow files are code that runs with your CI permissions.
  • Write the offboarding step down. GitHub removal belongs in the same checklist as email, VPN and cloud console. Ideally it is driven by your identity provider so deprovisioning is one action.
  • Schedule the quarterly review. A calendar event with a named owner, an export, a sign-off and a record of what changed.

Free weekly email

Get The Compliance Brief every Tuesday

One email a week from Jacob Masse: the security and compliance stories that changed something that week, and what each one means if you sell software to enterprise buyers. Five stories, a take on each, five minutes to read.

Free. Unsubscribe in one click, and replies reach Jacob directly. Read the latest issue or browse the archive.

What evidence an auditor or enterprise buyer will ask to see

Controls that exist but produce no artefact are invisible at audit time. Collect these as you go.

  • A screenshot of the SSO enforcement setting with the date visible, plus the list of SSO-linked members.
  • Your identity provider MFA policy showing which factors are allowed for the engineering group.
  • Quarterly access review records: the export, who reviewed it, what was removed, and the date. Auditors sample these, so a review you did once in month eleven of a twelve month window will produce an exception.
  • Two or three onboarding and offboarding tickets showing access granted with approval and removed within your stated timeline. Pick real examples before the auditor picks them for you.
  • Branch protection settings on your main repositories, and a sample pull request showing a review was required.
  • An audit log export covering admin changes, since CC7 expects you to be able to detect and investigate.

Enterprise buyers will ask for a narrower version of the same thing in writing. Questions about SSO enforcement on source control and whether personal accounts can hold organization access are already appearing, and the answer needs to be a sentence with a fact in it, not a policy quote. If questionnaires are consuming your week, the approach in the guide to answering enterprise security questionnaires will save you more time than any single control.

Mistakes that turn into findings

These are the ones I see most often in readiness work.

  • Treating MFA as the answer. Push-based MFA is bypassed by fatigue prompts and real-time phishing proxies. If an engineer can approve a login from a notification, the factor is not phishing-resistant.
  • Leaving contractors and alumni with write access. The highest-risk accounts in most orgs belong to people who stopped working there months ago and whose personal GitHub account was never SSO-linked.
  • Outside collaborators on private repositories. They sit outside SSO enforcement in many configurations and never show up on the member list people review.
  • Self-hosted runners with persistent cloud credentials. A pull request from a fork can be enough to reach them if workflow triggers are not restricted.
  • Secrets already committed. Push protection stops new ones. It does not clean history. Rotate anything that was ever committed rather than deleting the file and hoping.
  • No evidence of the review. Several clients were doing quarterly reviews informally and could not prove it, which reads identically to not doing them.
  • Ignoring dependency provenance. Access control on your own org does not help if a compromised package pulls credentials during build. The points in the piece on software supply chain attacks and npm dependencies apply directly to CI.

How this differs by company size, stage and framework

Under twenty people, you can often do all of this in a week because there is one org and one cloud account. The main obstacle is cost: SSO enforcement requires a paid GitHub plan, and founders defer it. Budget for it before your first enterprise deal rather than during one.

Between fifty and two hundred people, the problem shifts from configuration to drift. You will have multiple orgs from acquisitions or experiments, service accounts nobody owns, and teams that grant access directly rather than through groups. The fix is to make identity provider groups the only path to a GitHub team, so access follows the HR record automatically.

On frameworks: SOC 2 cares that the control operates consistently and that you can evidence it over the observation period. ISO 27001 wants the same controls mapped to Annex A, principally A.5.15 through A.5.18 on access control and A.8.4 on access to source code, and it will also want to see the controls reflected in your written policy set. If you do not have that written layer yet, the walkthrough on writing your first IT security policy covers the access control section you will need either way. Cyber insurers ask a sharper version of the same question, usually phrased as whether MFA is enforced on all remote and privileged access, and a wrong answer there has contractual consequences.

Common questions about securing GitHub for SOC 2

Does SOC 2 require SSO on GitHub?

No, SOC 2 does not name GitHub or SSO specifically, but it requires that access to in-scope systems be authenticated, authorized and removed promptly, and enforced SSO is the most practical way to demonstrate that for source control. An auditor will accept alternatives if you can evidence them, for example a documented manual review with proof of timely removal, though manual processes fail sampling more often. In questionnaires from enterprise buyers, SSO enforcement is increasingly asked as a yes or no question, and no is becoming expensive.

How often should we do a GitHub access review?

Quarterly is the standard that auditors expect for a system holding source code, with immediate removal on termination handled separately through offboarding. If your team changes frequently or you use a lot of contractors, monthly is reasonable and takes about fifteen minutes once you have the export scripted. The review needs a record: the list reviewed, the reviewer's name, the date, and the actions taken.

Should engineers use hardware security keys?

For anyone with write access to production code or admin on the organization, yes, because hardware keys and passkeys are the only widely available factors that resist real-time phishing. The cost is low relative to a single incident, and enrolment takes minutes per person. Keep at least one backup factor registered per user and a documented recovery path so that a lost key does not become an emergency.

What do we tell a customer who asks about the 1Password incident?

Answer the control question, not the news story: state whether SSO is enforced on your source control, which MFA factors engineers use, whether personal accounts can hold organization access, and how fast access is removed on departure. Customers asking about a third party breach are checking whether the same path exists in your environment. Publishing these answers in advance, as described in the guide to what to put on your trust page, cuts the number of one-off emails considerably.

This started as a story in The Compliance Brief. Every Tuesday, Jacob picks the five security and compliance stories that change something for a company selling to enterprise buyers, and says what to do about each. This one was in issue 17.

Get the Brief every Tuesday

Before you go

Want the rest of this by email?

If this was useful, I send a few short notes on SOC 2. Unsubscribe in one click, and replies reach me directly.

From Jacob Masse, Principal of TrazTech: the files by email, then a few short notes over the next month. No spam, unsubscribe in one click.