Skip to content

Commit

Permalink
ci: use GITHUB_TOKEN (#2165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning00Blade authored Apr 25, 2024
1 parent b3c57c8 commit d25244f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/wpt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d25244f

Please sign in to comment.