diff --git a/.github/workflows/label-pull-requests.yml b/.github/workflows/label-pull-requests.yml index edb21dd..235356b 100644 --- a/.github/workflows/label-pull-requests.yml +++ b/.github/workflows/label-pull-requests.yml @@ -1,9 +1,10 @@ name: Label Pull Requests on: - pull_request_target: + pull_request: -# Only the labels on the pull request change. Nothing from the pull request is checked out or run. +# Only the labels on the pull request change. The token can't write on a pull request from a fork, +# so those skip this job and get their label by hand. permissions: contents: read pull-requests: write @@ -11,6 +12,7 @@ permissions: jobs: label: name: Label + if: github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest steps: - name: Label