Mad World #Save_GAZA: Free Palestine  

Search

GitHub App Permissions Update: New Least-Privilege Grants for Repository Creation and Installation Management

GitHub App Permissions Update: New Least-Privilege Grants for Repository Creation and Installation Management

GitHub released several GitHub App improvements on October 13, 2026, that replace over-privileged permissions with fine-grained grants and make app credential management easier. Two new permissions, repository_creation:write and installation_repositories:write, let apps create repositories without repository_administration:write and let automation manage installation repositories without classic repo-scoped PATs. Repository administrators can add their repositories to apps already installed and approved at the organization level, offline_access supports gradual token-expiration rollout, and a dedicated Credentials tab simplifies key location.

Why this update matters for CI/CD and automation security

Before October 2026, any app or PAT that needed to create a repository required repository_administration:write, which also grants repository deletion and transfer. Administrators either rejected the app, banned the permission, or accepted the over-privilege risk. The new repository_creation:write permission follows least-privilege design by granting only repository creation. An organization owner must still install the app, because repository creation joins organization-level permissions and repository administration as one of three sensitive permission sets requiring organization owner approval.

Controlling which repositories an app installation can access previously required a classic PAT with the coarse-grained repo scope. The Add a repository to an installation API and its corresponding removal API now support GitHub Apps and fine-grained PATs. The new installation_repositories:write permission lets a GitHub App or fine-grained PAT add or remove a repository from an installation without that broad grant. When granted on a repository, installation_repositories:write allows the caller to add or remove that repository from any installation in the organization; if the caller is a user, they must also be an organization owner or an administrator on the repository in question.

Replace over-privileged permissions where you control the app

GitHub organization owners and security teams should review GitHub Apps and fine-grained PATs that their organization owns and that request repository_administration:write. If an app only creates repositories, replace that permission with repository_creation:write. Identify automation that uses a classic PAT with the repo scope to add or remove repositories from app installations, and replace it with a GitHub App or fine-grained PAT that uses installation_repositories:write.

GitHub Apps can now use the Get an app API to fetch details about private and internal GitHub Apps under shared ownership. Public apps remain fetchable by any app. Apps in the same organization can fetch each other's details regardless of visibility. Internal apps in the same enterprise can be fetched by another app in that enterprise, even across organization boundaries. Enterprise-owned apps can fetch details about apps owned by organizations in the same enterprise. Use this expanded access to support app auditing where the app identities are known.

Decide whether repository administrators may add approved apps to their repositories

Repository administrators can now edit an existing installation to add their repositories to an app already installed in the organization, without requiring fresh organization owner approval. The app already has organization-level access, so adding it to another repository does not increase that access or give the repository administrator additional privileges. This change only applies when the app is already installed and approved by an organization owner for that organization-level access.

Decide whether this behavior represents an acceptable change from your current policy. If not, the GitHub changelog references a setting documented under "Restricting GitHub App Installation to Organization Owners," but the exact UI path or API endpoint is not provided in the October 13, 2026 changelog. Communicate the change to repository administrators and security teams so they understand the new access pattern.

Reduce repository access to the minimum required scope

Review the repositories each GitHub App installation can access and remove repositories that the app no longer needs. Use installation_repositories:write to automate this cleanup without relying on a broadly scoped classic PAT. The GitHub changelog does not document specific UI paths or API workflows for enumerating installed apps, inspecting current repository access, or removing repositories from installations; organizations should consult GitHub's app installation documentation for those procedures. Limit app access to selected repositories instead of granting broad organization-wide access.

If you disabled token expiration for user access tokens in GitHub Apps, test offline_access with a controlled user population before migrating existing clients to expiring tokens. When offline_access is requested, the app receives a refresh token in addition to the expiring access token. It only changes that specific authentication and does not impact future sessions. GitHub App permissions remain statically selected on the application registration; the scope parameter is otherwise unused for GitHub Apps.

Check the new Credentials tab

GitHub App credentials moved from inline configuration to a dedicated Credentials tab. This makes credentials easier to locate and manage, and prepares space for planned workload federation credentials.

If an app's private key or client secret was ever committed to a repository, delete it here and generate a new one, then find leaked keys in your Git history with Gitleaks and block the next one.

GitHub Enterprise Server availability

offline_access support ships in GHES 3.23. The remaining improvements (including repository_creation:write, installation_repositories:write, relaxed repository-administrator installation behavior, expanded app visibility, and the Credentials tab) are planned for GHES 3.24.

Frequently asked questions

Does repository_creation:write still require organization owner approval to install the app?

Yes. An app using repository_creation:write still requires an organization owner to install it, because repository creation is one of three sensitive permission sets that require organization owner approval.

Can I prevent repository administrators from adding apps to their repositories?

Yes. The GitHub changelog references a setting under "Restricting GitHub App Installation to Organization Owners" that prevents repository administrators from adding their repositories to apps, even when the app is already installed in the organization. The changelog does not provide the exact UI path or API endpoint; consult GitHub's installation documentation for those details.

Does offline_access change GitHub App permissions?

No. The offline_access scope affects only a specific authentication by providing a refresh token with an expiring access token. GitHub App permissions remain statically selected on the application registration.

Verification status: Supported by official documentation only under the conditions below; not reproduced in a test environment by IGPROD. Checked 2026-10-14.

Applies to: GHES 3.23; GHES 3.24.

Conditions:

  • An app using repository_creation:write still requires an organization administrator to install the app.
  • When a repository is created, the app or user that created it is given access to it.
  • installation_repositories:write allows adding or removing that repository from any installation in the organization.
  • If the caller is a user, they must also be an organization owner or administrator on the repository.
  • Repository admins can add repositories only to an app already installed and approved in the organization.
  • Organization owner approval is required for all org-level permissions, repository administration, and repository creation.
  • offline_access only changes that specific authentication and does not impact future sessions.
  • For GitHub Apps, the scope parameter is otherwise unused; permissions are statically selected on registration.
  • Private and internal app details are fetchable only under the listed shared-ownership patterns.
  • offline_access is in GHES 3.23; other improvements are in GHES 3.24.

Sources:

Fatima Ezzahra

Fatima Ezzahra

Fatima Ezzahra covers AI tools, open-source projects and technology news for IGPROD.

Leave a comment

Your email address will not be published. Required fields are marked *

Your experience on this site will be improved by allowing cookies Cookie Policy