mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-03-10 02:37:59 +01:00
ci: use auth.token instead of login_or_token
This commit is contained in:
@@ -3,7 +3,7 @@ import os
|
||||
from typing import Literal
|
||||
|
||||
import requests
|
||||
from github import Github
|
||||
from github import Auth, Github
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ class ProjectItemHandler:
|
||||
|
||||
def __init__(self, gh_config: GHConfig):
|
||||
self.gh_config = gh_config
|
||||
self.gh = Github(gh_config.token)
|
||||
self.gh = Github(auth=Auth.Token(gh_config.token))
|
||||
self.repo = self.gh.get_repo(f"{gh_config.organization}/{gh_config.repository}")
|
||||
self.project_node_id = self.get_project_node_id()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user