# put the contents of the private key argument into id_rsa inside our ssh folder and give permissions
# Then download our modules and private modules, finally delete the ssh key.
RUN echo "$SSH_PRIVATE_KEY" > /root/.ssh/id_rsa && \
chmod 600 /root/.ssh/id_rsa && \
go mod download && rm -rf /root/.ssh
Hi folks
I am currently doing the above to pass github credentials to my docker build file. i don't particularly like passing ssh credentials like this.i would prefer something like a github token of some sort. is there a better way to build private go modules in a container that i can use in a dagger module ? how do people do it ?