From 73ed93ed6f043fb8024ee4a1ba2e7a2ab08a6489 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 25 Apr 2026 21:50:36 +0000 Subject: [PATCH] fix: narrow grep pattern to only match knowledge file table entries" Agent-Logs-Url: https://github.com/microsoft/regorus/sessions/49fd3403-e001-40ce-858f-7397111fc0d5 Co-authored-by: anakrish <35780660+anakrish@users.noreply.github.com> --- .github/workflows/copilot-config-validation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/copilot-config-validation.yml b/.github/workflows/copilot-config-validation.yml index 22f87a0..fe82eef 100644 --- a/.github/workflows/copilot-config-validation.yml +++ b/.github/workflows/copilot-config-validation.yml @@ -51,8 +51,8 @@ jobs: - name: Validate knowledge file references run: | echo "Checking that all knowledge files referenced in instructions exist..." - # Extract knowledge file references from instructions - grep -oP '[a-z-]+\.md' .github/copilot-instructions.md | sort -u > /tmp/referenced.txt + # Extract knowledge file references from the table (lines starting with | `...` |) + grep -P '^\| `[a-z-]+\.md`' .github/copilot-instructions.md | grep -oP '`[a-z-]+\.md`' | tr -d '`' | sort -u > /tmp/referenced.txt # List actual knowledge files ls docs/knowledge/*.md 2>/dev/null | xargs -I{} basename {} | sort -u > /tmp/actual.txt