No Way to Use Deploy Key Only For Specific Submodule? #907
Unanswered
xanderdunn
asked this question in
Q&A
Replies: 1 comment 1 reply
-
This is the way I'm doing it, but it would be better if we could just set the
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a private repository. It has two submodules in it. One of them is public, and one of them is private.
The above succeeds, but fails to fetch any of the submodules.
The above fails because it can't checkout the private submodule.
I create a deploy key on the private submodule's repository, and add the private key as a secret on the repository where I'm running this GitHub Action. However:
The above fails because it tries to use the
ssh-key
for all three repositories: this repo, the public submodule, and the private submodule. This fails on both this repo and the public submodule because the deploy key is only on the private submodule.So, I manually check out reach repository:
Is there really no way to do this with the checkout action? Must I maintain all of the above manually? It's fragile because I'm not actually using what's in the .gitmodules, I've hard-coded every repo to be checked out in the GitHub Action. It would be nice if the ssh-key could be specified for a specific submodule, or if it would fallback to the default credentials if the ssh-key fails.
Beta Was this translation helpful? Give feedback.
All reactions