Fork repository through REST API using GitHub App Access Token #48049
Replies: 3 comments
-
It worked after updating the permissions and re-installing the app. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hi, the following API endpoint for creating a fork mentions that it works with GitHub Apps:
https://docs.github.com/en/rest/repos/forks?apiVersion=2022-11-28#create-a-fork
However, when I'm passing the GitHub app's access token to this endpoint, it is returning the following error:
{ "message": "Resource not accessible by integration", "documentation_url": "https://docs.github.com/rest/reference/repos#create-a-fork" }
Is it possible to fork a repository by passing GitHub App's access token and not authenticated user's personal access token?
Beta Was this translation helpful? Give feedback.
All reactions