Revert "validate_solutions.py: os.getenv('GITHUB_TOKEN', '')" (#10552)

* Revert "validate_solutions.py: os.getenv('GITHUB_TOKEN', '') (#10546)"

This reverts commit 68e6d5ad7e9af8929a22a889b1182706abbfcb50.

* updating DIRECTORY.md

---------

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
Christian Clauss
2023-10-15 21:40:13 +02:00
committed by GitHub
parent 89d12dfe99
commit 4004b862d5
2 changed files with 4 additions and 2 deletions

View File

@ -55,7 +55,7 @@ def added_solution_file_path() -> list[pathlib.Path]:
solution_file_paths = []
headers = {
"Accept": "application/vnd.github.v3+json",
"Authorization": f"token {os.getenv('GITHUB_TOKEN', '')}",
"Authorization": "token " + os.environ["GITHUB_TOKEN"],
}
files = requests.get(get_files_url(), headers=headers).json()
for file in files: