Open klepiz opened 2 years ago
The root cause of this behavior seems to be summarized by the following note:
https://github.com/actions/checkout/blob/2541b1294d2704b0964813337f33b291d3f8596b/action.yml#L68-L69
It is necessary to provide some credentials for accessing the my-org/my-repo
private repository to this action while allowing it to successfully checkout the repository on which the action itself runs. I am unsure how to do that properly in the same step based on this action.
One option might be to use the personal access token which would have the rights to both the repository on which the action runs, as well as to the other private repository. But it is unclear to me whether it can be done with SSH keys instead.
Related issue: #924.
Im trying to checkout multiple repos in a same job, one of them if where Im running the job and the second one is an internal repo.
The error that I got: