unused local error:
@@ -378,6 +378,9 @@ def tests_with_status(bep_file, status):
return set(label for label, _ in test_logs_for_status(bep_file, status=status))
+GITHUB_TOKEN = None
+
+
def fetch_github_token():
if GITHUB_TOKEN:
return GITHUB_TOKEN
@@ -392,9 +395,6 @@ def fetch_github_token():
os.remove("github-token.enc")
-GITHUB_TOKEN = None
-
-
def owner_repository_from_url(git_repository):
m = re.search(r"/([^/]+)/([^/]+)\.git$", git_repository)
owner = m.group(1)
