diff --git a/src/codegen/runner/utils/branch_sync.py b/src/codegen/runner/utils/branch_sync.py index 798621b87..d6d5930fb 100644 --- a/src/codegen/runner/utils/branch_sync.py +++ b/src/codegen/runner/utils/branch_sync.py @@ -2,7 +2,7 @@ from codegen.git.configs.constants import HIGHSIDE_REMOTE_NAME, LOWSIDE_REMOTE_NAME from codegen.git.repo_operator.remote_repo_operator import RemoteRepoOperator -from codegen.git.schemas.github import GithubScope, GithubType +from codegen.git.schemas.github import GithubType from codegen.git.utils.clone_url import get_authenticated_clone_url_for_repo_config @@ -11,7 +11,7 @@ def get_remote_for_github_type(op: RemoteRepoOperator, github_type: GithubType = return op.git_cli.remote(name="origin") remote_name = HIGHSIDE_REMOTE_NAME if github_type == GithubType.Github else LOWSIDE_REMOTE_NAME - remote_url = get_authenticated_clone_url_for_repo_config(repo=op.repo_config, github_type=github_type, github_scope=GithubScope.WRITE) + remote_url = get_authenticated_clone_url_for_repo_config(repo=op.repo_config, github_type=github_type) if remote_name in op.git_cli.remotes: remote = op.git_cli.remote(remote_name)