diff --git a/actions/setup/js/firewall_blocked_domains.test.cjs b/actions/setup/js/firewall_blocked_domains.test.cjs index a693ad4b3eb..494ee4305ce 100644 --- a/actions/setup/js/firewall_blocked_domains.test.cjs +++ b/actions/setup/js/firewall_blocked_domains.test.cjs @@ -316,7 +316,9 @@ describe("firewall_blocked_domains.cjs", () => { const result = generateBlockedDomainsSection(["blocked.example.com"], TEMPLATE_PATH); expect(result).toContain("> [!WARNING]"); - expect(result).toContain("> **⚠️ Firewall blocked 1 domain**"); + expect(result).toContain(">
"); + expect(result).toContain("> Firewall blocked 1 domain"); + expect(result).toContain(">
"); expect(result).toContain("> - `blocked.example.com`"); expect(result).toContain("> The following domain was blocked by the firewall during workflow execution:"); expect(result).toContain('> ```yaml\n> network:\n> allowed:\n> - defaults\n> - "blocked.example.com"\n> ```'); @@ -328,7 +330,9 @@ describe("firewall_blocked_domains.cjs", () => { const result = generateBlockedDomainsSection(domains, TEMPLATE_PATH); expect(result).toContain("> [!WARNING]"); - expect(result).toContain("> **⚠️ Firewall blocked 3 domains**"); + expect(result).toContain(">
"); + expect(result).toContain("> Firewall blocked 3 domains"); + expect(result).toContain(">
"); expect(result).toContain("> - `alpha.example.com`"); expect(result).toContain("> - `beta.example.com`"); expect(result).toContain("> - `gamma.example.com`"); @@ -360,7 +364,8 @@ describe("firewall_blocked_domains.cjs", () => { const result = generateBlockedDomainsSection(["api.github.com"], TEMPLATE_PATH); expect(result).toContain("> [!WARNING]"); - expect(result).toContain("> **⚠️ Firewall blocked 1 domain**"); + expect(result).toContain(">
"); + expect(result).toContain("> Firewall blocked 1 domain"); expect(result).toContain("> - `api.github.com`"); expect(result).toContain("`tools.github.mode: gh-proxy`"); expect(result).toContain("> ```yaml\n> tools:\n> github:\n> mode: gh-proxy\n> ```"); @@ -373,7 +378,8 @@ describe("firewall_blocked_domains.cjs", () => { const result = generateBlockedDomainsSection(domains, TEMPLATE_PATH); expect(result).toContain("> [!WARNING]"); - expect(result).toContain("> **⚠️ Firewall blocked 2 domains**"); + expect(result).toContain(">
"); + expect(result).toContain("> Firewall blocked 2 domains"); expect(result).toContain("> - `api.github.com`"); expect(result).toContain("> - `other.example.com`"); expect(result).toContain("> ```yaml\n> tools:\n> github:\n> mode: gh-proxy\n> ```"); diff --git a/actions/setup/md/firewall_blocked_domains.md b/actions/setup/md/firewall_blocked_domains.md index cd47bc3548c..636c9d5c8df 100644 --- a/actions/setup/md/firewall_blocked_domains.md +++ b/actions/setup/md/firewall_blocked_domains.md @@ -1,5 +1,6 @@ > [!WARNING] -> **⚠️ Firewall blocked {domain_count} {domain_word}** +>
+> Firewall blocked {domain_count} {domain_word} > > The following {domain_word} {verb} blocked by the firewall during workflow execution: > @@ -25,3 +26,5 @@ {yaml_network_list}> ``` > > See [Network Configuration](https://github.github.com/gh-aw/reference/network/) for more information. +> +>