Closed akaltar closed 3 years ago
Hello @akaltar. I don't think there is any way to get webfactory/ssh-agent to work with a docker based action 😞. The ssh-agent is just not reachable from the container.
You could pass the private key into the container as an environment variable, or a file in the workspace. Either way, you would need to change the action so it configures ssh to use the key.
Thank you, it looks like that would also mean I need to set up things like gcloud access internally as well. How is your repository licensed? Can I try to make a fork that doesn't use a docker container and just relies on terraform already being set up?
@dflook Sorry for the spam, just not sure if you got a notification for the previous message I sent. Can I fork and modify this repository? Could you please give it a license? Thank you
Hi @akaltar, with v1.8.0 you can set a TERRAFORM_SSH_KEY
environment variable that will be used for cloning terraform modules from a git source.
I'm trying to use this action with a terraform project that imports its submodules from another (private) repository.
This is the type of error I'm getting:
Even though if I run
git clone
before this, it does work as expected, and the action I use before adds the correctknown_hosts
values for github.com. here is the relevant snippet from the workflow I'm writing:Based on the logs it looks like this action is using a different home directory and runs inside a docker container, hence why it may not take into account the SSH setup? I assume fixing this may require changes to the action, I'd just like some help about how to go about this. Thank you for this super handy action library.