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