Git submodules are not being pulled in using CodePipeline

0

When source step is set to “Full Clone” instead of “CodePipeline Default”

I get the following error at the Build step:

authorization failed for primary source and source version commit hash

When it's set to "CodePipeline Default" that error does not appear and the repo does get pulled in but the submodule is not there, the submodule folder is empty.

質問済み 8ヶ月前369ビュー
1回答
1
承認された回答

The Git clone mode allows you to interact with the source code as a working Git repository. To use this mode, you must grant your CodeBuild environment permissions to use the connection.

To add permissions to your CodeBuild service role policy, you create a customer-managed policy that you attach to your CodeBuild service role. The following steps create a policy where the UseConnection permission is specified in the action field, and the connection ARN is specified in the Resource field.

Add CodeBuild GitClone permissions for connections to Bitbucket, GitHub, or GitHub Enterprise Server

回答済み 8ヶ月前

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

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

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

関連するコンテンツ