diff --git a/.github/workflows/remove-labels.yml b/.github/workflows/remove-labels.yml index b476694ed..f2a0d3c9f 100644 --- a/.github/workflows/remove-labels.yml +++ b/.github/workflows/remove-labels.yml @@ -1,7 +1,7 @@ name: Remove Outdated Labels on: - pull_request: + pull_request_target: types: - closed issues: @@ -39,7 +39,7 @@ jobs: remove-closed-pr-labels: name: Remove closed pull request labels - if: github.event_name == 'pull_request' && (! github.event.pull_request.merged) + if: github.event_name == 'pull_request_target' && (! github.event.pull_request.merged) runs-on: ubuntu-latest steps: - uses: actions/create-github-app-token@v1