Skip to content

Commit feac802

Browse files
authored
Remove firewall setting from copilot-setup-steps.yml (#1430)
* Remove firewall setting from copilot-setup-steps.yml This doesn't actually work as an env var, it needs to be set as a GitHub Actions variable in the repository settings. * Only do a restore in copilot-setup-steps.yml to make sure a build error doesn't break Copilot
1 parent aaa4e3a commit feac802

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,19 @@ on:
1212
permissions:
1313
contents: read
1414

15-
env:
16-
# Allow Copilot to access Visual Studio assets URLs needed for NuGet restore
17-
COPILOT_AGENT_FIREWALL_ALLOW_LIST_ADDITIONS: "vsblob.vsassets.io"
18-
1915
jobs:
2016

2117
copilot-setup-steps:
2218
runs-on: ubuntu-latest
2319
steps:
2420
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25-
- name: Do an initial build to ensure all dependencies are restored
21+
- name: Do an initial restore to ensure all dependencies are restored
2622
run: |
27-
./build.sh
23+
./eng/common/build.sh --restore
2824
- name: Put repo-local dotnet install on PATH
2925
run: |
3026
echo "PATH=$PWD/.dotnet:$PATH" >> $GITHUB_ENV
3127
3228
- name: Check dotnet version
3329
run: |
34-
dotnet --version
30+
dotnet --version

0 commit comments

Comments
 (0)