Skip to content

Commit d6aa4e1

Browse files
Copilotakoeplinger
andcommitted
Add copilot-setup-steps.yml workflow to allow access to vsblob.vsassets.io URLs
Co-authored-by: akoeplinger <[email protected]>
1 parent 1d3f791 commit d6aa4e1

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Automatically run the setup steps when they are changed to allow for easy validation, and
2+
# allow manual testing through the repository's "Actions" tab
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- .github/workflows/copilot-setup-steps.yml
8+
pull_request:
9+
paths:
10+
- .github/workflows/copilot-setup-steps.yml
11+
12+
permissions:
13+
contents: read
14+
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+
19+
jobs:
20+
21+
copilot-setup-steps:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
- name: Do an initial build to ensure all dependencies are restored
26+
run: |
27+
./build.sh
28+
- name: Put repo-local dotnet install on PATH
29+
run: |
30+
echo "PATH=$PWD/.dotnet:$PATH" >> $GITHUB_ENV
31+
32+
- name: Check dotnet version
33+
run: |
34+
dotnet --version

0 commit comments

Comments
 (0)