From 6f746e9a4f9adba739a44346962fe404a5c71c22 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 19 Mar 2026 06:19:15 +0000
Subject: [PATCH 1/9] Initial plan
From 2d72a73ac4363414f0553ab72c64574dc36df9dd Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 19 Mar 2026 06:27:58 +0000
Subject: [PATCH 2/9] feat: add GitHub Guard DIFC filtered items notice to
footer
Create gateway_difc_filtered.cjs module that reads DIFC_FILTERED events
from MCP gateway logs (gateway.jsonl / rpc-messages.jsonl) and generates
a GitHub tip alert section for inclusion in workflow footers.
Update messages_footer.cjs to call getDifcFilteredEvents() /
generateDifcFilteredSection() inside generateFooterWithMessages(),
following the same style as the existing firewall blocked domains notice.
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---
actions/setup/js/gateway_difc_filtered.cjs | 119 ++++++++
.../setup/js/gateway_difc_filtered.test.cjs | 278 ++++++++++++++++++
actions/setup/js/messages_footer.cjs | 8 +
3 files changed, 405 insertions(+)
create mode 100644 actions/setup/js/gateway_difc_filtered.cjs
create mode 100644 actions/setup/js/gateway_difc_filtered.test.cjs
diff --git a/actions/setup/js/gateway_difc_filtered.cjs b/actions/setup/js/gateway_difc_filtered.cjs
new file mode 100644
index 00000000000..750323080d8
--- /dev/null
+++ b/actions/setup/js/gateway_difc_filtered.cjs
@@ -0,0 +1,119 @@
+// @ts-check
+///
+
+/**
+ * Gateway DIFC Filtered Module
+ *
+ * This module handles reading MCP gateway logs and extracting DIFC_FILTERED events
+ * for display in AI-generated footers.
+ */
+
+const fs = require("fs");
+
+const GATEWAY_JSONL_PATH = "/tmp/gh-aw/mcp-logs/gateway.jsonl";
+const RPC_MESSAGES_PATH = "/tmp/gh-aw/mcp-logs/rpc-messages.jsonl";
+
+/**
+ * Parses JSONL content and extracts DIFC_FILTERED events
+ * @param {string} jsonlContent - The JSONL file content
+ * @returns {Array