Skip to content

Commit 699e798

Browse files
committed
chore(workflows): update SQL password handling in CI
Refactor the SQL password configuration in the CI workflow to provide a default value if the secret is not set. - Modify SQLHELPER_SQL_PASSWORD to use a default value of 'YourStrong!Passw0rd' if the secret is not available. - Update SA_PASSWORD to also use the same default value for consistency. - Add a new Test.txt file.
1 parent 241c5e1 commit 699e798

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/dotnet-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
SQL_HOST: "127.0.0.1"
3939
SQL_PORT: "1433"
4040
SQLHELPER_SQL_SERVER: "127.0.0.1,1433"
41-
SQLHELPER_SQL_PASSWORD: "${{ secrets.SQLHELPER_SQL_PASSWORD }}"
41+
SQLHELPER_SQL_PASSWORD: "${{ secrets.SQLHELPER_SQL_PASSWORD || 'YourStrong!Passw0rd' }}"
4242

4343
runs-on: ubuntu-latest
4444
services:
@@ -47,7 +47,7 @@ jobs:
4747
env:
4848
ACCEPT_EULA: "Y"
4949
MSSQL_PID: "Developer"
50-
SA_PASSWORD: "${{ secrets.SQLHELPER_SQL_PASSWORD }}"
50+
SA_PASSWORD: "${{ secrets.SQLHELPER_SQL_PASSWORD || 'YourStrong!Passw0rd' }}"
5151
ports:
5252
- 1433:1433
5353
options: --pull always

Test.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)