Using

GitHub Apps

Last reviewed

The identity for automation in an organization where people may not create repos. Owned by the organization, not a person, with tokens that expire after an hour and permissions picked one by one.

What I use it for

  • Repos from a template, in an organization where members can't create repos. Creation stays closed for people and is still automated.
  • Custom properties on the new repo, so the right rulesets of the organization apply to it.

Permissions that matter

Permission Level What it allows
Administration (write) Repository Create a repo in the organization
Contents (read) Repository Needed on top to create it from a template
Custom properties (write) Repository Set values on the repos it is installed on, if the property allows repository actors; otherwise a 422
Custom properties (write) Organization Set any property on any repo

I use the repository-level one. Property values decide which rulesets apply, so the organization permission would let an App installed on a few repos change the rules for all of them.

Catches

  • A private App installs only on the account that owns it. An enterprise-owned App is internal and installs on every organization of that enterprise.
  • An installation stays behind when a repo moves to another organization. Install the App again there.
  • The private key is the one stored secret. Close to OIDC, not the same.

What an installation covers

Without the App's own credentials, the organization audit log shows which repos an installation covers and when that changed. Look for repositories_added and repositories_removed; it needs an organization owner with read:audit_log.

gh api 'orgs/ORG/audit-log?phrase=action:integration_installation'

On the blog

History

  • 14 Nov 2026 Added as Using.