Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions taskboot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion taskboot/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion taskboot/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down