From 5abe0b8c5b8eb0a560760c67a8f24d5fe57dd1bd Mon Sep 17 00:00:00 2001 From: Eric Moore Date: Mon, 30 Nov 2026 22:28:11 -0600 Subject: [PATCH] ci(installers): under workflow_call, check out the shells at a server_ref input (default main) github.job_workflow_sha is not in the github context (it is an OIDC claim only), so #893's ref fell back to github.sha, the CALLER's commit: agent run 46567989283 failed all five legs with 'not our ref b173f09b'. A called run now checks out inputs.server_ref (default main; a tag pins it); every other event keeps github.sha, which is ours. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01A6v8R9vGyj8Hqa72BC3EDn --- .github/workflows/desktop-installers.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/desktop-installers.yml b/.github/workflows/desktop-installers.yml index cdb9daf6..d322bed3 100644 --- a/.github/workflows/desktop-installers.yml +++ b/.github/workflows/desktop-installers.yml @@ -57,6 +57,10 @@ on: upgrade_to: type: string default: "" + server_ref: + description: "CIRISServer ref the shells are checked out at (a branch, tag or SHA of THIS repo)" + type: string + default: main push: tags: ['v*'] # A PR that touches the shells runs them (5 legs, 2 macOS: only then). @@ -84,7 +88,7 @@ jobs: - uses: actions/checkout@v4 with: repository: CIRISAI/CIRISServer - ref: ${{ github.job_workflow_sha || github.sha }} + ref: ${{ inputs.server_ref || github.sha }} - uses: actions/setup-python@v6 with: python-version: '3.12' @@ -252,7 +256,7 @@ jobs: - uses: actions/checkout@v4 with: repository: CIRISAI/CIRISServer - ref: ${{ github.job_workflow_sha || github.sha }} + ref: ${{ inputs.server_ref || github.sha }} - uses: actions/setup-python@v6 with: python-version: '3.12' @@ -305,7 +309,7 @@ jobs: - uses: actions/checkout@v4 with: repository: CIRISAI/CIRISServer - ref: ${{ github.job_workflow_sha || github.sha }} + ref: ${{ inputs.server_ref || github.sha }} - uses: actions/setup-python@v6 with: python-version: '3.12'