App access requests and installations
Why Tier 2
Decides who can ask for an app to be given access, and whether repository admins can install GitHub Apps themselves. Requests still go to an owner; installs by repository admins do not, but they only reach repositories that admin already controls.
Two organization settings: which users can request organization access for apps, and whether repository admins may install GitHub Apps on their repositories. That second one is on by default: repository admins can install Apps that need no organization or repository administration permissions, and add their repositories to any App an owner already installed.
Available on: Every setup. Source
Attack path
Open requests let outside collaborators and members flood owners with app requests, which makes a malicious one easier to approve by mistake. With repository admin installs allowed, an outside collaborator who is admin on one repository can install an App there, or add the repository to a powerful App the organization already approved, without an owner seeing it.
Mitigations
- Keep OAuth app access restrictions on and require security/IT approval for new apps
- Maintain a documented list of allowed apps, their use case, and their owner
- Limit app requests to members
- Turn off "Allow repository admins to install GitHub Apps for their repositories" so every install goes through an owner
Detect
Alert on integration_installation_request.create, org.oauth_app_access_requested, integration_installation.create in the audit log (the closest events GitHub logs).
Related permissions
GitHub Docs: Limiting OAuth app and GitHub App access requests and installations