Jelajahi Sumber

fix(workflow): run labelling on target repo

Since this workflow changes the PR labels, it needs access to the target
repository access token. Workflow documentation is not clear on this, they
probably use it for a multi-user repository where internal developers push
branches to the main repository.
Jason Rumney 7 jam lalu
induk
melakukan
2c3cf195c6
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      .github/workflows/label-pr-size.yml

+ 1 - 1
.github/workflows/label-pr-size.yml

@@ -1,6 +1,6 @@
 name: Label PRs based on size
 name: Label PRs based on size
 
 
-on: [pull_request]
+on: [pull_request_target]
 
 
 jobs:
 jobs:
   add_pr_size_label:
   add_pr_size_label: