Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define private_key for git type inspec_tests #181

Open
johnroach opened this issue Apr 2, 2018 · 3 comments
Open

Define private_key for git type inspec_tests #181

johnroach opened this issue Apr 2, 2018 · 3 comments
Labels
Type: Enhancement Adds new functionality.

Comments

@johnroach
Copy link

Hi,

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

Thank you

@StuporHero
Copy link

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

@johnroach
Copy link
Author

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

@StuporHero
Copy link

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

@zenspider zenspider added the Type: Enhancement Adds new functionality. label Oct 8, 2019
@clintoncwolfe clintoncwolfe changed the title Define private_key for git type inspect_tests source Define private_key for git type inspec_tests Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Adds new functionality.
Projects
None yet
Development

No branches or pull requests

3 participants