chef / omnibus

Easily create full-stack installers for your project across a variety of platforms.
Apache License 2.0
1.29k stars 296 forks source link

Private github repository as software dependency #659

Open pradeepchhetri opened 8 years ago

pradeepchhetri commented 8 years ago

Hello,

One of the software dependencies I have in my project is a private github repository. What I can think of is passing github token as some environment variable and use that in the software definition. source :git => "https://${GITHUB_TOKEN}@github.com/foo/bar.git"

I don't want to use key because i am running omnibus inside containers and don't want to push keys inside images.

I would like to hear if there are better approaches for solving it.

Thank you.

logicminds commented 7 years ago

Can you mount your ssh directory instead the container using -v ${HOME}/.ssh:${HOME}/.ssh? This way the container would have access to your keys.

salsa-dev commented 5 years ago

if source :git => "https://${GITHUB_TOKEN}@github.com/foo/bar.git" is used after build the version-manifest.json contains GITHUB_TOKEN value in locked_source

thus, it is not usable solution.

is there any other way ?