Skip to content

Commit

Permalink
Remove the use of GitHub OAuth Token
Browse files Browse the repository at this point in the history
It is not needed anymore after the conversion to GitHub App.
  • Loading branch information
Mariatta committed Oct 10, 2023
1 parent 2127e00 commit f229983
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bedevere/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ async def main(request):
print('GH delivery ID', event.delivery_id, file=sys.stderr)
if event.event == "ping":
return web.Response(status=200)
oauth_token = os.environ.get("GH_AUTH")

async with aiohttp.ClientSession() as session:
gh = gh_aiohttp.GitHubAPI(session, "python/bedevere",
oauth_token=oauth_token,
cache=cache)

if event.data.get("installation"):
Expand Down

0 comments on commit f229983

Please sign in to comment.