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

[Safe Outputs Conformance] TYPE-016: enforceCommentLimits signature check fails due to added maxLength parameter

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

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

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

評価

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

調査の方向性

TYPE-016チェック付近の scripts/check-safe-outputs-conformance.sh と、enforceCommentLimits の箇所にある actions/setup/js/comment_limit_helpers.cjs を読んでください。既存のパターンが maxLinks と linkBody をどのように検証しているかを確認し、追加の maxLength パラメーターを許可するように調整してください。bash scripts/check-safe-outputs-conformance.sh を実行し、TYPE-016のすべてのサブチェックが通ることを確認してください。

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

説明

automated conformance safe-outputs
Conformance Check Failure

Check ID: TYPE-016
Severity: HIGH
Category: Specification / Implementation

Problem Description

The checker verifies that enforceCommentLimits in actions/setup/js/comment_limit_helpers.cjs exposes a configurable maxLinks and an agent-only linkBody parameter (so generated footer/metadata links are excluded from the link count) by matching the literal function signature function enforceCommentLimits(body, { maxLinks = MAX_LINKS, linkBody = body }.

The current signature (line 64) is:

function enforceCommentLimits(body, { maxLinks = MAX_LINKS, linkBody = body, maxLength = MAX_COMMENT_LENGTH } = {}) {

The inserted , maxLength = MAX_COMMENT_LENGTH between linkBody = body and the closing } breaks the checker's literal substring match.

Affected Components
  • Files:

    • actions/setup/js/comment_limit_helpers.cjs (function signature, line 64)
    • scripts/check-safe-outputs-conformance.sh (TYPE-016 check, ~line 2502)
<b>🔍 Current vs Expected Behavior</b>
Current Behavior

Functionally, enforceCommentLimits still accepts a configurable maxLinks and an agent-only linkBody default — both call sites (actions/setup/js/add_comment.cjs line 918 and actions/setup/js/safe_outputs_handlers.cjs line 2403) already pass these correctly, and both of those sub-checks pass. Only the helper-function-signature sub-check fails, purely on string shape, because of the additional maxLength destructured parameter added since the check was last written.

Expected Behavior

Either the implementation's parameter shape is adjusted to match what the checker expects, or the checker's pattern is widened to tolerate additional destructured parameters appended after linkBody = body, since the spec requirement (configurable max-links, agent-only link counting) is otherwise already satisfied.

Remediation Steps

This task can be assigned to a Copilot coding agent with the following steps:

  1. Confirm enforceCommentLimits's maxLinks/linkBody behavior still conforms to Section 7.1 / MCE5 semantics (configurable max-links, generated links excluded from the agent-content link count) — this already appears true functionally.
  2. Update the TYPE-016 regex in scripts/check-safe-outputs-conformance.sh (~line 2502) to tolerate trailing destructured parameters, e.g. match maxLinks = MAX_LINKS, linkBody = body[,}] instead of requiring an immediate closing brace.
  3. Re-run the conformance script locally and confirm TYPE-016 passes, including its E008 message, handler-enforcement, and MCP-invocation sub-checks.
  4. Add or update a regression test so future signature changes to enforceCommentLimits do not silently break this check again.
Verification

After remediation, verify the fix by running:

bash scripts/check-safe-outputs-conformance.sh

The check TYPE-016 should pass without errors.

References
  • Safe Outputs Specification: docs/src/content/docs/specs/safe-outputs-specification.md
  • Conformance Checker: scripts/check-safe-outputs-conformance.sh (line 2495)
  • Run: §39551296580
  • Date: 2026-10-21

Generated by ✅ Daily Safe Outputs Conformance Checker · claude · agent · 81.4 AIC · ⌖ 0.668 AIC · ⊞ 5.4K · ◷

  • expires on Oct 21, 2026, 9:53 PM UTC-08:00
主要言語
Go
スター
5.4k
フォーク
596
平均マージ
3時間 41分
マージ済み PR(30日)
829

環境構築

Codespaces で開く

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

はじめの一歩

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

github/gh-aw のほかの issue

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

似ている issue

Go の issue をもっと見る

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

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