Skip to main content
When a third‑party tool (CI/CD pipelines, project management boards, code‑quality scanners) needs access to your repositories, it integrates with GitHub in one of two ways: as an OAuth app or as a GitHub App. Choosing the right integration model affects security, operational resilience, and compliance—especially important for automation, audits, and certification readiness. What follows clarifies the architectural and operational differences, shows how each model authenticates and gains permissions, and provides practical guidance for when to prefer one over the other. OAuth apps: act as a delegated user An OAuth app authenticates as a GitHub user. When Jane, a lead developer, installs an OAuth app to run automated tests, that app operates with Jane’s identity and permissions. If Jane’s account or repo access is removed, the OAuth app’s access is revoked because it relied on Jane’s credentials.
A diagram titled "The App Borrows Jane's Access" showing Jane (lead developer) installing an OAuth app that runs automated tests. The app uses Jane's identity and is granted Read, Write, and Admin permissions.
Operational risk with OAuth apps Because OAuth apps inherit a user’s identity, they create an operational dependency on that user. If the user leaves the company or loses repository permissions, any automation relying on OAuth tokens may fail—potentially halting CI/CD pipelines or blocking critical workflows. GitHub Apps: first‑class actors with scoped installations A GitHub App is an independent actor with its own identity and credentials. You install the app at the organization, user account, or repository level. Each installation has a separate installation token and its own set of permissions you configure per installation—so the app is not tied to any single human account.
A simple diagram titled "Where a GitHub App Installs" showing a GitHub app icon with arrows pointing to two install targets: "An organization" and "A specific repository," both marked as allowed.
Resilience to employee churn Because GitHub Apps authenticate as themselves using JWT for the app and short‑lived installation tokens for API calls, they continue operating even when individual employees leave or their accounts are deprovisioned. That separation of identity and installation reduces operational breakage.
A presentation slide titled "It Survives Employee Churn" showing a crossed-out employee icon labeled "Jane — Leaves the company." To the right is a GitHub app icon with a green caption saying "Its own identity, so it survives."
Fine‑grained, per‑installation permissions GitHub Apps support per‑repository permissions and can be installed across many repositories or organizations with different permission scopes for each installation—making them suitable for large environments where least‑privilege access and granular controls matter.
A diagram titled "One App, Many Repositories" showing a GitHub app icon on the left with arrows branching out to multiple repository icons, illustrating fine-grained access levels. The caption at the bottom reads "Hundreds of repositories, served at once."
Key technical differences
  • Independent identity and installation tokens (not tied to a human user).
  • Fine‑grained permissions configurable per installation (repo/org level).
  • Short‑lived installation tokens and standard authentication flows (JWT for app authentication, installation tokens for API calls).
  • Support for webhooks scoped to the app installation.
For practical architecture decisions: OAuth apps authenticate as the user and inherit the user’s permissions; GitHub Apps authenticate as themselves, are installed on organizations or repositories, and use scoped installation tokens and permission models per installation.
Comparison table: OAuth apps vs GitHub Apps When to choose which
  • Choose OAuth apps for small teams or tools that must act explicitly on behalf of a single user, where delegation to the user identity is the intended behavior.
  • Choose GitHub Apps when you need resilient, secure automation across multiple repos or orgs, require least‑privilege scoped access, or must maintain uninterrupted access despite staff turnover.
Practical implementation pointers
  • Use GitHub Apps for CI/CD and automation that must run independently of any one person.
  • Prefer short‑lived installation tokens and automated token rotation where possible.
  • Configure the minimum permissions required per installation and enable only the webhooks you need.
  • Audit installations regularly and maintain an inventory of installed apps per organization.
A slide titled "For the Exam" comparing an OAuth app and a GitHub app with icons. It notes OAuth apps authenticate as the user and consume the user's permissions, while GitHub apps authenticate as themselves and are installed on organizations or repositories.
Links and references

Watch Video