From a201887805b1e83252e5ab3f14e3bedf22d30938 Mon Sep 17 00:00:00 2001 From: Dereck Tu Date: Wed, 14 Jan 2026 11:13:50 -0500 Subject: [PATCH] fix: pass head sha to find merge base This commit passes the head sha when checking out the PR so that we can find the correct merge base commit. With the previous logic, the merge base was being incorrectly identified as a commit newer than the head sha. This resulted in breaking changes being flagged on PRs that don't even make express changes. TICKET: DX-2778 --- .github/workflows/audit-api-spec.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/audit-api-spec.yaml b/.github/workflows/audit-api-spec.yaml index 80471fc356..bca2fad3d6 100644 --- a/.github/workflows/audit-api-spec.yaml +++ b/.github/workflows/audit-api-spec.yaml @@ -68,6 +68,7 @@ jobs: - name: Checkout PR uses: actions/checkout@v6 with: + ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - name: Find and checkout merge base