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!

gefragt vor 4 Jahren3695 Aufrufe
1 Antwort
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
beantwortet vor 4 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen