.github/workflows: thread formatted HEAD commit to test sub-actions

Thread the commit SHA from the formatting job to the test jobs in GitHub workflows.
This ensures that when auto-formatting runs in the queue-main and queue-dev workflows,
tests run against the newly formatted code rather than the original code.

Co-Authored-By: sketch <hello@sketch.dev>
diff --git a/.github/workflows/go_test.yml b/.github/workflows/go_test.yml
index b736432..a6fba4c 100644
--- a/.github/workflows/go_test.yml
+++ b/.github/workflows/go_test.yml
@@ -1,6 +1,12 @@
 name: go_tests
 on:
   workflow_call:
+    inputs:
+      ref:
+        description: "The git ref to checkout"
+        required: false
+        type: string
+        default: ""
   push:
     branches-ignore:
       - "queue-main-*"
@@ -10,7 +16,9 @@
   test:
     runs-on: "ubuntu-latest"
     steps:
-      - uses: actions/checkout@master
+      - uses: actions/checkout@v4
+        with:
+          ref: ${{ inputs.ref }}
 
       - uses: actions/setup-go@v5
         with: