name: Label PRs

on:
  - pull_request_target

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: srvaroa/labeler@v0.8
      env:
            GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

name: Label PRs

on:
  - pull_request_target

jobs:
  build:
    runs-on: ubuntu-latest
    permissions:
      pull-requests: write

    steps:
    - uses: srvaroa/labeler@v0.8
      env:
            GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

Add GitHub Action permissions for the labeller
BUG: Add GitHub Action permissions for the labeller

Attempt to enable the pull request labeler to work on forked pull
requests.

Background:

- https://github.com/actions/labeler/issues/12
- https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/
