Skip to content

Add repository created by Github App to Github App repository access #72593

Discussion options

You must be logged in to vote

I found a solution. Apparently, if you create a blank repository using a GitHub App, that repository is automatically added to the app's permissions list. I was trying to create a repository using a template, and it looks like this endpoint doesn't add the newly created repo to the app permission list.

The solution was to create a blank repository in order to be accessible by the app. After that, I was able to use the GitHub API to make changes to that repository. However, because I wanted to initialize the repository with a template, I couldn't make use of the API, so I had to programmatically clone the repository and push my template as an initial commit.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@stefandarius
Comment options

Answer selected by stefandarius
@kprkacin
Comment options

@stefandarius
Comment options

@kprkacin
Comment options

@stefandarius
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API and Webhooks Discussions and conversations related to APIs or Webhooks Question
3 participants