Skip to content

GitHub Actions Unable to Clone secondary Internal Repository Using GITHUB_TOKEN in Workflow – Repository Not Found Error #138818

Answered by behdad088
bhabanistr asked this question in Actions
Discussion options

You must be logged in to vote

Hi @bhabanistr
I am not 100% sure this will help you, but I had pretty much the same issue and solved this as below.
The issue you’re encountering while trying to clone a secondary repository using GitHub Actions and the GITHUB_TOKEN is most likely related to permissions and access rights between repositories within the same organization.

Here’s how you can resolve the issue and ensure that the GitHub Action runner has the correct access to clone the secondary repository:

  1. Understanding GITHUB_TOKEN Scope:

The default GITHUB_TOKEN provided in GitHub Actions has limited access to repositories. It only has access to the repository where the workflow is running by default. To allow access t…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bhabanistr
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
None yet
3 participants