diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index 7a1d2e04c..68b848b8c 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -1,18 +1,13 @@ name: "Pull Request Labeler" - on: - pull_request: - types: [opened, synchronize, reopened] +- pull_request_target jobs: - label: + labeler: + permissions: + contents: read + pull-requests: write runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Labeler - uses: actions/labeler@v3 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - configuration-path: ".github/labeler.yml" \ No newline at end of file + - uses: actions/labeler@v5 + \ No newline at end of file