From c87f464e2983820c5a3fbab2311b0449d6aac366 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Sat, 21 Nov 2026 00:46:22 -0800 Subject: [PATCH] ci: spec-trace checks out the base branch tip, not the PR's recorded base On pull_request_target, base.sha is the base recorded when the PR was last synchronised, so a PR opened before the spec-trace scripts landed checked out a tree without them and failed with 'No such file or directory'. github.sha is the base branch tip at the event; the diff still uses the merge base of the PR's base and head. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/.github/workflows/spec-trace.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/seaweed-block/.github/workflows/spec-trace.yml b/seaweed-block/.github/workflows/spec-trace.yml index 983aff63c2..2e09b1c3cb 100644 --- a/seaweed-block/.github/workflows/spec-trace.yml +++ b/seaweed-block/.github/workflows/spec-trace.yml @@ -31,7 +31,9 @@ jobs: - name: Checkout base uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: - ref: ${{ github.event.pull_request.base.sha }} + # github.sha is the tip of the base branch when the event fires; the + # PR's base.sha can predate this workflow's own scripts. + ref: ${{ github.sha }} fetch-depth: 0 persist-credentials: false