Skip to content

Commit 9c4d192

Browse files
committed
Remove unnecessary authorization
1 parent 8cdc57d commit 9c4d192

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

.github/workflows/build_readme.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,5 @@ jobs:
2929
pip install -r database/requirements.txt
3030
- name: Build README.md
3131
shell: bash
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3432
run: |
3533
python database/build.py

database/build.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# SPDX-FileCopyrightText: Copyright 2025 Cooper Dalrymple (@relic-se)
33
#
44
# SPDX-License-Identifier: MIT
5-
import argparse
65
import json
76
import os
87
from pathlib import Path
@@ -11,14 +10,6 @@
1110
from github import Auth, Github
1211
from mdutils.mdutils import MdUtils
1312

14-
if "GITHUB_TOKEN" in os.environ:
15-
ACCESS_TOKEN = os.environ["GITHUB_TOKEN"]
16-
else:
17-
parser = argparse.ArgumentParser()
18-
parser.add_argument("--token", type=str, required=True)
19-
ACCESS_TOKEN = parser.parse_args().token
20-
21-
2213
DATABASE_FILE = "applications.json"
2314
MARKDOWN_FILE = "README.md"
2415

@@ -36,8 +27,7 @@ def main():
3627

3728
# connect with GitHub API
3829
print("Connecting with GitHub Web API")
39-
auth = Auth.Token(ACCESS_TOKEN)
40-
gh = Github(auth=auth)
30+
gh = Github()
4131

4232
# setup README
4333
print("Beginning markdown file generation")

0 commit comments

Comments
 (0)