-
I would like to push some commits to a different repo within the same org but the GH token doesn’t seem to be valid for other repos. What’s the best way to push code to other repos? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hi, I have same request do you have any solution about it ? Awaiting your feedback about this case. Thanks Romaine |
Beta Was this translation helpful? Give feedback.
-
You need to create a personal access token. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the response. The PAT will have the same permissions as me, though, right? I’m a bit scared to give everyone in the repo access to all repos I have access to. Is there a way to scope the token? |
Beta Was this translation helpful? Give feedback.
-
I haven’t found a way to scope the token, unfortunately – one workaround is to create a bot account and only add it to a couple of repos, and then make the token with that account. |
Beta Was this translation helpful? Give feedback.
-
can you please share the solution u have implemented. i have to implement the same solution. |
Beta Was this translation helpful? Give feedback.
I haven’t found a way to scope the token, unfortunately – one workaround is to create a bot account and only add it to a couple of repos, and then make the token with that account.