prefect icon indicating copy to clipboard operation
prefect copied to clipboard

Fix labeler job

Open cicdw opened this issue 1 year ago • 1 comments

I noticed that the labeler job was failing on contributor PRs (example here). I did some reading and found two things that needed fixing:

  • we need to check out the repository so that the labeler.yml file could be found by the runner without an API call (it's not clear that this is critical but 🤷 )
  • we need to use the pull_request_target event to enable write permissions back on the PR from forked PRs, which is safe in the context of a labeling job (see documentation on pull_request_target)

cicdw avatar Aug 28 '24 00:08 cicdw

why didn't the labeler job run on this PR? ...

cicdw avatar Aug 28 '24 01:08 cicdw