diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 1006b8e828..609a3a0ca0 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -25,6 +25,8 @@ jobs: - name: Run Update run: bash ./update.sh + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Save run: | diff --git a/anda/desktops/elementary/contractor/chkupdate.py b/anda/desktops/elementary/contractor/chkupdate.py index 464cc74a07..e420b7bfbc 100644 --- a/anda/desktops/elementary/contractor/chkupdate.py +++ b/anda/desktops/elementary/contractor/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/editorconfig/chkupdate.py b/anda/desktops/elementary/editorconfig/chkupdate.py index dcd4ad28f7..bd97c85460 100644 --- a/anda/desktops/elementary/editorconfig/chkupdate.py +++ b/anda/desktops/elementary/editorconfig/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-calculator/chkupdate.py b/anda/desktops/elementary/elementary-calculator/chkupdate.py index c60f46f02a..7de61b894a 100644 --- a/anda/desktops/elementary/elementary-calculator/chkupdate.py +++ b/anda/desktops/elementary/elementary-calculator/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-calendar/chkupdate.py b/anda/desktops/elementary/elementary-calendar/chkupdate.py index 899f17e8da..f0f7f8af30 100644 --- a/anda/desktops/elementary/elementary-calendar/chkupdate.py +++ b/anda/desktops/elementary/elementary-calendar/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-camera/chkupdate.py b/anda/desktops/elementary/elementary-camera/chkupdate.py index 8b8985cf89..559fa791a0 100644 --- a/anda/desktops/elementary/elementary-camera/chkupdate.py +++ b/anda/desktops/elementary/elementary-camera/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-capnet-assist/chkupdate.py b/anda/desktops/elementary/elementary-capnet-assist/chkupdate.py index d682596e3b..bed03ca35d 100644 --- a/anda/desktops/elementary/elementary-capnet-assist/chkupdate.py +++ b/anda/desktops/elementary/elementary-capnet-assist/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-code/chkupdate.py b/anda/desktops/elementary/elementary-code/chkupdate.py index dac1cc8e08..3094cf5c0b 100644 --- a/anda/desktops/elementary/elementary-code/chkupdate.py +++ b/anda/desktops/elementary/elementary-code/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-files/chkupdate.py b/anda/desktops/elementary/elementary-files/chkupdate.py index d1e11fc044..73e841621b 100644 --- a/anda/desktops/elementary/elementary-files/chkupdate.py +++ b/anda/desktops/elementary/elementary-files/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-greeter/chkupdate.py b/anda/desktops/elementary/elementary-greeter/chkupdate.py index 68b59f3785..4ffcb12144 100644 --- a/anda/desktops/elementary/elementary-greeter/chkupdate.py +++ b/anda/desktops/elementary/elementary-greeter/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-icon-theme/chkupdate.py b/anda/desktops/elementary/elementary-icon-theme/chkupdate.py index b713f44233..0c8cbda227 100644 --- a/anda/desktops/elementary/elementary-icon-theme/chkupdate.py +++ b/anda/desktops/elementary/elementary-icon-theme/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-music/chkupdate.py b/anda/desktops/elementary/elementary-music/chkupdate.py index 8ceea7cd54..df20d60383 100644 --- a/anda/desktops/elementary/elementary-music/chkupdate.py +++ b/anda/desktops/elementary/elementary-music/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-notifications/chkupdate.py b/anda/desktops/elementary/elementary-notifications/chkupdate.py index b0fcee367c..41e590adf3 100644 --- a/anda/desktops/elementary/elementary-notifications/chkupdate.py +++ b/anda/desktops/elementary/elementary-notifications/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-onboarding/chkupdate.py b/anda/desktops/elementary/elementary-onboarding/chkupdate.py index 879c4e4741..d9bab43d07 100644 --- a/anda/desktops/elementary/elementary-onboarding/chkupdate.py +++ b/anda/desktops/elementary/elementary-onboarding/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-photos/chkupdate.py b/anda/desktops/elementary/elementary-photos/chkupdate.py index c05849a807..dbaab99a46 100644 --- a/anda/desktops/elementary/elementary-photos/chkupdate.py +++ b/anda/desktops/elementary/elementary-photos/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-print/chkupdate.py b/anda/desktops/elementary/elementary-print/chkupdate.py index dd76792462..929e1da796 100644 --- a/anda/desktops/elementary/elementary-print/chkupdate.py +++ b/anda/desktops/elementary/elementary-print/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-screenshot-tool/chkupdate.py b/anda/desktops/elementary/elementary-screenshot-tool/chkupdate.py index 66e032de8e..15a0080987 100644 --- a/anda/desktops/elementary/elementary-screenshot-tool/chkupdate.py +++ b/anda/desktops/elementary/elementary-screenshot-tool/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-settings-daemon/chkupdate.py b/anda/desktops/elementary/elementary-settings-daemon/chkupdate.py index 024eb1519c..9d6bf168fd 100644 --- a/anda/desktops/elementary/elementary-settings-daemon/chkupdate.py +++ b/anda/desktops/elementary/elementary-settings-daemon/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-shortcut-overlay/chkupdate.py b/anda/desktops/elementary/elementary-shortcut-overlay/chkupdate.py index 7c93185d81..90c580e38d 100644 --- a/anda/desktops/elementary/elementary-shortcut-overlay/chkupdate.py +++ b/anda/desktops/elementary/elementary-shortcut-overlay/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-sideload/chkupdate.py b/anda/desktops/elementary/elementary-sideload/chkupdate.py index f272208fa1..0c5faa1d4d 100644 --- a/anda/desktops/elementary/elementary-sideload/chkupdate.py +++ b/anda/desktops/elementary/elementary-sideload/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-sound-theme/chkupdate.py b/anda/desktops/elementary/elementary-sound-theme/chkupdate.py index 1097665687..dad03b026c 100644 --- a/anda/desktops/elementary/elementary-sound-theme/chkupdate.py +++ b/anda/desktops/elementary/elementary-sound-theme/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-tasks/chkupdate.py b/anda/desktops/elementary/elementary-tasks/chkupdate.py index 7062745cfe..d764caf737 100644 --- a/anda/desktops/elementary/elementary-tasks/chkupdate.py +++ b/anda/desktops/elementary/elementary-tasks/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-terminal/chkupdate.py b/anda/desktops/elementary/elementary-terminal/chkupdate.py index d9cb68e9f9..cfc1429c86 100644 --- a/anda/desktops/elementary/elementary-terminal/chkupdate.py +++ b/anda/desktops/elementary/elementary-terminal/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-theme/chkupdate.py b/anda/desktops/elementary/elementary-theme/chkupdate.py index c9ead73f47..d81f060e6a 100644 --- a/anda/desktops/elementary/elementary-theme/chkupdate.py +++ b/anda/desktops/elementary/elementary-theme/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-videos/chkupdate.py b/anda/desktops/elementary/elementary-videos/chkupdate.py index fea2278962..ed85bdbc2f 100644 --- a/anda/desktops/elementary/elementary-videos/chkupdate.py +++ b/anda/desktops/elementary/elementary-videos/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/elementary-wallpapers/chkupdate.py b/anda/desktops/elementary/elementary-wallpapers/chkupdate.py index 81208a436c..2adeefd693 100644 --- a/anda/desktops/elementary/elementary-wallpapers/chkupdate.py +++ b/anda/desktops/elementary/elementary-wallpapers/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/gala/chkupdate.py b/anda/desktops/elementary/gala/chkupdate.py index 65b799e726..b43215fc75 100644 --- a/anda/desktops/elementary/gala/chkupdate.py +++ b/anda/desktops/elementary/gala/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/granite-7/chkupdate.py b/anda/desktops/elementary/granite-7/chkupdate.py index f91a3df2f9..55014548fb 100644 --- a/anda/desktops/elementary/granite-7/chkupdate.py +++ b/anda/desktops/elementary/granite-7/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/pantheon-agent-geoclue2/chkupdate.py b/anda/desktops/elementary/pantheon-agent-geoclue2/chkupdate.py index 04527639e4..9db3dd9c3d 100644 --- a/anda/desktops/elementary/pantheon-agent-geoclue2/chkupdate.py +++ b/anda/desktops/elementary/pantheon-agent-geoclue2/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/pantheon-agent-polkit/chkupdate.py b/anda/desktops/elementary/pantheon-agent-polkit/chkupdate.py index 54d5c1bc56..9e1410b56a 100644 --- a/anda/desktops/elementary/pantheon-agent-polkit/chkupdate.py +++ b/anda/desktops/elementary/pantheon-agent-polkit/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/switchboard-plug-a11y/chkupdate.py b/anda/desktops/elementary/switchboard-plug-a11y/chkupdate.py index a4a1a7bf38..cee5d484ab 100644 --- a/anda/desktops/elementary/switchboard-plug-a11y/chkupdate.py +++ b/anda/desktops/elementary/switchboard-plug-a11y/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/switchboard-plug-about/chkupdate.py b/anda/desktops/elementary/switchboard-plug-about/chkupdate.py index f36706c9f1..162dba982d 100644 --- a/anda/desktops/elementary/switchboard-plug-about/chkupdate.py +++ b/anda/desktops/elementary/switchboard-plug-about/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/switchboard-plug-applications/chkupdate.py b/anda/desktops/elementary/switchboard-plug-applications/chkupdate.py index 48378a42e2..69c4064178 100644 --- a/anda/desktops/elementary/switchboard-plug-applications/chkupdate.py +++ b/anda/desktops/elementary/switchboard-plug-applications/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/switchboard-plug-bluetooth/chkupdate.py b/anda/desktops/elementary/switchboard-plug-bluetooth/chkupdate.py index 33132f2afe..7d12043907 100644 --- a/anda/desktops/elementary/switchboard-plug-bluetooth/chkupdate.py +++ b/anda/desktops/elementary/switchboard-plug-bluetooth/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/switchboard-plug-display/chkupdate.py b/anda/desktops/elementary/switchboard-plug-display/chkupdate.py index 950689226f..08fe02cc93 100644 --- a/anda/desktops/elementary/switchboard-plug-display/chkupdate.py +++ b/anda/desktops/elementary/switchboard-plug-display/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/switchboard-plug-keyboard/chkupdate.py b/anda/desktops/elementary/switchboard-plug-keyboard/chkupdate.py index d2343faf7b..6b5c2861e0 100644 --- a/anda/desktops/elementary/switchboard-plug-keyboard/chkupdate.py +++ b/anda/desktops/elementary/switchboard-plug-keyboard/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/switchboard-plug-mouse-touchpad/chkupdate.py b/anda/desktops/elementary/switchboard-plug-mouse-touchpad/chkupdate.py index dc50a3cf32..5ece641e3f 100644 --- a/anda/desktops/elementary/switchboard-plug-mouse-touchpad/chkupdate.py +++ b/anda/desktops/elementary/switchboard-plug-mouse-touchpad/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/switchboard-plug-networking/chkupdate.py b/anda/desktops/elementary/switchboard-plug-networking/chkupdate.py index 2c38f08d4a..ed8fdb95a2 100644 --- a/anda/desktops/elementary/switchboard-plug-networking/chkupdate.py +++ b/anda/desktops/elementary/switchboard-plug-networking/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/switchboard-plug-notifications/chkupdate.py b/anda/desktops/elementary/switchboard-plug-notifications/chkupdate.py index dffff8dc07..18c70c1502 100644 --- a/anda/desktops/elementary/switchboard-plug-notifications/chkupdate.py +++ b/anda/desktops/elementary/switchboard-plug-notifications/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/switchboard-plug-onlineaccounts/chkupdate.py b/anda/desktops/elementary/switchboard-plug-onlineaccounts/chkupdate.py index b88f00c37f..dbf4263e07 100644 --- a/anda/desktops/elementary/switchboard-plug-onlineaccounts/chkupdate.py +++ b/anda/desktops/elementary/switchboard-plug-onlineaccounts/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/switchboard-plug-pantheon-shell/chkupdate.py b/anda/desktops/elementary/switchboard-plug-pantheon-shell/chkupdate.py index 8bd713dcba..74815b4451 100644 --- a/anda/desktops/elementary/switchboard-plug-pantheon-shell/chkupdate.py +++ b/anda/desktops/elementary/switchboard-plug-pantheon-shell/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/switchboard-plug-printers/chkupdate.py b/anda/desktops/elementary/switchboard-plug-printers/chkupdate.py index c5db29fefb..5db7a343f1 100644 --- a/anda/desktops/elementary/switchboard-plug-printers/chkupdate.py +++ b/anda/desktops/elementary/switchboard-plug-printers/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/switchboard-plug-sharing/chkupdate.py b/anda/desktops/elementary/switchboard-plug-sharing/chkupdate.py index 4f3b94c55f..4dbf59921c 100644 --- a/anda/desktops/elementary/switchboard-plug-sharing/chkupdate.py +++ b/anda/desktops/elementary/switchboard-plug-sharing/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/switchboard-plug-sound/chkupdate.py b/anda/desktops/elementary/switchboard-plug-sound/chkupdate.py index ab3af9d72b..e39c74ba33 100644 --- a/anda/desktops/elementary/switchboard-plug-sound/chkupdate.py +++ b/anda/desktops/elementary/switchboard-plug-sound/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/switchboard-plug-tweaks/chkupdate.py b/anda/desktops/elementary/switchboard-plug-tweaks/chkupdate.py index b0329c2a99..3c46bd9988 100644 --- a/anda/desktops/elementary/switchboard-plug-tweaks/chkupdate.py +++ b/anda/desktops/elementary/switchboard-plug-tweaks/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/switchboard/chkupdate.py b/anda/desktops/elementary/switchboard/chkupdate.py index 1585ec23e7..0dfbb87376 100644 --- a/anda/desktops/elementary/switchboard/chkupdate.py +++ b/anda/desktops/elementary/switchboard/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/wingpanel-applications-menu/chkupdate.py b/anda/desktops/elementary/wingpanel-applications-menu/chkupdate.py index dd0a4b41e8..24b1c8a8a4 100644 --- a/anda/desktops/elementary/wingpanel-applications-menu/chkupdate.py +++ b/anda/desktops/elementary/wingpanel-applications-menu/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/wingpanel-indicator-bluetooth/chkupdate.py b/anda/desktops/elementary/wingpanel-indicator-bluetooth/chkupdate.py index fdc7aeac32..e57651bc21 100644 --- a/anda/desktops/elementary/wingpanel-indicator-bluetooth/chkupdate.py +++ b/anda/desktops/elementary/wingpanel-indicator-bluetooth/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/wingpanel-indicator-datetime/chkupdate.py b/anda/desktops/elementary/wingpanel-indicator-datetime/chkupdate.py index d8ef50bd4d..3db34f14a8 100644 --- a/anda/desktops/elementary/wingpanel-indicator-datetime/chkupdate.py +++ b/anda/desktops/elementary/wingpanel-indicator-datetime/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/wingpanel-indicator-keyboard/chkupdate.py b/anda/desktops/elementary/wingpanel-indicator-keyboard/chkupdate.py index 416775f7a4..5f6c0e9cb3 100644 --- a/anda/desktops/elementary/wingpanel-indicator-keyboard/chkupdate.py +++ b/anda/desktops/elementary/wingpanel-indicator-keyboard/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/wingpanel-indicator-network/chkupdate.py b/anda/desktops/elementary/wingpanel-indicator-network/chkupdate.py index 1124e4442d..bf66febba5 100644 --- a/anda/desktops/elementary/wingpanel-indicator-network/chkupdate.py +++ b/anda/desktops/elementary/wingpanel-indicator-network/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/wingpanel-indicator-nightlight/chkupdate.py b/anda/desktops/elementary/wingpanel-indicator-nightlight/chkupdate.py index cd3ac8c158..d2dbd1fe1e 100644 --- a/anda/desktops/elementary/wingpanel-indicator-nightlight/chkupdate.py +++ b/anda/desktops/elementary/wingpanel-indicator-nightlight/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/wingpanel-indicator-notifications/chkupdate.py b/anda/desktops/elementary/wingpanel-indicator-notifications/chkupdate.py index 15a617b87f..b81c2c3905 100644 --- a/anda/desktops/elementary/wingpanel-indicator-notifications/chkupdate.py +++ b/anda/desktops/elementary/wingpanel-indicator-notifications/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/wingpanel-indicator-power/chkupdate.py b/anda/desktops/elementary/wingpanel-indicator-power/chkupdate.py index 5078808779..42a74717de 100644 --- a/anda/desktops/elementary/wingpanel-indicator-power/chkupdate.py +++ b/anda/desktops/elementary/wingpanel-indicator-power/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/wingpanel-indicator-session/chkupdate.py b/anda/desktops/elementary/wingpanel-indicator-session/chkupdate.py index d183f09fd3..52c713deb7 100644 --- a/anda/desktops/elementary/wingpanel-indicator-session/chkupdate.py +++ b/anda/desktops/elementary/wingpanel-indicator-session/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/wingpanel-indicator-sound/chkupdate.py b/anda/desktops/elementary/wingpanel-indicator-sound/chkupdate.py index 0a250e2712..43784f5b63 100644 --- a/anda/desktops/elementary/wingpanel-indicator-sound/chkupdate.py +++ b/anda/desktops/elementary/wingpanel-indicator-sound/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/desktops/elementary/wingpanel/chkupdate.py b/anda/desktops/elementary/wingpanel/chkupdate.py index 5cbe79e075..e0a8ef91a2 100644 --- a/anda/desktops/elementary/wingpanel/chkupdate.py +++ b/anda/desktops/elementary/wingpanel/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/fonts/impallari-raleway-fonts/chkupdate.py b/anda/fonts/impallari-raleway-fonts/chkupdate.py index d1f19f980e..3c02e70f37 100644 --- a/anda/fonts/impallari-raleway-fonts/chkupdate.py +++ b/anda/fonts/impallari-raleway-fonts/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/fonts/naikai/chkupdate.py b/anda/fonts/naikai/chkupdate.py index 6e58f7034b..1fef62ee57 100644 --- a/anda/fonts/naikai/chkupdate.py +++ b/anda/fonts/naikai/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/games/prismlauncher-nightly/chkupdate.py b/anda/games/prismlauncher-nightly/chkupdate.py index de3467dc77..bde29103ca 100644 --- a/anda/games/prismlauncher-nightly/chkupdate.py +++ b/anda/games/prismlauncher-nightly/chkupdate.py @@ -11,7 +11,7 @@ LINK = f'https://api.github.com/repos/{REPO}/commits/HEAD' if datetime.utcnow().hour not in [0, 12]: exit(f'{NAME}: skipping update check') -sha = requests.get(LINK).json()['sha'] +sha = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['sha'] f = open(SPEC, 'r') matches = re.findall(REGEX_SHA, txt:=f.read()) diff --git a/anda/games/prismlauncher-qt5-nightly/chkupdate.py b/anda/games/prismlauncher-qt5-nightly/chkupdate.py index 5d08d27f81..66a2ecedd6 100644 --- a/anda/games/prismlauncher-qt5-nightly/chkupdate.py +++ b/anda/games/prismlauncher-qt5-nightly/chkupdate.py @@ -11,7 +11,7 @@ LINK = f'https://api.github.com/repos/{REPO}/commits/HEAD' if datetime.utcnow().hour not in [0, 12]: exit(f'{NAME}: skipping update check') -sha = requests.get(LINK).json()['sha'] +sha = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['sha'] f = open(SPEC, 'r') matches = re.findall(REGEX_SHA, txt:=f.read()) diff --git a/anda/games/prismlauncher-qt5/chkupdate.py b/anda/games/prismlauncher-qt5/chkupdate.py index 4999d75848..5817835695 100644 --- a/anda/games/prismlauncher-qt5/chkupdate.py +++ b/anda/games/prismlauncher-qt5/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/games/prismlauncher/chkupdate.py b/anda/games/prismlauncher/chkupdate.py index a25168a479..a041b97d66 100644 --- a/anda/games/prismlauncher/chkupdate.py +++ b/anda/games/prismlauncher/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/lib/libbismuth/chkupdate.py b/anda/lib/libbismuth/chkupdate.py index 5e7937dae9..0475c96d2e 100644 --- a/anda/lib/libbismuth/chkupdate.py +++ b/anda/lib/libbismuth/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/lib/libhelium/chkupdate.py b/anda/lib/libhelium/chkupdate.py index aa3834bb5f..f371c58cf4 100644 --- a/anda/lib/libhelium/chkupdate.py +++ b/anda/lib/libhelium/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/rnote/chkupdate.py b/anda/rnote/chkupdate.py index 7d398ba1fa..c6523fdeef 100644 --- a/anda/rnote/chkupdate.py +++ b/anda/rnote/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] ver = ver[1:] # starts with v with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) diff --git a/anda/rust/starship/chkupdate.py b/anda/rust/starship/chkupdate.py index e781703eee..cd6e8d722b 100644 --- a/anda/rust/starship/chkupdate.py +++ b/anda/rust/starship/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] ver = ver[1:] # starts with v with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) diff --git a/anda/sass/chkupdate.py b/anda/sass/chkupdate.py index 5d0c362aca..1e3730bf9d 100644 --- a/anda/sass/chkupdate.py +++ b/anda/sass/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/tau-helium/chkupdate.py b/anda/tau-helium/chkupdate.py index 18b7d9939e..5cb3b2f2e8 100644 --- a/anda/tau-helium/chkupdate.py +++ b/anda/tau-helium/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/tau-hydrogen/chkupdate.py b/anda/tau-hydrogen/chkupdate.py index 89ee38857d..91f4f3b268 100644 --- a/anda/tau-hydrogen/chkupdate.py +++ b/anda/tau-hydrogen/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!") diff --git a/anda/tectonic/chkupdate.py b/anda/tectonic/chkupdate.py index f66fb084c5..91597b9b4b 100644 --- a/anda/tectonic/chkupdate.py +++ b/anda/tectonic/chkupdate.py @@ -9,7 +9,7 @@ SPEC = f"{NAME}.spec" LINK = f'https://api.github.com/repos/{REPO}/releases/latest' -ver = requests.get(LINK).json()['tag_name'][9:] +ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name'][9:] with open(SPEC, 'r') as f: matches = re.findall(REGEX_VER, f.read()) if not len(matches): exit(f"{NAME}: Failed to match regex!")