In the same week of November 2026, two security-mature companies learned how far one developer’s GitHub identity reaches. At 1Password, a compromised employee GitHub account led to the CI/CD system and its infrastructure secrets. At SAP, reports say stolen GitHub tokens were used to copy and alter source code. Here’s what I’d lock down in my own org first.

I want to be careful with this one. Both investigations are still open, and neither company has published a root cause. Everything below about the incidents comes from what 1Password and SAP have said publicly, or from reporting that I label as reporting. The rest is the checklist I’d run against my own GitHub org this week, and none of it depends on knowing exactly how either attacker got in.

What happened

1Password: from a GitHub account to CI/CD and customer records

On November 25, 1Password published an update on the incident. On November 19 it began investigating signs that “an attacker gained access to an employee’s corporate GitHub account.” By 1Password’s own account, the attacker copied source code from private repositories, got into the CI/CD system (which “contains infrastructure related secrets”), and pushed malicious code to backend services. That code then downloaded administrative records for a subset of users: names, email addresses, account and user IDs, public keys, SRP parameters, and tokens from some invitation, provisioning and recovery links.

1Password says vault contents, the keys that protect them, and its apps and browser extensions were not affected, and that customers don’t need to change anything. Its response: disable the GitHub account, revoke “the stolen token,” rotate every internal credential that may have been exposed, lengthen invitation and recovery codes from six digits to ten alphanumeric characters, and tighten “internal GitHub, CI/CD, and endpoint controls.” It hasn’t said how the employee’s account was compromised. A root cause analysis is promised “in the coming weeks.”

SAP: confirmed suspicious activity, reported token theft

On November 27, BleepingComputer reported that SAP had “identified suspicious activity and promptly implemented the necessary measures,” and had “found no evidence of unauthorized access to customer business data.” That’s what SAP has confirmed.

The rest comes from Der Spiegel, which cited an internal memo and insider sources. It reports that SAP is tracking the attack as “Project Granite,” that the attackers stole authentication tokens for SAP’s GitHub environment, and that they used them to copy and modify source code. SAP hasn’t confirmed the token theft, the code changes or the codename, and it declined to share more.

So we’ve got one confirmed case of a GitHub identity reaching CI/CD secrets and production, and one reported case of stolen GitHub tokens reaching source code. I don’t need either root cause to know what I’d go check first.

Why one GitHub token reaches so far

GitHub is no longer where your code sits while the real work happens somewhere else. For most teams it’s the control plane for the whole delivery path: source, build, secrets, deploy. A developer’s credential for it inherits all of that, and it almost always reaches further than anyone meant it to.

Start with the token itself. A classic PAT with repo scope covers every repository the user can reach, in every org they belong to, and it never has to expire. GitHub’s own docs say classic tokens “do not have an expiration requirement.” Developers then reuse that one token for the CLI, a few scripts, a local agent and a couple of internal tools, so stealing it once gets you everything.

Then look at where the cloud keys live. If your deploy job authenticates with a long-lived AWS access key or a service-account JSON stored as an Actions secret, anyone who can edit a workflow can get it. They don’t need to read the secret store at all. They push a branch with one extra step that sends ${{ secrets.AWS_SECRET_ACCESS_KEY }} somewhere, and the workflow runs it with whatever it’s allowed to touch. Write access to a workflow is code execution in your CI.

Self-hosted runners make it worse. A runner that’s reused between jobs, sits on the internal network, or keeps cached credentials turns one malicious job into a foothold that outlives the job.

In a lot of the orgs I’ve looked at, that’s simply the setup. Every piece was the easiest way to get a pipeline working at the time, and nobody went back.

The checklist

I’ve put these in the order I’d do them. The ones at the top take away the most reach for the least effort.

1. Fine-grained, short-lived tokens; kill classic PATs; require approval

Fine-grained PATs are scoped to one resource owner and to specific repositories and permissions. Org owners can set a PAT policy that blocks classic PATs from the org entirely, requires an admin to approve every fine-grained token that wants org access, and caps token lifetime. The default cap for fine-grained tokens is 366 days, which is far too long. I’d start somewhere between 30 and 90.

Approval is the part people skip, and I think it’s the most useful. It gives you a list of every token that can touch your org, who asked for it and why, which is exactly what you want on the day you have to revoke things. For automation, use a GitHub App with an installation token instead of a person’s PAT, so the credential belongs to the job, not the human.

2. OIDC federation instead of stored cloud keys

GitHub Actions can request an OIDC token that your cloud provider exchanges for short-lived credentials, so you “won’t need to duplicate your cloud credentials as long-lived GitHub secrets.” The trust policy on the cloud side decides which repo, branch or environment can assume which role.

permissions:
  id-token: write   # needed to request the OIDC token
  contents: read

jobs:
  deploy:
    runs-on: ubuntu-latest
    environment: production
    steps:
      - uses: aws-actions/configure-aws-credentials@v4
        with:
          role-to-assume: arn:aws:iam::123456789012:role/deploy-prod
          aws-region: us-east-1

On the AWS side, pin the role’s trust policy to the sub claim for that repository and environment:production, not to the whole org. A wildcard sub puts you right back where you started.

3. Environment protection rules for production secrets

Put production credentials in an environment, not in repo-level secrets, and add:

  • required reviewers, so a human approves each job that uses the environment,
  • deployment branch rules, so only main (or your release branches) can deploy, and
  • prevent self-review, so the person who pushed the change can’t approve its deploy.

With those in place, a stolen developer token can push a modified workflow to a feature branch all day and still not get the production secret. The environment won’t release it to that branch, and a second person has to approve the job anyway.

4. Secret scanning and push protection on every repo

Push protection blocks a commit that contains a recognized secret before it lands, and secret scanning finds the ones already in history. Turn both on at the org level for new repos too, so nobody has to remember. It won’t stop an attacker who already has your token, but it shrinks the pile of credentials sitting in code waiting to be found. That’s often how the second token gets stolen. My guide to leaked API keys and secrets covers where else they turn up.

5. Least-privilege GITHUB_TOKEN (default to read)

Set the org default for the GITHUB_TOKEN to read-only, then grant per workflow or per job only what it needs:

permissions:
  contents: read

jobs:
  release:
    permissions:
      contents: write     # only this job can push tags
      id-token: write
      attestations: write

Also disable “Allow GitHub Actions to create and approve pull requests” unless you have a reason. If a workflow can approve its own pull request, your branch protection isn’t protecting much.

6. Ephemeral, isolated self-hosted runners

GitHub’s guidance on self-hosted runners boils down to three things. Use ephemeral or just-in-time runners that get destroyed after a single job, so nothing one job leaves behind is there for the next. Never put self-hosted runners on public repos, because anyone who can open a pull request can run code on them. And isolate them: their own network segment, egress limited to what builds actually need, and no standing cloud credentials (that’s what the OIDC step is for).

7. Signed commits and branch protection, so you can prove what changed

Use rulesets on default and release branches to require pull requests with review, block force pushes and deletions, and require signed commits. I care about signing less for prevention and more for the day after. If every commit on main is signed by a key tied to a known person or to GitHub’s web-flow key, an unsigned or unexpected signature stands out when you’re trying to answer “did they change our code?”

Detect it, then prove what changed

None of the above makes a breach impossible. When the call comes, you’ll need to answer two questions quickly: what did this token do, and what did it change?

Stream the audit log somewhere you keep it. GitHub Enterprise Cloud can stream audit logs to your SIEM or storage. Do it, because Git events (clone, fetch, push) are only kept for seven days through the API.

Pivot on the token. Audit events carry a hashed_token field. If you have the stolen token, hash it and search for everything it did:

HASH=$(echo -n "$TOKEN" | openssl dgst -sha256 -binary | base64)
gh api -X GET "/enterprises/ACME/audit-log" \
  -f phrase="hashed_token:\"$HASH\"" -f include=all --paginate

Alert on these events (names from GitHub’s audit log event reference):

What you’re looking forEvents
Bulk or unusual cloninggit.clone, git.fetch from new IPs or user agents, repo.download_zip
New or approved tokenspersonal_access_token.request_created, personal_access_token.access_granted
Secret changesorg.update_actions_secret, repo.update_actions_secret, environment.update_actions_secret
Weakened guardrailsprotected_branch.policy_override, repository_ruleset.update, environment.remove_protection_rule, org.secret_scanning_push_protection_disable
New CI footholdsrepo.register_self_hosted_runner, workflows.created_workflow_run on branches that don’t usually run

One gap to know about: GitHub doesn’t log a “secret was read” event. A secret leaves through a workflow run, so you investigate the run (who triggered it, from which branch, with which workflow file), not the secret store.

Find force-pushes. Your local reflog only knows what your clone saw. GitHub’s repository activity API is the server-side record of who changed which ref, including history rewrites:

gh api "/repos/ACME/app/activity?activity_type=force_push" --paginate

Prove the artifacts. If your releases carry artifact attestations (Sigstore-backed provenance that records the repo, workflow and commit that built them), you can check every shipped binary against a known-good commit:

gh attestation verify ./app-1.4.2.tar.gz --repo ACME/app

Together, signed commits, the activity log and attestations let you say “these are the commits and builds we can vouch for.” Without them, you’re diffing source against an old backup and hoping it’s clean.

If it happens to you

In order, without waiting for the full picture:

  1. Revoke the token and suspend the account. Revoke the user’s sessions, PATs, SSH keys and OAuth app grants, not just the one token you know about.
  2. Rotate every secret that identity’s workflows could reach. That means repo, org and environment secrets, plus cloud keys, signing keys, and deploy and registry tokens. If you’re on OIDC, rotate trust-policy assumptions instead of keys, and tighten the sub claim.
  3. Pull the audit log before it ages out. Export everything for the token hash and the actor, including Git events, which only last seven days through the API.
  4. Diff what shipped. Compare release tags against signed commits, check the force-push activity, and verify attestations on everything built in the window. Rebuild from a known-good commit if you can’t vouch for a release.
  5. Check what the CI could touch. If the pipeline could deploy to production, treat production as in scope. 1Password’s attacker got as far as pushing code to backend services.
  6. Say what you know, and say what you don’t. Both companies stuck to what they could confirm, and I’d do the same.

This is software supply chain security seen from the inside. The packages are yours, and the compromised maintainer is one of your own engineers.

One more thing: if your developers run AI coding agents, those agents usually hold the same GitHub token the developer does. Give them their own narrow, short-lived credential. I wrote up how in least privilege for AI agents.

Where to go next:

Sources

Accessed November 27, 2026.