Skip to content
Merged
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
4 changes: 3 additions & 1 deletion github_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def _request(*args, **kwargs):
if not token:
token = os.environ.get("GITHUB_TOKEN", None)
if token and with_auth:
kwargs["auth"] = (token, 'x-oauth-basic')
# Using Bearer token authentication instead of Basic Authentication
kwargs['headers'] = kwargs.get('headers', {})
kwargs['headers']['Authorization'] = 'Bearer ' + token
for _ in range(3):
response = request(*args, **kwargs)
is_travis = os.getenv("TRAVIS", None) is not None
Expand Down