Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Error thrown in consuming workflows regarding JSON output values quotes

オープン
#464 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
github-actions, typescript, vscode
領域
devtools

調査の方向性

まず、issue に示されている reusable workflow と consuming workflow を使い、報告された拡張機能のバージョンを基準としてエラーを再現します。引用符で囲まれた JSON 式に対して生成される診断を追跡し、有効な GitHub Actions 構文が consuming workflow でエラーを報告しなくなっていること、またはエラーを誤った行に対応付けなくなっていることを確認します。

索引モデルが issue の本文から書いたものです。

説明

bug

Describe the bug

Quotes in a reusable workflow's JSON output value is triggering an error in consuming workflows.

To Reproduce

Steps to reproduce the behavior:

  1. Create a reusable workflow with input and outputs, one of the output being this JSON value:
    outputs:
      images:
        value: '{"gcp": "${{ contains(inputs.registries, ''gcp'') && jobs.setup.outputs.gcp_image || '''' }}", "ecr": "${{ contains(inputs.registries, ''ecr'') && jobs.setup.outputs.ecr_image || ''''  }}"}'
  1. Use the first workflow in another workflow:
  build:
    uses: acme/actions/.github/workflows/build.yaml@v1
  1. See the following errors in the 2nd workflow file, but at the line number from the 1st workflow file:
Unexpected symbol: 'gcp'''. Located at position 31 within expression: contains(inputs.registries, ''gcp'') && jobs.setup.outputs.gcp_image || '''' [Ln 72, Col 26]
Unexpected symbol: 'ecr'''. Located at position 31 within expression: contains(inputs.registries, ''ecr'') && jobs.setup.outputs.ecr_image || '''' [Ln 72, Col 120]

Expected behavior

The 1st workflow does not throw any errors when being run in Github Actions runners, so I'd expect no errors to be printed by this extension.

Extension Version

v0.27.1

主要言語
TypeScript
スター
661
フォーク
214
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/vscode-github-actions のほかの issue

github/vscode-github-actions の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。