From da60f69909fc3b8ab7ea072b4196022917db3628 Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Wed, 6 Sep 2023 12:55:11 +0100 Subject: [PATCH] approved-for-ci-run.yml: use our bot (#5216) ## Problem Pull Requests created by GitHub Actions bot doesn't have access to secrets, so we need to use our bot for it to auto-trigger a tests run See previous PRs #4663, #5210, #5212 ## Summary of changes - Use our bot to create PRs --- .github/workflows/approved-for-ci-run.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/approved-for-ci-run.yml b/.github/workflows/approved-for-ci-run.yml index 77cedae375..256ab8b438 100644 --- a/.github/workflows/approved-for-ci-run.yml +++ b/.github/workflows/approved-for-ci-run.yml @@ -17,7 +17,7 @@ on: - labeled env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.CI_ACCESS_TOKEN }} PR_NUMBER: ${{ github.event.pull_request.number }} concurrency: @@ -33,7 +33,6 @@ jobs: contains(github.event.pull_request.labels.*.name, 'approved-for-ci-run') runs-on: ubuntu-latest - permissions: write-all steps: - run: gh pr --repo "${GITHUB_REPOSITORY}" edit "${PR_NUMBER}" --remove-label "approved-for-ci-run" @@ -46,7 +45,6 @@ jobs: contains(github.event.pull_request.labels.*.name, 'approved-for-ci-run') runs-on: ubuntu-latest - permissions: write-all steps: - run: gh pr --repo "${GITHUB_REPOSITORY}" edit "${PR_NUMBER}" --remove-label "approved-for-ci-run"