Description
Describe the bug
On accident, I left a trailing comma in $COPILOT_AGENT_FIREWALL_ALLOW_LIST such as:
microsoft.com,visualstudio.com,
And then the next Copilot request errored on the Processing Request step:
----
panic: Invalid rules provided
goroutine 1 [running]:
github.com/github/ebpf-padawan-egress-firewall/pkg/rules.SplitDomainUrlOrIPListByType(0x1, {0xc000037b08, 0x27, 0x10?})
/home/runner/work/ebpf-padawan-egress-firewall/ebpf-padawan-egress-firewall/pkg/rules/legacy_firewall_items.go:109 +0xca6
github.com/github/ebpf-padawan-egress-firewall/pkg/rules.BuildRules({0xc000037b08, 0x27, 0x47}, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x400000008?}, {0x0, ...})
/home/runner/work/ebpf-padawan-egress-firewall/ebpf-padawan-egress-firewall/pkg/rules/rules.go:116 +0x315
main.main()
/home/runner/work/ebpf-padawan-egress-firewall/ebpf-padawan-egress-firewall/cmd/main.go:154 +0xda5
Error: Process completed with exit code 2.
Removing the trailing , fixed this.
Expected behavior
It seems like a trailing , should be OK and everything still work.
Additional context
Example here: https://github.com/dotnet/android/actions/runs/15640310139/job/44065837045#step:9:69

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
