diff --git a/docs/providers-guide.md b/docs/providers-guide.md index 2017790d7..785ede395 100644 --- a/docs/providers-guide.md +++ b/docs/providers-guide.md @@ -101,7 +101,7 @@ Provider type: `github`. > The GitHub repository name. > For example, for the ADF repository it would be: > `aws-deployment-framework`. -- *branch* - *(String)* - default: `master`. +- *branch* - *(String)* - default: `main`. > The Branch on the GitHub repository to use to trigger this specific > pipeline. - *owner* - *(String)* **(required)** diff --git a/src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/cdk/cdk_constructs/adf_github.py b/src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/cdk/cdk_constructs/adf_github.py index ddeb06324..8429b7060 100644 --- a/src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/cdk/cdk_constructs/adf_github.py +++ b/src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/cdk/cdk_constructs/adf_github.py @@ -55,7 +55,7 @@ def create_webhook_when_required(scope, pipeline, map_params): filters=[ _codepipeline.CfnWebhook.WebhookFilterRuleProperty( json_path="$.ref", - match_equals="refs/heads/{0}".format(map_params.get('default_providers', {}).get('source', {}).get('properties', {}).get('branch', {}) or 'master') + match_equals="refs/heads/{0}".format(map_params.get('default_providers', {}).get('source', {}).get('properties', {}).get('branch', {}) or 'main') ) ], target_action="source",