codepipelineActions.CodeCommitSourceAction: Default branch is 'Master' #27710
Labels
@aws-cdk/aws-codepipeline-actions
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
When creating the resource
codepipelineActions.CodeCommitSourceAction
, ifbranch
is not specified, it will default to 'master'.However, when creating a CodeCommit repository through the console, the default branch is 'main', meaning that if everything is kept as default, the pipeline will fail.
Expected Behavior
The default branch on
codepipelineActions.CodeCommitSourceAction
should be the same as the default branch in CodeCommitCurrent Behavior
codepipelineActions.CodeCommitSourceAction
defaults to 'master'. If defaults are used, the following error occurs in the pipeline:The action failed because no branch named master was found in the selected AWS CodeCommit repository
Reproduction Steps
main
Possible Solution
Change the default branch in CDK from "master" to "main"
Additional Information/Context
No response
CDK CLI Version
2.100.0 (build e1b5c77)
Framework Version
No response
Node.js Version
v18.12.1
OS
macOS 13.5.2 (22G91)
Language
Python
Language Version
Python 3.9.6 (default, Aug 11 2023, 19:44:49)
Other information
No response
The text was updated successfully, but these errors were encountered: