mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
validate_solutions.py: os.getenv('GITHUB_TOKEN', '') (#10546)
* validate_solutions.py: os.getenv('GITHUB_TOKEN', '') @tianyizheng02 * updating DIRECTORY.md * f this --------- Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -55,7 +55,7 @@ def added_solution_file_path() -> list[pathlib.Path]:
|
||||
solution_file_paths = []
|
||||
headers = {
|
||||
"Accept": "application/vnd.github.v3+json",
|
||||
"Authorization": "token " + os.environ["GITHUB_TOKEN"],
|
||||
"Authorization": f"token {os.getenv('GITHUB_TOKEN', '')}",
|
||||
}
|
||||
files = requests.get(get_files_url(), headers=headers).json()
|
||||
for file in files:
|
||||
|
Reference in New Issue
Block a user