mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
remove environ token, add MIT license comments
This commit is contained in:
parent
965c26b34e
commit
19530736a6
1 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
# MIT licensed
|
||||||
|
# Copyright (c) 2013-2020, 2024 lilydjwg <lilydjwg@gmail.com>, et al.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
import aiohttp
|
import aiohttp
|
||||||
|
@ -8,8 +11,8 @@ async def get_github_token(conf: Entry, host: str, keymanager: KeyManager) -> Op
|
||||||
token = conf.get('token')
|
token = conf.get('token')
|
||||||
if token is None:
|
if token is None:
|
||||||
token = keymanager.get_key(host.lower(), 'github')
|
token = keymanager.get_key(host.lower(), 'github')
|
||||||
if token is None:
|
#if token is None:
|
||||||
token = os.environ.get('GITHUB_TOKEN')
|
# token = os.environ.get('GITHUB_TOKEN')
|
||||||
return token
|
return token
|
||||||
|
|
||||||
def create_rich_result(conf, commits, sha, **kwargs) -> RichResult:
|
def create_rich_result(conf, commits, sha, **kwargs) -> RichResult:
|
||||||
|
|
Loading…
Add table
Reference in a new issue