Repository navigation
Commit c2e1868
fix(ci): handle workflow_dispatch in fork PR permission checks
Inverted the condition logic to properly handle all event types:
- push → runs (not a pull_request)
- workflow_dispatch → runs (not a pull_request)
- pull_request from same repo → runs (fork check passes)
- pull_request from fork → skips (no write permissions)
The previous approach explicitly listed 'push' which missed workflow_dispatch.
The new approach skips only fork PRs, allowing all other events through.
Co-Authored-By: Claude Code <noreply@anthropic.com>1 parent e86d11d commit c2e1868
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
0 commit comments