Skip to content

Literal ${{ fromJSON(...) }} doc text breaks resolve-toolchain action manifest #1187

Closed

Description

@c-vigo

Description

1.4.0-rc1 smoke test failed at the very first job: the runner cannot load the managed composite action assets/workspace/.github/actions/resolve-toolchain/action.yml.

Failed run: https://github.com/vig-os/devkit-smoke-test/actions/runs/29584889283

##[error]./.github/actions/resolve-toolchain/action.yml (Line: 63, Col: 18): Unexpected symbol: '...'. Located at position 10 within expression: fromJSON(...)
##[error]./.github/actions/resolve-toolchain/action.yml (Line: 77, Col: 12): Unexpected symbol: '...'. Located at position 10 within expression: fromJSON(...)
##[error]GitHub.DistributedTask.ObjectTemplating.TemplateValidationException: The template is not valid.

Root cause

The DEVKIT_CI_RUNNER work (#1173) added documentation text containing a literal ${{ fromJSON(...) }} in two scalars that the Actions runner template-evaluates when loading the action manifest:

  1. The runner-json output description (line 65)
  2. A bash comment inside the run: block of the resolve step (line 149)

There is no escape for ${{ in Actions YAML, so fromJSON(...) is parsed as a real expression and the three literal dots are a parse error — the manifest fails to load before any step runs, killing every consumer CI run at "Resolve toolchain".

Repo-wide grep confirms these are the only two occurrences.

Fix

Rephrase both doc strings without the ${{ }} wrapper (e.g. "for use with fromJSON() in runs-on"). Fix goes to release/1.4.0 per the RC-validation runbook; dev picks it up via sync-main-to-dev.

Impact

Blocks 1.4.0 (rc1 dead on arrival for every consumer using the managed CI workflow).

Activity

  1. added
    bug
    priority:blocking
    area:ci
    area:workspace
    effort:small
    semver:patch
    on Jul 17, 2026
  2. c-vigo commented on Jul 20, 2026

    @c-vigo
    ContributorAuthor

    Fixed via PR #1188 (merged into release/1.4.0 @6fe5f770): the runner-evaluated doc text no longer contains literal ${{ }}. Proven by rc2 (run 29586749001 + smoke-test deploy PR #273 green) and every subsequent rc; shipped in 1.4.0. Lesson recorded: never write literal ${{ }} in ANY action.yml/workflow scalar, including comments and descriptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ciarea:workspacebugeffort:smallpriority:blockingsemver:patch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions