Skip to content

Commit

Permalink
authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
maxschulz-COL committed Oct 17, 2024
1 parent 5706e90 commit ddd4857
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tools/pycafe/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
from github import Github

# Authenticate with GitHub
access_token = os.getenv("GITHUB_TOKEN")
g = Github(access_token)

from github import Auth

# using an access token

access_token = str(os.getenv("GITHUB_TOKEN"))
auth = Auth.Token(access_token)
g = Github(auth=auth)

# for repo in g.get_user().get_repos():
# print(repo.name)
Expand Down

0 comments on commit ddd4857

Please sign in to comment.