name: Labeler on: pull_request: permissions: contents: read pull-requests: write jobs: labeler: # Fork PRs have a read-only GITHUB_TOKEN, so they cannot update labels. if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} runs-on: ubuntu-latest steps: - name: Labeller uses: actions/labeler@f27b608878404679385c85cfa523b85ccb86e213 # v6.1.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} configuration-path: labeler-config.yml