Error: Unable to resolve action `mygh/my-action@main`, repository not found

Viewed 4083

I have two private repositories on GitHub.

mygh/my-action
mygh/my-code

I'm trying to run a workflow from mygh/my-code that uses the custom action mygh/my-action but GitHub Actions fails with this error:

Failed to resolve action download info. Error: Unable to resolve action `mygh/my-action@main`, repository not found
Retrying in 12.717 seconds
Failed to resolve action download info. Error: Unable to resolve action `mygh/my-action@main`, repository not found
Retrying in 11.214 seconds
Error: Unable to resolve action `mygh/my-action@main`, repository not found
1 Answers

Action repository needs to be set as public, at least that's a requirement for now.

However, uses doesn't need to point to repo necessarily. It can also point to a path see docs. This way you can either, checkout private repo containing action or have it in same repo where your workflow is.

Related