🐛 Use PAT only for GitHub

This commit is contained in:
Nikhil Badyal
2022-12-25 20:23:19 +05:30
parent 7f945c4d5f
commit 69a9a2e13e
+1 -1
View File
@@ -33,7 +33,7 @@ class Downloader(object):
self._QUEUE_LENGTH += 1 self._QUEUE_LENGTH += 1
start = perf_counter() start = perf_counter()
headers = {} headers = {}
if self.config.personal_access_token: if self.config.personal_access_token and "github" in url:
logger.debug("Using personal access token") logger.debug("Using personal access token")
headers.update( headers.update(
{"Authorization": "token " + self.config.personal_access_token} {"Authorization": "token " + self.config.personal_access_token}