You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable support for private Git repositories (e.g., GitHub, Bitbucket) as a source for pulling code in the CodeBuild projects created by SBT in the App Plane.
Use Case
The CodeBuild Project generated by SBT during AppPlane creation currently lacks support for private Git repositories as a source for application code download and installation. This limitation forces users to rely solely on S3 as the source for pulling code into the AppPlane.
In scenarios where developers prefer to use private GitHub or BitBucket repositories as their source code location, the current setup presents challenges. While it's possible to create a CodeStar connection to a private GitHub repository, the process of cloning the repository in CodeBuild requires additional configuration.
Specifically, the git-credential-helper in the buildspec.yml file needs to be set to true to enable successful cloning from private Git repositories. However, this setting is not customizable in the current implementation, creating a barrier for users who wish to pull code from private GitHub repositories.
This lack of flexibility in source code management options limits the versatility of the AppPlane creation process and may not align with the preferred workflows of many development teams. Addressing this limitation would significantly enhance the utility and adaptability of the SBT-created CodeBuild Projects.
Proposed Solution
Solution involves updating the content of the file : script-job.ts
Describe the feature
Enable support for private Git repositories (e.g., GitHub, Bitbucket) as a source for pulling code in the CodeBuild projects created by SBT in the App Plane.
Use Case
The CodeBuild Project generated by SBT during AppPlane creation currently lacks support for private Git repositories as a source for application code download and installation. This limitation forces users to rely solely on S3 as the source for pulling code into the AppPlane.
In scenarios where developers prefer to use private GitHub or BitBucket repositories as their source code location, the current setup presents challenges. While it's possible to create a CodeStar connection to a private GitHub repository, the process of cloning the repository in CodeBuild requires additional configuration.
Specifically, the git-credential-helper in the buildspec.yml file needs to be set to true to enable successful cloning from private Git repositories. However, this setting is not customizable in the current implementation, creating a barrier for users who wish to pull code from private GitHub repositories.
This lack of flexibility in source code management options limits the versatility of the AppPlane creation process and may not align with the preferred workflows of many development teams. Addressing this limitation would significantly enhance the utility and adaptability of the SBT-created CodeBuild Projects.
Proposed Solution
Solution involves updating the content of the file : script-job.ts
The CodeBuild project is created here
Adding a field in the env field would allow the use of git-credential-helper
Other Information
No response
Acknowledgements
CDK version used
2.166.0 (build 7bb9203)
Environment details (OS name and version, etc.)
MacOS Sonoma 14.7
The text was updated successfully, but these errors were encountered: