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달 전370회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠