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'
Links
- Making a GitHub App public or private — Where a private, public or enterprise-owned App can be installed.
- Generating an installation access token — How an App gets its token, and that it expires after an hour.
- Permissions required for GitHub Apps — Which permission each REST endpoint needs.
- Managing custom properties — Defining properties and who may set their values.
- Audit log events for your organization — The
integration_installationevents.
On the blog
- Set up a GitHub repo where a coding agent can't merge without you · 11 Oct 2026
- Hand GitHub issues to Claude with no API key and a US$20 cap · 20 Oct 2026
History
- 14 Nov 2026 Added as Using.