TimonVS / pr-labeler-action

Automatically labels your PRs based on branch name patterns like feature/* or fix/*.
MIT License
249 stars 52 forks source link

Action doesn't work for forks (Resource not accessible by integration) #25

Open TimonVS opened 5 years ago

TimonVS commented 5 years ago

The Action fails to run on PRs that are submitted from a fork. As an example see the failing check on #24. It's basically the same issue as https://github.com/actions/labeler/issues/12.

JohnRDOrazio commented 3 years ago

I was able to implement for PR's coming from forks by using the pull_request_target action instead of the pull_request action:

name: PR Labeler
on:
  pull_request_target:
    types: [opened]