From fdbf60491cc1ec8db90b88818844e233b39d4c75 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 19 Jul 2026 07:23:56 +0000 Subject: [PATCH 1/3] Initial plan From 62a4f415112aa44a44827157a9177f6514495a74 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 19 Jul 2026 07:32:35 +0000 Subject: [PATCH 2/3] fix(SEC-005): tighten cross-repo regex to avoid false positive on frontmatter_hash_pure.cjs Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- scripts/check-safe-outputs-conformance.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check-safe-outputs-conformance.sh b/scripts/check-safe-outputs-conformance.sh index 07b95337b73..71f1605ec6d 100755 --- a/scripts/check-safe-outputs-conformance.sh +++ b/scripts/check-safe-outputs-conformance.sh @@ -177,8 +177,8 @@ check_cross_repo() { continue fi - # Check if handler supports target-repo - if grep -q "target.*[Rr]epo\|targetRepo" "$handler"; then + # Check if handler supports target-repo (match explicit config-surface identifiers only) + if grep -q "target-repo\|targetRepo\|target_repo" "$handler"; then # Check for allowlist validation if ! grep -q "allowed.*[Rr]epos\|validateTargetRepo\|checkAllowedRepo" "$handler"; then log_high "SEC-005: $handler supports target-repo but lacks allowlist check" From 730f019a79e412467ac51227b329f1c86207e076 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 19 Jul 2026 07:33:28 +0000 Subject: [PATCH 3/3] fix(SEC-005): add word boundaries to cross-repo regex pattern Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- scripts/check-safe-outputs-conformance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-safe-outputs-conformance.sh b/scripts/check-safe-outputs-conformance.sh index 71f1605ec6d..07989414030 100755 --- a/scripts/check-safe-outputs-conformance.sh +++ b/scripts/check-safe-outputs-conformance.sh @@ -178,7 +178,7 @@ check_cross_repo() { fi # Check if handler supports target-repo (match explicit config-surface identifiers only) - if grep -q "target-repo\|targetRepo\|target_repo" "$handler"; then + if grep -qE "\btarget-repo\b|\btargetRepo\b|\btarget_repo\b" "$handler"; then # Check for allowlist validation if ! grep -q "allowed.*[Rr]epos\|validateTargetRepo\|checkAllowedRepo" "$handler"; then log_high "SEC-005: $handler supports target-repo but lacks allowlist check"