Skip to content
Discussion options

You must be logged in to vote

You are basically right. A GitHub App installation has access only to the resources it was granted on installation. And those resources differ depending on whether the installation is on an organization or a user account.

If you need to create repos in an organization:
Install the app on the org with administration:write, then use the Create a repository in an organization API with the installation token.

If you want to create repos in a personal account:
That’s not supported with GitHub App tokens. To do this, you’d need to fall back to an OAuth App or a personal access token (PAT) tied to the user account.

Workarounds
If the repo must live in your personal account, you’ll need to:

  • Auth…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yoav-hizki
Comment options

Answer selected by yoav-hizki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apps API and Webhooks Discussions related to GitHub's APIs or Webhooks Question Ask and answer questions about GitHub features and usage
2 participants