Browse Source

fix: Use pull_request_target to allow workflow on bot PRs

- Add pull_request_target trigger to validate-registry workflow
- Allows workflow to run automatically on bot-created PRs (version bumps, doc syncs)
- Fixes issue where PR #106 and similar bot PRs are blocked
- pull_request_target runs with base branch permissions, safe for bot PRs
darrenhinde 6 tháng trước cách đây
mục cha
commit
9cf14f2f21
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      .github/workflows/validate-registry.yml

+ 5 - 0
.github/workflows/validate-registry.yml

@@ -18,6 +18,11 @@ on:
       - dev
     # Removed paths filter - this check is required by repository ruleset
     # so it must run on ALL PRs to prevent blocking merges
+  pull_request_target:
+    branches:
+      - main
+      - dev
+    # pull_request_target allows workflows to run on bot-created PRs
   workflow_dispatch:
     inputs:
       pr_number: