From fde4497b53f8d550f6e3518ee9e82d653833befc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 22 Feb 2026 23:37:58 +0000 Subject: [PATCH 1/3] Initial plan From 31251e0541571e15832c0f9d08639b90bfc6a0fd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 22 Feb 2026 23:44:15 +0000 Subject: [PATCH 2/3] fix(sec-003): scope check to octokit files and add missing enforcement patterns Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- scripts/check-safe-outputs-conformance.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/check-safe-outputs-conformance.sh b/scripts/check-safe-outputs-conformance.sh index e18612ad8d..8c237f54d6 100755 --- a/scripts/check-safe-outputs-conformance.sh +++ b/scripts/check-safe-outputs-conformance.sh @@ -108,11 +108,13 @@ check_max_limits() { local failed=0 for handler in actions/setup/js/*.cjs; do - # Skip test and utility files - [[ "$handler" =~ (test|parse|buffer|factory) ]] && continue + # Only check files that perform GitHub API operations + if ! grep -q "octokit\." "$handler"; then + continue + fi - # Check if handler enforces max limits - if ! grep -q "\.length.*>.*\.max\|enforceMaxLimit\|checkLimit\|max.*exceeded" "$handler"; then + # Check if handler enforces max limits using any recognized pattern + if ! grep -qE "\.length.*>.*\.max|enforceMaxLimit|checkLimit|max.*exceeded|enforceArrayLimit|tryEnforceArrayLimit|limit_enforcement_helpers" "$handler"; then log_medium "SEC-003: $handler may not enforce max limits" failed=1 fi From 38fcbf14ccf2b23bc18886d59f0b1865c34d4039 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 00:03:51 +0000 Subject: [PATCH 3/3] fix(sec-003): also skip test files in max limits check Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- scripts/check-safe-outputs-conformance.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/check-safe-outputs-conformance.sh b/scripts/check-safe-outputs-conformance.sh index 8c237f54d6..bbbf99fce1 100755 --- a/scripts/check-safe-outputs-conformance.sh +++ b/scripts/check-safe-outputs-conformance.sh @@ -108,6 +108,9 @@ check_max_limits() { local failed=0 for handler in actions/setup/js/*.cjs; do + # Skip test and utility files + [[ "$handler" =~ (test|parse|buffer|factory) ]] && continue + # Only check files that perform GitHub API operations if ! grep -q "octokit\." "$handler"; then continue