Skip to content

Fix SQL Server password in copilot-setup-steps.yml#38445

Merged
AndriySvyryd merged 1 commit into
mainfrom
copilot/fix-sql-server-login-error
Jun 18, 2026
Merged

Fix SQL Server password in copilot-setup-steps.yml#38445
AndriySvyryd merged 1 commit into
mainfrom
copilot/fix-sql-server-login-error

Conversation

Copilot AI commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

The SQL Server connection string in copilot-setup-steps.yml is written to $GITHUB_ENV via a double-quoted bash echo. Bash expands $$ (the SA password contains $$) to the shell's PID, so the env-var password no longer matches the container's literal SA_PASSWORD, causing Login failed for user 'SA' in tests.

Change

  • Escape the dollar signs ($$\$\$) in the echo writing Test__SqlServer__DefaultConnection, so bash emits a literal $$ that matches the SA password set in the service env: block (which GitHub Actions does not run through a shell).
-          echo "...;******;..." >> "$GITHUB_ENV"
+          echo "...;******;..." >> "$GITHUB_ENV"

… in password

Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>
@AndriySvyryd AndriySvyryd changed the title Fix Login failed for user 'SA' in copilot-setup-steps by escaping $$ in SQL Server password Fix SQL Server password in copilot-setup-steps.yml Jun 17, 2026
@AndriySvyryd AndriySvyryd requested a review from Copilot June 17, 2026 21:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the SQL Server test connection string export in the Copilot agent setup workflow so the SA password containing $$ is written correctly to $GITHUB_ENV (avoiding bash $$ PID expansion), restoring successful SQL Server authentication in CI/agent sessions.

Changes:

  • Escape $$ as \$\$ when echoing Test__SqlServer__DefaultConnection into $GITHUB_ENV.

@AndriySvyryd AndriySvyryd marked this pull request as ready for review June 17, 2026 21:43
@AndriySvyryd AndriySvyryd requested review from a team and wtgodbe as code owners June 17, 2026 21:43
@AndriySvyryd AndriySvyryd enabled auto-merge (squash) June 17, 2026 21:43
@AndriySvyryd AndriySvyryd merged commit 5cc4fb8 into main Jun 18, 2026
18 checks passed
@AndriySvyryd AndriySvyryd deleted the copilot/fix-sql-server-login-error branch June 18, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants