0

I have a GitHub repository referencing a submodule in a different org. Authenticating as my user account, I can clone the repository and update the submodule.

I need the same behaviour in Jenkins. Jenkins is authenticating as a GitHub App and can successfully clone the repository. It is unable to find the submodule however, despite the GitHub App having permissions on both orgs.

I am assuming this is because when authenticating as a GitHub App, you get an access token for an app installation in a specific org. Jenkins uses the same credentials for the clone and the submodule update, and given that the access token is for one org only, it makes sense that the submodule update fails.

On that basis, is it impossible to have Jenkins recursively update submodules if the repository and the submodules are in separate GitHub organisations?

notxapw4
  • 83
  • 1
  • 7

0 Answers0