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!

已提問 4 年前檢視次數 3695 次
1 個回答
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
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南