From a02574dc8920b272a6017acfac84dd561aa08530 Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Mon, 8 Apr 2024 11:21:06 +0200 Subject: [PATCH] Try to fix error with authentication --- .github/workflows/python-format-and-tests.yml | 2 ++ snapshot_manager/snapshot_manager/config.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-format-and-tests.yml b/.github/workflows/python-format-and-tests.yml index cac37d76..e010fd61 100644 --- a/.github/workflows/python-format-and-tests.yml +++ b/.github/workflows/python-format-and-tests.yml @@ -21,6 +21,8 @@ jobs: - uses: ./.github/actions/prepare-python - name: Run pytest with coverage shell: bash -e {0} + env: + GH_TEST_TOKEN: ${{ secrets.GH_TEST_TOKEN }} run: | coverage run -m pytest coverage report -m diff --git a/snapshot_manager/snapshot_manager/config.py b/snapshot_manager/snapshot_manager/config.py index 08468fc2..ca5d1e4c 100644 --- a/snapshot_manager/snapshot_manager/config.py +++ b/snapshot_manager/snapshot_manager/config.py @@ -36,7 +36,7 @@ class Config: github_repo: str = "fedora-llvm-team/llvm-snapshots-test" """Default github repo to use""" - github_token_env: str = "GITHUB_TEST_TOKEN" + github_token_env: str = "GH_TEST_TOKEN" """Default name of the environment variable which holds the github token""" update_marker: str = ""