From 19530736a636df27fdb128d560c78df06b9b9c63 Mon Sep 17 00:00:00 2001 From: envolution Date: Thu, 28 Nov 2024 12:25:51 -0500 Subject: [PATCH] remove environ token, add MIT license comments --- nvchecker_source/github-graphql.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nvchecker_source/github-graphql.py b/nvchecker_source/github-graphql.py index 8242a41..518278e 100644 --- a/nvchecker_source/github-graphql.py +++ b/nvchecker_source/github-graphql.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2020, 2024 lilydjwg , et al. + import os import time import aiohttp @@ -8,8 +11,8 @@ async def get_github_token(conf: Entry, host: str, keymanager: KeyManager) -> Op token = conf.get('token') if token is None: token = keymanager.get_key(host.lower(), 'github') - if token is None: - token = os.environ.get('GITHUB_TOKEN') + #if token is None: + # token = os.environ.get('GITHUB_TOKEN') return token def create_rich_result(conf, commits, sha, **kwargs) -> RichResult: