From 1e908b0ac590f6d29a3b12949c71c139d2309a5a Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sat, 5 Jul 2025 00:50:10 +0100 Subject: [PATCH] Fix token handling for downloading benchmark report in workflow --- .github/workflows/docs-and-testcov.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs-and-testcov.yml b/.github/workflows/docs-and-testcov.yml index 68bd58c..f01d440 100644 --- a/.github/workflows/docs-and-testcov.yml +++ b/.github/workflows/docs-and-testcov.yml @@ -105,6 +105,8 @@ jobs: > last-commit-date.json - name: Download last available benchmark report + env: + GH_TOKEN: ${{ secrets.CUSTOM_GH_TOKEN }} run: | artifact_url=$(gh api -H "Accept: application/vnd.github+json" \ /repos/${{ github.repository }}/actions/artifacts \ @@ -117,7 +119,7 @@ jobs: exit 0 fi - curl -L -H "Authorization: Bearer ${{ secrets.CUSTOM_GH_TOKEN }}" \ + curl -L -H "Authorization: Bearer ${GH_TOKEN}" \ "$artifact_url" -o benchmark-report.zip # Print all files in the current directory