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

audit_pre_agent_workspace.sh can exceed the 1 MiB step summary limit when toolchains are installed under RUNNER_TEMP/gh-aw/tool-cache

クローズ 初心者向け
#68,496 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@pelikhan がすでに取り組んでいます。

2026年10月14日 から。

  • #68725 @copilot-swe-agent による — マージ済み

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, shell
領域
ci-cd

調査の方向性

actions/setup/sh/audit_pre_agent_workspace.sh を開き、キャッシュディレクトリの除外リストと、GITHUB_STEP_SUMMARY に書き込む render_summary_tree を確認してください。Issue には3つの案があります(tool-cache を除外する、サマリーの上限を設ける、RUNNER_TEMP/gh-aw については件数のみを要約する)。どの案にするかは、先にメンテナーに確認してください。RUNNER_TEMP/gh-aw/tool-cache 配下の .NET インストールによってサマリーが 1 MiB を超えなくなり、/tmp/gh-aw/pre-agent-audit.txt には完全な一覧が残っていれば完了です。

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

説明

ai-inspected

Problem

actions/setup/sh/audit_pre_agent_workspace.sh appends a rendered file tree of every scanned directory to $GITHUB_STEP_SUMMARY (render_summary_tree >> "${GITHUB_STEP_SUMMARY:-/dev/null}") with no size cap. One of the scanned directories is $RUNNER_TEMP/gh-aw. When the "Redirect tool cache and install paths for ARC/DinD" step has put the setup-dotnet and setup-node installs under $RUNNER_TEMP/gh-aw/tool-cache, that directory holds thousands of files and the rendered summary exceeds the per-step limit (1 MiB, see Adding a job summary). GitHub then fails the upload for that step and adds an error annotation.

The run itself succeeds, so this is cosmetic, but every run of such a workflow carries a red error annotation and loses that step's summary.

Evidence

One implement-issue run (gh-aw v0.89.21, Claude engine, a .NET repository with actions/setup-dotnet and actions/setup-node):

  • Log: Pre-agent audit written to /tmp/gh-aw/pre-agent-audit.txt (9992 lines), then ##[error]$GITHUB_STEP_SUMMARY upload aborted, supports content up to a size of 1024k, got 1385k.
  • Of the 9,992 audit lines, 9,941 are under the gh-aw temp directory section: 5,751 under tool-cache/dotnet and 3,448 under tool-cache/node. The workspace sections add 51 lines.
  • A run of another workflow in a different repository without a .NET install had 741 lines in the same section and did not hit the limit.

The script already excludes common cache directories (node_modules, .cache, vendor, ...) from the listing; tool-cache is not among them.

Suggested fixes

Any one of these would avoid it:

  • Exclude tool-cache (and other installed-toolchain directories) from the $RUNNER_TEMP/gh-aw scan, as with the existing cache exclusions.
  • Cap what is written to the step summary (for example the first N lines plus "... M more, see /tmp/gh-aw/pre-agent-audit.txt"), keeping the complete listing in the audit file.
  • Write the summary tree only for the workspace and home directories, and only the counts for $RUNNER_TEMP/gh-aw.
主要言語
Go
スター
5.4k
フォーク
584
平均マージ
3時間 38分
マージ済み PR(30日)
826

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

github/gh-aw のほかの issue

github/gh-aw の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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