From 979064cfdbc1aa8dfae118dfb1344db34d37a164 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Wed, 26 Mar 2025 11:29:45 +0100 Subject: [PATCH] fix(ci): `go_tooling` CI job git checkout tip of PR (#173) ## Why this should be merged The release-branch CI job tests branch properties of the `git` DAG but GitHub's `actions/checkout` by default creates a speculative merge commit against which PR CI is run. Running against this hypothetical situation makes the tests fail. ## How this works [`actions/checkout` uses PR tip](https://github.com/actions/checkout?tab=readme-ov-file#checkout-pull-request-head-commit-instead-of-merge-commit) ## How this was tested Future run against a release branch. --------- Signed-off-by: Quentin McGaw --- .github/workflows/go.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 28418e2108..b39674fb37 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -49,6 +49,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # everything + ref: ${{ github.event.pull_request.head.sha }} - name: Set up Go uses: actions/setup-go@v5 with: