kitchen-inspec
kitchen-inspec copied to clipboard
Define private_key for git type inspec_tests
Hi,
This is mostly a feature request. Is there a way we can add features to support private repositories?
Thank you
@JohnRoach I'm able to make this work by setting up an SSH Agent and loading my GitHub key into it. You also have to specify the repository in [email protected]:owner/repository.git
form. As long as you have the right keys loaded, it should connect without issue.
The build server is usually ephemeral. I believe having the ability to define what keys to use is a very useful option.
@JohnRoach Without a doubt. I've been doing battle with my ephemeral build server to get it to work. I'm using Shippable which actually allows you to specify keys that get added to an ssh-agent that runs with every build, but it's still not working. I had only run it locally when I made my last comment.