kitchen-inspec icon indicating copy to clipboard operation
kitchen-inspec copied to clipboard

Define private_key for git type inspec_tests

Open johnroach opened this issue 6 years ago • 3 comments

Hi,

This is mostly a feature request. Is there a way we can add features to support private repositories?

Thank you

johnroach avatar Apr 02 '18 03:04 johnroach

@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.

StuporHero avatar Jun 08 '18 04:06 StuporHero

The build server is usually ephemeral. I believe having the ability to define what keys to use is a very useful option.

johnroach avatar Jun 10 '18 14:06 johnroach

@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.

StuporHero avatar Jun 11 '18 12:06 StuporHero