diff --git a/.github/copilot/firewall-allowlist.json b/.github/copilot/firewall-allowlist.json index 13b1cb6..89d2dc3 100644 --- a/.github/copilot/firewall-allowlist.json +++ b/.github/copilot/firewall-allowlist.json @@ -5,8 +5,6 @@ "allowlist": { "domains": [ "*.gnu.org", - "www.gnu.org", - "ftp.gnu.org", "fsf.org", "www.fsf.org", "spdx.org", diff --git a/.github/copilot/setup-firewall.sh b/.github/copilot/setup-firewall.sh index e64e04c..ca381ff 100755 --- a/.github/copilot/setup-firewall.sh +++ b/.github/copilot/setup-firewall.sh @@ -19,7 +19,10 @@ if [ ! -f "$ALLOWLIST_FILE" ]; then fi # Read domains from the allowlist configuration -DOMAINS=$(jq -r '.allowlist.domains[]' "$ALLOWLIST_FILE" 2>/dev/null || echo "") +if ! DOMAINS=$(jq -r '.allowlist.domains[]' "$ALLOWLIST_FILE" 2>&1); then + echo "ERROR: Failed to parse allowlist configuration: $DOMAINS" + exit 1 +fi if [ -z "$DOMAINS" ]; then echo "WARNING: No domains found in allowlist configuration"