emit github token when starting
This commit is contained in:
@@ -10,6 +10,7 @@ class GitHubTool(BaseTool):
|
||||
def __init__(self):
|
||||
self.base_url = "https://api.github.com"
|
||||
self.token = os.environ.get("GITHUB_TOKEN")
|
||||
|
||||
self.headers = {
|
||||
"Authorization": f"token {self.token}",
|
||||
"Accept": "application/vnd.github.v3+json"
|
||||
|
||||
Reference in New Issue
Block a user