The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 23:15 UTC
fix(ci): forward fork PR events to Cursor (#14481)
Julius Marminge committed
Oct 19, 2026 at 21:10 UTC
b5febb1b47824e806eb1ff82e7e27e315f8aeec9
1 file changed
+4
-2
.github/workflows/cursor-hygiene-webhook.yml
+4
-2
@@ -3,7 +3,9 @@ name: Forward to Cursor hygiene
3
on:
4
push:
5
branches: [main]
6
- pull_request:
6
+ # Use trusted workflow code and repository secrets for fork PRs.
7
+ # Keep this job payload-only: never check out or run PR code.
8
+ pull_request_target:
9
types: [opened, reopened, ready_for_review]
10
issues:
11
types: [opened, closed, reopened]
@@ -34,7 +36,7 @@ jobs:
36
--output /dev/null --write-out '%{http_code}' \
37
-H "Authorization: $AUTH" \
38
-H "Content-Type: application/json" \
37
- -H "X-GitHub-Event: ${{ github.event_name }}" \
39
+ -H "X-GitHub-Event: ${{ github.event_name == 'pull_request_target' && 'pull_request' || github.event_name }}" \
40
-H "X-GitHub-Delivery: ${{ github.run_id }}-${{ github.run_attempt }}" \
41
--data-binary @"${{ github.event_path }}") || curl_status=$?
42
if [ "$curl_status" -eq 0 ]; then