diff --git a/taskboot/config.py b/taskboot/config.py index 8cb2e0b..48ae367 100644 --- a/taskboot/config.py +++ b/taskboot/config.py @@ -82,11 +82,11 @@ def has_pypi_auth(self): return False return "username" in pypi and "password" in pypi - def has_github_auth(self): - github = self.config.get("github") - if github is None: + def has_git_auth(self): + git = self.config.get("git") + if git is None: return False - return "token" in github + return "token" in git def has_cargo_auth(self): cargo = self.config.get("cargo") diff --git a/taskboot/git.py b/taskboot/git.py index 3b0485a..132cf7f 100644 --- a/taskboot/git.py +++ b/taskboot/git.py @@ -18,7 +18,7 @@ def git_push(target, args): # Load config from file/secret config = Configuration(args) - assert config.has_github_auth(), "Missing GitHub authentication" + assert config.has_git_auth(), "Missing Git authentication" # Set remote repository repo_link = "https://{}:{}@{}.git".format( diff --git a/taskboot/github.py b/taskboot/github.py index a3f444e..1f602f8 100644 --- a/taskboot/github.py +++ b/taskboot/github.py @@ -74,7 +74,7 @@ def github_release(target, args): # Load config from file/secret config = Configuration(args) - assert config.has_github_auth(), "Missing Github authentication" + assert config.has_git_auth(), "Missing Github authentication" # Check if local or dependent task assets are used if args.local_asset is None: