Skip to content

fix(reusable): check out github-workflows at github.job_workflow_sha#7

Merged
jorisjonkers-dev-agents[bot] merged 2 commits into
mainfrom
fix/jvm-ci-ref
Jun 28, 2026
Merged

fix(reusable): check out github-workflows at github.job_workflow_sha#7
jorisjonkers-dev-agents[bot] merged 2 commits into
mainfrom
fix/jvm-ci-ref

Conversation

@jorisjonkers-dev-agents

Copy link
Copy Markdown
Contributor

Fixes the reusable-workflow checkout ref so consumers stop failing with couldn't find remote ref refs/pull/N/merge.

github.workflow_ref is the caller ref inside a reusable workflow; the composite-action checkout must use github.job_workflow_sha (the reusable workflow file commit). Affects jvm-ci, node-ci, gitops-ci, flux-render-validate, platform-config-validate, deploy-config-render-drift, migration-guard.

The reusable workflows resolved the github-workflows checkout ref from
github.workflow_ref, which in a called workflow is the CALLER's ref
(…/ci.yml@refs/pull/N/merge) — so the composite-action checkout tried
github-workflows@refs/pull/N/merge and failed with 'ref not found',
breaking every JVM/node/gitops consumer on PR events. Use
github.job_workflow_sha (the reusable workflow's own commit) instead.
github.job_workflow_sha is a documented context property (the reusable
workflow's own commit) but this actionlint version's context schema lacks
it. Ignore that one message so the legitimate fix passes lint.
@jorisjonkers-dev-agents jorisjonkers-dev-agents Bot merged commit 78a598a into main Jun 28, 2026
4 checks passed
This was referenced Jun 28, 2026
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.

0 participants