Skip to content

Commit

Permalink
Revert "build: try to use GITHUB_TOKEN"
Browse files Browse the repository at this point in the history
This reverts commit 2c5b6e1.
  • Loading branch information
Alystrasz committed Jan 25, 2024
1 parent 2c5b6e1 commit 7600909
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/verify_versions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import sys
import unittest
from urllib.request import Request, urlopen
from urllib.request import urlopen
import json

def verify_all_mod_versions():
Expand Down Expand Up @@ -53,13 +52,7 @@ def retrieve_tag_info(tag_name, repository_url):
i = 1
while True:
url = '{}?page={}'.format(repository_url, i)
req = Request(url)

token = os.getenv('GITHUB_TOKEN')
print("Using token {}", token)
req.add_header('authorization', 'Bearer {}'.format(token))

response = urlopen(req).read()
response = urlopen(url)
tags_data = json.loads(response.read())

# If page is empty, it means the tag couldn't be found
Expand Down

0 comments on commit 7600909

Please sign in to comment.