Testing and Deployment

A CodePipeline workflow receives source from GitHub through AWS CodeConnections, and its build requires Git history and submodules. The source action currently produces a ZIP artifact; what should the developer change to provide repository access during the build?

Show the answer

Correct answerB. Use full clone output and grant CodeBuild permission to use the connection.

AWhy not this: ECR push permissions do not authorize CodeBuild to use the source connection.

BWhy this is right: Full clone supplies repository access, and CodeBuild needs connection permission to perform the clone.

CWhy not this: Artifact bucket access retrieves the ZIP but does not restore missing Git metadata.

DWhy not this: A stored repository URL does not change ZIP contents or authorize a repository clone.

Full clone output lets a downstream CodeBuild action clone the repository with Git metadata; its service role also needs permission to use the connection. ZIP output contains source files but does not provide the Git repository metadata needed for this build.