Commit fc5d2a3
authored
ci: make integration test check blocking for fork PRs (#744)
## Summary
- Fork PRs without the `ok-to-test` label currently show the integration
test check as **skipped**, which GitHub treats as passing — making the
PR look green when integration tests haven't run
- Remove `&& github.event.pull_request.head.repo.full_name ==
github.repository` from the job-level `if`, so the job runs for all
`pull_request` events (including forks)
- For unapproved fork PRs, the existing "Check fork PR authorization"
step fails immediately with `exit 1` before `actions/checkout`, making
the check **blocking** instead of silently green
- No security change: fork code is never checked out until after the
label gate passes via `pull_request_target`
## Test plan
- [ ] Fork PR without `ok-to-test` label → integration check shows as
failed, not skipped
- [ ] Fork PR with `ok-to-test` label added → `pull_request_target`
fires, integration tests run normally
- [ ] Internal PR (same repo) → integration tests run automatically as
before1 parent 2948293 commit fc5d2a3
2 files changed
Lines changed: 15 additions & 9 deletions
File tree
- .changes/unreleased
- .github/workflows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | | - | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
40 | | - | |
41 | | - | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
0 commit comments