Repository navigation
Description
Summary
The @v4 composite action .github/actions/npm/jobs/build-and-test/action.yml references vars.CLDMV_SKIP_FROZEN_LOCKFILE in a step env: block. The vars context is not available inside composite actions (GitHub exposes vars only in workflow files), so the action fails template validation and the 🏗️ Build & Test job dies before running anything. The ✅ Required PR Check mirror then sees CI_RESULT=failure and goes red.
This breaks CI on every consumer repo that uses the v4 reusable CI, not one repo — it started when the @v4 rolling tag moved to a commit that added the frozen-lockfile mechanism.
Exact error
CLDMV/.github/v4/.github/actions/npm/jobs/build-and-test/action.yml (Line: 70, Col: 37):
Unrecognized named-value: 'vars'. Located at position 1 within expression: vars.CLDMV_SKIP_FROZEN_LOCKFILE
GitHub.DistributedTask.ObjectTemplating.TemplateValidationException: The template is not valid.
...
Failed to load CLDMV/.github/v4/.github/actions/npm/jobs/build-and-test/action.yml
Observed on a consumer PR run: 🧪 CI Tests & Build (push event) → job 🏗️ Build & Test (lts/*) errors at load time; job ✅ Required PR Check then exits 1 with Reusable CI did not pass. (CI_RESULT=failure). The run resolved CLDMV/.github@v4 at a newer SHA (3927509…) than the workflow files it started from (0156a0b…), i.e. the tag move introduced it.
Offending code
.github/actions/npm/jobs/build-and-test/action.yml:
- name: Install dependencies
uses: CLDMV/.github/.github/actions/npm/steps/install-dependencies@v4
env:
CLDMV_SKIP_FROZEN_LOCKFILE: ${{ vars.CLDMV_SKIP_FROZEN_LOCKFILE }} # ← `vars` not available in a composite action
with:
package-manager: ${{ inputs.package-manager }}Fix
vars must be read in a workflow file (which has the vars context) and threaded down into the composite as an input:
- Add an input to
build-and-test/action.yml:and change the env to reference it:inputs: skip-frozen-lockfile: description: "Value of the CLDMV_SKIP_FROZEN_LOCKFILE repo/org variable (passed from the calling workflow, which has the vars context)." required: false default: ""
env: CLDMV_SKIP_FROZEN_LOCKFILE: ${{ inputs.skip-frozen-lockfile }}
- In the reusable workflow(s) that call this composite (
reusable-build-and-test.yml, and any other caller), pass:with: skip-frozen-lockfile: ${{ vars.CLDMV_SKIP_FROZEN_LOCKFILE }}
Also check
Any other composite action.yml that reads vars.CLDMV_SKIP_FROZEN_LOCKFILE (or any vars.*) directly has the same defect — e.g. the deeper .github/actions/npm/steps/install-dependencies action if it references vars internally. Grep the actions tree for vars. and thread each through inputs the same way. A workflow-level env: set once from vars and inherited by the composite steps is an alternative to per-action inputs.
Impact / severity
High — all v4 consumers' CI is red until this lands, and the ✅ Required PR Check being required means PRs can't merge. A revert of the tag move or a hotfix on @v4 unblocks everyone.
Activity
Shinrai commentedon Sep 6, 2026
Confirmed. Four composite actions set
CLDMV_SKIP_FROZEN_LOCKFILE: ${{ vars.CLDMV_SKIP_FROZEN_LOCKFILE }}on theirinstall-dependenciesstep, andvarsisn't available inside composite actions — so all four fail template validation (Unrecognized named-value: 'vars'), not justbuild-and-test:.github/actions/npm/jobs/build-and-test/action.yml.github/actions/github/jobs/create-release/action.yml.github/actions/github/jobs/create-release-pr/action.yml.github/actions/github/jobs/update-release-pr/action.ymlFixed in #276 along the lead approach here: each composite now declares a
skip-frozen-lockfileinput and sets the step env frominputs.skip-frozen-lockfile; the eight calling workflow sites (which do have thevarscontext) passvars.CLDMV_SKIP_FROZEN_LOCKFILEinto it.install-dependenciesstill reads the value fromprocess.env, so frozen-by-default behavior is unchanged. The source-only satellitecreate-releasecall installs no dependencies (install-dependenciesis gated onrelease-source-only == 'false'), so it was intentionally left without the input.Grep confirms no
vars.reference remains in.github/actions/. The PR merges intonext; the@v4tag rolls when it releases tomaster.cldmv-bot commentedon Sep 6, 2026
Closed in v4.26.1 — resolved by #276.