We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a62ce4c + 9105faa commit e65a62cCopy full SHA for e65a62c
misc/bazel/internal/git_lfs_probe.py
@@ -68,7 +68,7 @@ def get_endpoint():
68
# see https://github.com/actions/checkout/blob/44c2b7a8a4ea60a981eaca3cf939b5f4305c123b/src/git-auth-helper.ts#L56-L63
69
auth = git("config", f"http.{url.scheme}://{url.netloc}/.extraheader")
70
endpoint.update_headers(get_env(auth, sep=": "))
71
- if "GITHUB_TOKEN" in os.environ:
+ if os.environ.get("GITHUB_TOKEN"):
72
endpoint.headers["Authorization"] = f"token {os.environ['GITHUB_TOKEN']}"
73
if "Authorization" not in endpoint.headers:
74
# last chance: use git credentials (possibly backed by a credential helper like the one installed by gh)
0 commit comments