From a5cc9a9766c0d16597b604ad5e649b6aab613163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Est=C3=A8ve?= Date: Wed, 2 Oct 2024 17:47:42 +0200 Subject: [PATCH] CI Use bot token for adding CUDA CI label --- .github/workflows/update-lock-files.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/update-lock-files.yml b/.github/workflows/update-lock-files.yml index 4f149f58cac07..fe53f54619a97 100644 --- a/.github/workflows/update-lock-files.yml +++ b/.github/workflows/update-lock-files.yml @@ -6,10 +6,6 @@ on: schedule: - cron: '0 5 * * 1' -# In order to add the "CUDA CI" label we need to have write permissions for PRs -permissions: - pull-requests: write - jobs: update_lock_files: if: github.repository == 'scikit-learn/scikit-learn' @@ -66,7 +62,7 @@ jobs: - name: Trigger additional tests if: steps.cpr.outputs.pull-request-number != '' && matrix.name == 'array-api' env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} run: | gh pr edit ${{steps.cpr.outputs.pull-request-number}} --add-label "CUDA CI"