diff --git a/src/codegen/git/configs/token.py b/src/codegen/git/configs/token.py index e1ba23d12..382840d79 100644 --- a/src/codegen/git/configs/token.py +++ b/src/codegen/git/configs/token.py @@ -2,12 +2,11 @@ from codegen.git.configs.config import config from codegen.git.schemas.github import GithubType -from codegen.git.schemas.repo_config import RepoConfig logger = logging.getLogger(__name__) -def get_token_for_repo_config(repo_config: RepoConfig, github_type: GithubType = GithubType.GithubEnterprise) -> str: +def get_token_for_repo_config(github_type: GithubType = GithubType.GithubEnterprise) -> str: if github_type == GithubType.GithubEnterprise: return config.LOWSIDE_TOKEN elif github_type == GithubType.Github: diff --git a/src/codegen/git/utils/clone_url.py b/src/codegen/git/utils/clone_url.py index ed87f59c4..630075041 100644 --- a/src/codegen/git/utils/clone_url.py +++ b/src/codegen/git/utils/clone_url.py @@ -24,7 +24,7 @@ def get_authenticated_clone_url_for_repo_config( github_type: GithubType = GithubType.GithubEnterprise, ) -> str: git_url = get_clone_url_for_repo_config(repo, github_type) - token = get_token_for_repo_config(repo_config=repo, github_type=github_type) + token = get_token_for_repo_config(github_type=github_type) return f"https://x-access-token:{token}@{git_url}"