From 7750b0b9dfea06b621c5fe06cdc9d388eedc5383 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Thu, 17 Oct 2019 12:26:00 -0300 Subject: [PATCH] cleaning github token env vars --- bauh/gems/appimage/worker.py | 2 +- bauh/gems/arch/worker.py | 2 +- bauh/gems/snap/worker.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bauh/gems/appimage/worker.py b/bauh/gems/appimage/worker.py index a8277466..fcc6929e 100644 --- a/bauh/gems/appimage/worker.py +++ b/bauh/gems/appimage/worker.py @@ -27,7 +27,7 @@ class DatabaseUpdater(Thread if bool(int(os.getenv('BAUH_DEBUG', 0))) else Proce def _download_databases(self): self.logger.info('Retrieving AppImage databases') - res = self.http_client.get(self.URL_DB, headers={'Authorization': 'token {}'.format(os.getenv('GITHUB_TOKEN'))}) + res = self.http_client.get(self.URL_DB) if res: Path(LOCAL_PATH).mkdir(parents=True, exist_ok=True) diff --git a/bauh/gems/arch/worker.py b/bauh/gems/arch/worker.py index 6ef80e40..b1b57593 100644 --- a/bauh/gems/arch/worker.py +++ b/bauh/gems/arch/worker.py @@ -149,7 +149,7 @@ class CategoriesDownloader: def get_categories(self) -> Dict[str, List[str]]: self.logger.info('Downloading AUR category definitions from {}'.format(self.URL_CATEGORIES_FILE)) - res = self.http_client.get(self.URL_CATEGORIES_FILE, headers={'Authorization': 'token {}'.format(os.getenv('GITHUB_TOKEN'))}) + res = self.http_client.get(self.URL_CATEGORIES_FILE) if res: categories_map = {} diff --git a/bauh/gems/snap/worker.py b/bauh/gems/snap/worker.py index 2e397888..22539c93 100644 --- a/bauh/gems/snap/worker.py +++ b/bauh/gems/snap/worker.py @@ -85,7 +85,7 @@ class CategoriesDownloader: def get_categories(self) -> Dict[str, List[str]]: self.logger.info('Downloading Snap category definitions from {}'.format(self.URL_CATEGORIES_FILE)) - res = self.http_client.get(self.URL_CATEGORIES_FILE, headers={'Authorization': 'token {}'.format(os.getenv('GITHUB_TOKEN'))}) + res = self.http_client.get(self.URL_CATEGORIES_FILE) if res: categories_map = {}