Skip to content

Commit 68e66cc

Browse files
committed
Add secret validation
1 parent 39382d3 commit 68e66cc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/TestSqlServer.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ jobs:
3939
--health-timeout=5s
4040
4141
steps:
42+
# Note that the secret is required for the SQL Server service to start above, and that happens before any steps.
43+
# We still have this step with always() (so it doesn't get skipped if the service failed to start) to help debug
44+
# issues.
45+
- name: Check that secrets.MSSQL_SA_PASSWORD2 exists
46+
if: always() && ${{ secrets.MSSQL_SA_PASSWORD2 == '' }}
47+
run: |
48+
echo "::error::Missing secret: MSSQL_SA_PASSWORD2"
49+
exit 1
50+
4251
- name: Checkout
4352
uses: actions/checkout@v6
4453

0 commit comments

Comments
 (0)