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!

feita há 4 anos3695 visualizações
1 Resposta
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
respondido há 4 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas