0
0

【AWS】Codepipelineで[GitHub] No Branch [xxx] found for FullRepositoryName と出た場合

Posted at

概要

AWS CodepipelineでGithub接続バージョン2を利用していたら以下のエラーになりました。こちらの解決方法を紹介します。

[GitHub] No Branch [xxx] found for FullRepositoryName [xxx/xxxx_xxx]

image.png

前提:CodePipeline設定

  • Sourceのアクションプロバイダーは GitHub バージョン2 を利用
  • Buildのアクションプロバイダーは AWSCodebuild を利用
  • CodePipeline と GitHub の連携は CodeStarSourceConnection を使用
    • Github側の AWS Connector for GitHub は以前からインストール済

原因と解決方法

エラーメッセージが「GitHubリポジトリの指定されたブランチを見つけることができない」と言っている通り、Githubとの連携に失敗しています。

Github側で該当リポジトリをAWS Connector for GitHubに登録していない場合、CodePipelineはリポジトリやそのブランチにアクセスできません。設定は以下から可能です。

https://github.com/organizations/xxxxx/settings/installations

GithubのsettingsからThird-party AccessGitHub Appsに行くと、AWS Connector for GitHubを更新できます(初めての場合はAWS側から飛んだ気がする)。ここに該当リポジトリを含めてあればOKです。

これで解決!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0