File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 22# SPDX-FileCopyrightText: Copyright 2025 Cooper Dalrymple (@relic-se)
33#
44# SPDX-License-Identifier: MIT
5- import argparse
65import json
76import os
87from pathlib import Path
1110from github import Auth , Github
1211from 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-
2213DATABASE_FILE = "applications.json"
2314MARKDOWN_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" )
You can’t perform that action at this time.
0 commit comments