A GitHub access review asks one question of every account: can it, on its own, merge code into your main branch, read your deployment keys or deploy to production? On 25 November 2026, 1Password said one employee's GitHub account took an attacker into its source code and CI/CD system. Wherever your answer is yes, add a second person.
1Password started investigating signs of an attacker in an employee's corporate GitHub account on 19 November 2026. According to 1Password's incident statement, the attacker used the account to reach source code and push malicious code to backend services, which then downloaded administrative data about customers, including their names and email addresses.
The attacker also copied private repositories and got into the CI/CD system, where 1Password keeps the infrastructure secrets its product needs. The company says it disabled the account, revoked the stolen token and rotated every credential that may have been exposed, and that vaults and passwords were untouched.
1Password has not said how the attacker got into the account. It has promised a root cause analysis in the coming weeks. So we are not grading 1Password's controls here or guessing at a cause it has not published. The useful question for you is narrower: what could one compromised developer account reach in your repositories?
If your company uses 1Password itself, 1Password says you do not need to change anything in your account, and asks you to be careful with any invitation or account recovery message you did not request.
In a private repository on GitHub Free for organisations, any account with write access can push straight to the main branch, because that plan offers GitHub branch protection on public repositories only. If your deploy workflow runs on every push to that branch, the code reaches your customers without anyone but its author seeing it.
The second path never touches the main branch. GitHub's secure-use reference states that anyone with write access to a repository can read every secret configured in it. Pushing a workflow file to a side branch is enough to read the server key stored as a repository secret, and protecting the main branch does nothing for that side branch.
The third path is an admin account. GitHub's documentation on protected branches says a rule's restrictions do not apply by default to people with admin permission on the repository, unless you choose to include them.
You can stop the main path in two places. The side path to repository secrets stays open until production keys move into environment secrets.
List everyone with access to the repository that deploys to production: organisation members, outside collaborators from agencies and freelancers, service accounts, and any personal access tokens acting on their behalf. Then ask the six questions below of each one. A single answer that matches the last column puts that account on the fix list.
| Question about the account | Where to find the answer | Answer that needs action |
|---|---|---|
| Can it merge into the main branch without another person's review? | Repository settings: branch rules or rulesets | Yes, or it is an admin the rule does not cover, or an approval does not cover the latest push |
| Can it change deploy workflow files in .github/workflows? | Its repository role and the CODEOWNERS file | Yes, with no named owner reviewing that folder |
| Which secrets can a workflow it starts read? | Repository secrets versus environment secrets | Production keys stored as repository secrets |
| Can it deploy to production with nobody approving? | Settings for the production environment | No required reviewer, or it can approve its own deployment |
| Does it still need this access? | Outside collaborator list and contract dates | Contract ended, or no work on the repository for months |
| Which tokens act on its behalf? | Personal access token policy in organisation settings | Classic tokens, or tokens with no expiry date |
You do not need a paid access review tool for this step. GitHub's organisation audit log shows the last 180 days of events and only owners can see it, so ask an owner to check who changed branch rules or added collaborators in that window. If your staging environment shares production keys, an account that reaches staging reaches production too, which is the boundary covered in drawing the line between staging and live keys.
Three controls close the paths above: a required approval of the latest push before merging that binds admins too, production secrets held in an environment that only the protected branch can deploy to, and an approval on the deployment itself. Your GitHub plan decides which of them you can switch on for a private repository. The table follows GitHub's documentation as of November 2026.
| Control | What it stops | Plan needed for a private repository | Limit |
|---|---|---|---|
| Require two-factor authentication for the organisation | Sign-in with a stolen password alone | Free, Team and Enterprise | Does not stop a stolen session or token |
| Branch rule requiring approval of the latest push, admins included | One account merging code into the main branch | Team or Enterprise | An admin can still edit the rule |
| CODEOWNERS review for deploy workflow files | Changing the deploy workflow without its owner knowing | Team or Enterprise | Works only inside a branch rule |
| Environment secrets with deployments limited to the protected branch | Reading production keys from a side branch | Team or Enterprise | Repository secrets stay readable by anyone with write access |
| Required reviewers on the environment, with self-review prevented | One person deploying to production alone | Enterprise | On Free and Team, public repositories only |
| Token policy: owner approval and a maximum lifetime | Long-lived tokens acting for the account | An organisation owner setting | The lifetime limit blocks, without revoking, only tokens that belong to organisation members |
GitHub's reference on deployments and environments covers the fifth row: on Free, Pro and Team, required reviewers work only for public repositories, and preventing self-review means the person who starts a deployment cannot approve it, even if they are a listed reviewer.
The second row depends on one specific setting. GitHub's documentation on protected branches describes "Require approval of the most recent reviewable push", which needs someone other than the person who made the latest push to approve it. Without it, one account can get a harmless change approved, push another commit to the same pull request and merge it alone.
What each plan adds for private repositories from the controls in the table, at published prices as of November 2026.
As of November 2026, GitHub's pricing page lists Team at $4 per user per month and Enterprise at $21. On paid plans, each outside collaborator on a private repository takes a paid seat, so count agency and freelance accounts before you compare.
For most small companies keeping their code in private repositories on GitHub Free, our advice at TecnoStack is to move the organisation to Team and require another person's approval before every merge, with "Require approval of the most recent reviewable push" switched on so any commit pushed after an approval needs a fresh one. Then move production keys out of repository secrets into the secrets of a production environment, and allow deployments to it from the protected main branch only. After that, no code reaches production without a review, and no side branch can read the production keys.
We would hold off on Enterprise until you need a production deployment approval inside GitHub itself, for example because you deploy from several branches or a contract or regulator expects a sign-off on each release. If your cloud provider supports OIDC, replace the long-lived key with a short-lived token as described in the access controls for a CI/CD pipeline.
Two gaps stay open on any plan: admins who can edit the rules, and accounts whose owners have finished their work. Give admin rights only to your own staff, at least two of them so the organisation never depends on one person, as account handover terms for outside teams recommend for owners. Then check the audit log for rule changes. We review these settings with your team as part of a DevOps release and access review if you want an outside view.
This example is entirely hypothetical, and its amounts are US dollars from GitHub's pricing page. An online perfume store in Riyadh keeps its website code in a private repository on GitHub Free. Five accounts have access: the owner as organisation owner, an in-house developer with admin rights, two developers from the agency that built the site with write access, and a freelancer who finished the checkout page in the summer and still has the same access.
The deploy workflow runs on every push to the main branch and reads the server's SSH key from repository secrets. The owner fills in the sheet in one sitting. All five accounts answer yes to the first question, because the free plan does not protect branches in private repositories. All five can read the server key, including the freelancer who has not opened the repository in months. Nobody approves deployments.
The owner removes the freelancer first, then asks the in-house developer to issue a new SSH key and remove the old one from the server, since anyone with write access could read it. The organisation moves to Team with four paid seats, $16 a month, and the owner adds a main-branch rule that needs one approval of the latest push and includes admins. The new key goes into the secrets of a production environment that only the main branch can deploy to, and the owner requires two-factor authentication for the organisation.
Deployments still have no separate approval, because Team does not offer it for private repositories. The owner accepts the merge review as the second person: Enterprise for the same four seats would cost $84 a month for a control that changes little for a store deploying from one branch.
Fill in the sheet for the repository that deploys to production before the next change is merged into it. Start with any account that reaches production on its own, even if the others wait another week. If you would like a second opinion on the result, send us the completed sheet without any keys or passwords, and we will review it against your plan's settings before proposing any work.






