Post-agent log steps still create false `##[error]` annotations (follow-up to #78997)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- github-actions, javascript
- 領域
- ci-cd
調査の方向性
Start with collect_ndjson_output.cjs, parse_copilot_log.cjs, log_parser_bootstrap.cjs, and setup_globals.cjs to find every core.info path that emits agent-controlled text. Use the existing ::stop-commands::<token> pattern or a shared escaping helper, and consult the linked ActionCommand.cs behavior for how ##[ is detected. Done means agent output, transcripts, reasoning, and safe-output bodies containing ##[ remain literal and produce no false error annotations.
索引モデルが issue の本文から書いたものです。
説明
Summary
#80032 (released in v1.4.0) fixed #78997 for the AWF agent step by wrapping it in ::stop-commands::<token>. Two later actions/github-script steps in the agent job still print untrusted agent text without that protection:
-
collect_ndjson_output.cjs -
parse_copilot_log.cjs(thecore.infocalls that print the rendered transcript and safe-outputs preview are inlog_parser_bootstrap.cjs, lines 567, 573 and 607 in v1.4.2)
If the agent's output or transcript has a line that contains ##[error], the runner reads it as a workflow command. The position does not matter: the runner looks for ##[ anywhere in the line (IndexOf in ActionCommand.cs). Only :: commands have to come first, after optional whitespace. collect_ndjson_output.cjs logs agent text mid-line, for example [INGESTION] First 500 chars of output: ..., so escaping only at the start of a line would not be enough. A successful job then shows false error annotations.
Version
gh-aw v1.4.2 (lock files compiled with v1.4.2, github/gh-aw-actions/setup pinned to v1.4.2).
Also unfixed in v1.4.4 and on main as of 2026-12-01, from reading the source (not run there): collect_ndjson_output.cjs, parse_copilot_log.cjs, log_parser_bootstrap.cjs and setup_globals.cjs are unchanged from v1.4.2.
Steps to reproduce
-
Create an issue whose body contains
##[error]some text. -
Run an agentic workflow (Copilot engine) that reads the issue with
issue_readand quotes or discusses that text in its reasoning and in a safe output, such asadd_comment. -
Open the agent job of the run.
Expected
No error annotations on the agent job. Agent text that contains ##[ is printed literally.
Actual
The agent job succeeds but shows 4 failure annotations whose messages are fragments of agent text:
-
1 from the
collect_ndjson_output.cjsstep, which echoes the safe-outputadd_commentbody. -
3 from the
parse_copilot_log.cjsstep, which prints the rendered transcript (assistant messages and reasoning).
The AWF step is fine. It is wrapped in ::stop-commands::***, and the tool.execution_complete JSONL lines are intact in the raw log.
Suggested fix
Apply the same protection to every step that prints untrusted content: tool output, agent messages, reasoning and safe-output bodies. For example:
-
wrap the output of
collect_ndjson_output.cjsandparse_copilot_log.cjs(and any similar log or summary step) in::stop-commands::<random token>...::<token>::, or -
escape
##[and leading::in lines before passing them tocore.info.
A shared helper in setup_globals.cjs would cover all github-script steps at once.
- 主要言語
- Go
- スター
- 5.7k
- フォーク
- 646
- 平均マージ
- 4時間 29分
- マージ済み PR(30日)
- 829
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/gh-aw のほかの issue
-
automation backlog:smoke-tests testing
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
github/gh-aw#83095 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
-
agentic-workflows cascade-suspected
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
ai-generated automation backlog:smoke-tests testing
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
github/gh-aw#83042 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
agentic-workflows cascade-suspected
難易度 1/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
feat(arithmetization): update `arithmetization` to ZkC version `v1.2.38`対応中かも @DavePearce が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
LFDT-Lineth/lineth-monorepo#4679 ·
メンテナーはふだん 1 日以内に返信
-
macOS: MixMusic stalls as the GPU times out drawing frames, and the media keys fail to register at every start対応中かも @fzn0x が今日担当しました。 オープンbug priority: high
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
funding: failure logs print `<nil>` error and zero channel ID対応中かも @litbot-9000 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
lightningnetwork/lnd#11676 ·
メンテナーはふだん 1 日以内に返信
-
effort:s impact:low raised-by:reviewer risk:low
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
medici-finance/assay#8050 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信