An internal service creates repositories for new teams. Does that mean it should also be able to delete or transfer them? Changes announced by GitHub on October 13 make that separation easier through more targeted permissions for GitHub Apps and fine-grained tokens.
The announcement is a useful reason to revisit established automation. A credential can work reliably for so long that nobody remembers why it has such extensive access.
Two permissions worth examining
GitHub introduced repository_creation:write to create repositories without the broader administration permission. installation_repositories:write covers adding a repository to, or removing it from, an application installation.
The official announcement also explains that organisational approval rules still apply. Finer permissions do not let arbitrary users freely install sensitive applications.
Describe the action before choosing the credential
Our recommendation is to describe the requirement without mentioning tokens first. Does the service create repositories, read content or manage which application installation can access them? Convenience should not collapse those tasks into a single broad permission set.
That exercise can uncover rights added to solve an old blocker and never revisited. Temporary access easily becomes permanent when nobody owns its removal.
Choose a limited test scope next. Repeat the necessary operations with reduced permissions, but also verify that an unwanted operation is refused. A successful positive test alone does not demonstrate a useful boundary.
Plan a migration, not a blind replacement
We suggest identifying the scripts and services using the current identity. An account name does not always reveal who depends on a shared secret.
Assign a test period, owner and rollback procedure. The objective is to remove the old rights once the replacement is confirmed, not to add another credential beside the one nobody dares revoke.
Document rotation and revocation as well. More narrowly scoped identities still need management throughout their lifetime. Include that work in the change rather than leaving it for a later cleanup that may never happen.
Least privilege needs ongoing decisions
A more detailed permission menu reduces nothing until existing applications are reviewed. The practical benefit depends on an inventory and deliberate changes afterwards.
Our coverage of stateless installation tokens addresses another part of the system. Token format does not remove the central questions: what may this identity do, to which repositories, and for how long?
Cover image: generated illustration, not a screenshot of GitHub's interface.




Join the discussion
Comments
Loading comments…