Skip to content

fix(scan): checkout runner helpers at job_workflow_sha (cross-repo)#33

Merged
damartinezjulio merged 2 commits into
mainfrom
fix-reusable-workflow-helper-checkout
Jun 19, 2026
Merged

fix(scan): checkout runner helpers at job_workflow_sha (cross-repo)#33
damartinezjulio merged 2 commits into
mainfrom
fix-reusable-workflow-helper-checkout

Conversation

@damartinezjulio

Copy link
Copy Markdown
Contributor

@coderabbitai ignore
@Sigilix ignore

The "Checkout runner helpers" step used github.workflow_sha, which in a reusable-workflow call resolves to the caller's commit — so checking out Sigilix/runner at it fails cross-repo with fatal: remote error: upload-pack: not our ref (observed breaking the engine dogfood, e.g. Sigilix/sigilix #624/#625). github.job_workflow_sha is the reusable workflow's OWN commit, valid in the runner repo both same-repo (CI) and cross-repo (dogfood). One-token fix.

…usable)

github.workflow_sha is the CALLER's commit in a reusable-workflow call, so
checking out Sigilix/runner at it fails cross-repo ('not our ref'). Use
github.job_workflow_sha — the reusable workflow's OWN commit — which is valid in
the runner repo both same-repo and cross-repo (unblocks the engine dogfood).
@damartinezjulio damartinezjulio merged commit a93d95e into main Jun 19, 2026
5 checks passed
@damartinezjulio damartinezjulio deleted the fix-reusable-workflow-helper-checkout branch June 19, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant