Browse Source

ci: run in host repo context

For security, don't allow workflows to run using the upstream
repository token. Examples for this action show it working as
pull-request.

Remove quotes from bucketConfigFile to match AI suggestion.
Not sure this will solve the issue of finding the config file
Jason Rumney 1 day ago
parent
commit
ec31ea9f55
1 changed files with 2 additions and 2 deletions
  1. 2 2
      .github/workflows/label-pr-size.yml

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

@@ -1,6 +1,6 @@
 name: Label PRs based on size
 
-on: [pull_request_target, workflow_dispatch]
+on: [pull_request]
 
 jobs:
   add_pr_size_label:
@@ -14,4 +14,4 @@ jobs:
         uses: boschresearch/pr-size-labeler@v5
         # Uncomment these lines if you want to use your own custom configuration
         with:
-          bucketConfigFile: ".github/sizeBuckets.yml"
+          bucketConfigFile: .github/sizeBuckets.yml