From c0e380c521bb7e7b3c6ed35875b6f99e8bf6d1f4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Jun 2025 03:30:44 +0000 Subject: [PATCH 1/3] Initial plan for issue From bbd773c1fcd80e141dd9316009ca4e9e99cf62ee Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Jun 2025 03:33:53 +0000 Subject: [PATCH 2/3] Add Copilot setup workflow for vsassets.io firewall allowlist Co-authored-by: baronfel <573979+baronfel@users.noreply.github.com> --- .github/workflows/copilot-setup.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/copilot-setup.yml diff --git a/.github/workflows/copilot-setup.yml b/.github/workflows/copilot-setup.yml new file mode 100644 index 000000000000..9ee74b2b9e0e --- /dev/null +++ b/.github/workflows/copilot-setup.yml @@ -0,0 +1,22 @@ +name: Copilot Setup Steps + +# This workflow configures the environment for GitHub Copilot +# to allow access to necessary URLs for .NET SDK operations +on: + workflow_dispatch: + +permissions: + contents: read + +env: + # Allow Copilot to access Visual Studio assets URLs needed for NuGet restore + COPILOT_AGENT_FIREWALL_ALLOW_LIST_ADDITIONS: "*.vsblob.vsassets.io" + +jobs: + setup: + runs-on: ubuntu-latest + steps: + - name: Configure environment for Copilot + run: | + echo "Copilot firewall allowlist configured for: $COPILOT_AGENT_FIREWALL_ALLOW_LIST_ADDITIONS" + echo "This allows access to Visual Studio assets URLs needed for NuGet package restore operations." \ No newline at end of file From 60fa84463a691edabf23049bd63ca4e7d1df6b62 Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Wed, 18 Jun 2025 15:10:53 -0500 Subject: [PATCH 3/3] Update copilot-setup.yml Fix domain syntax --- .github/workflows/copilot-setup.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/copilot-setup.yml b/.github/workflows/copilot-setup.yml index 9ee74b2b9e0e..327c761f4c4a 100644 --- a/.github/workflows/copilot-setup.yml +++ b/.github/workflows/copilot-setup.yml @@ -10,7 +10,7 @@ permissions: env: # Allow Copilot to access Visual Studio assets URLs needed for NuGet restore - COPILOT_AGENT_FIREWALL_ALLOW_LIST_ADDITIONS: "*.vsblob.vsassets.io" + COPILOT_AGENT_FIREWALL_ALLOW_LIST_ADDITIONS: "vsblob.vsassets.io" jobs: setup: @@ -19,4 +19,4 @@ jobs: - name: Configure environment for Copilot run: | echo "Copilot firewall allowlist configured for: $COPILOT_AGENT_FIREWALL_ALLOW_LIST_ADDITIONS" - echo "This allows access to Visual Studio assets URLs needed for NuGet package restore operations." \ No newline at end of file + echo "This allows access to Visual Studio assets URLs needed for NuGet package restore operations."