Files
doris/.github
shuke 4612e8e442 [fix](ci) Allow review status sync after fork PR merges (#69457)
### What problem does this PR solve?

Related PR: #69386

The diagnostics helper checkout passes the workflow SHA explicitly. On a
merged fork PR's `pull_request_target: closed` event, that trusted SHA
can equal `pull_request.merge_commit_sha`; checkout's fork guard rejects
it before aggregate status resolution starts. This occurred in [run
39721514326](https://github.com/apache/doris/actions/runs/39721514326/job/119635802685)
and [run
39727686843](https://github.com/apache/doris/actions/runs/39727686843/job/119655282682).

Use the trusted default self-checkout for `pull_request_target` events
and retain workflow-SHA pinning for other callers. Credentials remain
non-persistent and unsafe checkout stays disabled. Closed events still
recalculate status for any remaining open PRs sharing the head.

Add event regression tests for both observed merge SHAs, other PR target
events, comment/dispatch SHA fallback, and closed-PR aggregation.
2026-10-29 11:35:19 +08:00
..