TypeScript
fix(ci): forward fork PR events to Cursor (#14481)
Julius Marmingeb5febb1b4782
diff --git a/.github/workflows/cursor-hygiene-webhook.yml b/.github/workflows/cursor-hygiene-webhook.ymlindex 8f8dde38a5f..19c82229e98 100644--- a/.github/workflows/cursor-hygiene-webhook.yml+++ b/.github/workflows/cursor-hygiene-webhook.yml@@ -3,7 +3,9 @@ name: Forward to Cursor hygieneon:push:branches: [main]- pull_request:+ # Use trusted workflow code and repository secrets for fork PRs.+ # Keep this job payload-only: never check out or run PR code.+ pull_request_target:types: [opened, reopened, ready_for_review]issues:types: [opened, closed, reopened]@@ -34,7 +36,7 @@ jobs:--output /dev/null --write-out '%{http_code}' \-H "Authorization: $AUTH" \-H "Content-Type: application/json" \- -H "X-GitHub-Event: ${{ github.event_name }}" \+ -H "X-GitHub-Event: ${{ github.event_name == 'pull_request_target' && 'pull_request' || github.event_name }}" \-H "X-GitHub-Delivery: ${{ github.run_id }}-${{ github.run_attempt }}" \--data-binary @"${{ github.event_path }}") || curl_status=$?if [ "$curl_status" -eq 0 ]; then