You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/copilot-setup-steps.yml
+12-7Lines changed: 12 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -13,20 +13,26 @@ on:
13
13
paths:
14
14
- .github/workflows/copilot-setup-steps.yml
15
15
16
+
permissions: {}
17
+
16
18
jobs:
17
19
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
18
20
copilot-setup-steps:
19
21
runs-on: ubuntu-24.04
20
22
23
+
env:
24
+
MSSQL_SA_PASSWORD: 'PLACEHOLDERPass$$w0rd'
25
+
Test__SqlServer__DefaultConnection: 'Server=localhost;Database=master;User=SA;Password=PLACEHOLDERPass$$w0rd;Connect Timeout=60;ConnectRetryCount=0;Trust Server Certificate=true'
26
+
21
27
# Install SQL Server via a docker container.
22
28
# It's better to do this rather than e.g. use a testcontainer, because then the agent can reuse the same container
23
29
# and instance of SQL Server rather than have to start it up each time it needs to iterate and run a test.
24
30
services:
25
31
mssql:
26
32
image: mcr.microsoft.com/mssql/server:2025-latest
27
33
env:
28
-
ACCEPT_EULA: "Y"
29
-
SA_PASSWORD: "${{ secrets.MSSQL_SA_PASSWORD }}"
34
+
ACCEPT_EULA: Y
35
+
SA_PASSWORD: ${{ env.MSSQL_SA_PASSWORD }}
30
36
ports:
31
37
- 1433:1433
32
38
options: >-
@@ -36,9 +42,8 @@ jobs:
36
42
--health-retries=30
37
43
--health-timeout=5s
38
44
39
-
permissions:
40
-
contents: read
41
-
42
45
steps:
43
-
- name: Export SQL Server connection string for the agent's session
44
-
run: echo "Test__SqlServer__DefaultConnection=Server=localhost;Database=master;User=SA;Password=${{ secrets.MSSQL_SA_PASSWORD }};Connect Timeout=60;ConnectRetryCount=0;Trust Server Certificate=true" >> "$GITHUB_ENV"
46
+
# The Github Actions workflow syntax requires there to be at least one step;
47
+
# we don't have anything to do (we started SQL Server above), so just print something.
0 commit comments