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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ