Does CodeBuild support fetching from private GitHub repository?

0

I have been trying to use a private GitHub repository to build a few micro-services with CodeBuild and have not been able to do it successfully. After investigating a little bit more I believe I had read somewhere that if you are using GitHub the repository MUST be public, otherwise we need to use CodeCommit or another solution. Is this the case?

Thanks in advanced!

demandé il y a 4 ans3695 vues
1 réponse
0

That's incorrect. You can connect to private GitHub repository using OAuth[1] or Personal access tokens[2]. CodeBuild user guide has couple of samples to walk you through step by step for configuring this. Note that OAuth connection will need you to configure it through the console UI. Personal access token though can be setup by invoking the ImportSourceCredentials API.

[1]: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-github-pull-request.html
[2]: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-access-tokens.html

AWS
Subin M
répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions