Cloning private repo with a Github App private key #24575
-
Hello! I was wondering if it is possible to clone a private repository using a Github App private key. Is it possible? If so, do you know which permissions it requires to do so? I tried giving it “Contents” read-only permissions, but it still cannot clone it… The way I test it is by using:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Did you find a solution? I am trying to clone private repositories with my Github App aswell. I just found a way that works for me using the command line. https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/ at the very bottom
I am retrieving a user token using a POST request to https://api.github.com/app/installations/$installationId/access_tokens. |
Beta Was this translation helpful? Give feedback.
-
Cloning a private repo using GitHub App can be achieved by below approach
Done !! |
Beta Was this translation helpful? Give feedback.
Did you find a solution?
I am trying to clone private repositories with my Github App aswell.
I just found a way that works for me using the command line.
https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/ at the very bottom
I am retrieving a user token using a POST request to https://api.github.com/app/installations/$installationId/access_tokens.