From d25244f4abb4109be829302e1dc2ba5e60cc1160 Mon Sep 17 00:00:00 2001 From: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com> Date: Thu, 25 Apr 2024 11:00:41 +0200 Subject: [PATCH] ci: use GITHUB_TOKEN (#2165) --- .github/workflows/wpt.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wpt.yml b/.github/workflows/wpt.yml index 6ce10acbaf..0b4fed466e 100644 --- a/.github/workflows/wpt.yml +++ b/.github/workflows/wpt.yml @@ -85,6 +85,9 @@ jobs: name: WPT auto-commit expectations needs: wpt if: ${{ !cancelled() && (github.event.inputs.auto-commit == 'true' || contains(github.event.pull_request.labels.*.name, 'update-expectations')) }} + # Needed to remove the label to prevent a loop + permissions: + pull-requests: write runs-on: ubuntu-latest steps: - name: Checkout @@ -108,7 +111,7 @@ jobs: path: wpt-metadata/mapper/headless - run: gh pr edit "$NUMBER" --remove-label "puppeteer" env: - GH_TOKEN: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_REPO: ${{ github.repository }} NUMBER: ${{ github.event.pull_request.number }} - name: Auto-commit WPT expectations