Use a token for github

This commit is contained in:
Kovid Goyal 2019-12-12 10:04:36 +05:30
parent 9aa4a426e7
commit edf231e3ff
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -107,7 +107,7 @@ class ReUpload(Command): # {{{
# Data {{{ # Data {{{
def get_github_data(): def get_github_data():
with open(os.environ['PENV'] + '/github', 'rb') as f: with open(os.environ['PENV'] + '/github-token', 'rb') as f:
un, pw = f.read().strip().split(':') un, pw = f.read().strip().split(':')
return {'username': un, 'password': pw} return {'username': un, 'password': pw}