Skip to content

Commit d3bbd57

Browse files
committed
Mask passwords in connection strings
1 parent 5034c80 commit d3bbd57

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

AgentMode/.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ NOTES:
8383
- Ensure a container runtime (e.g. docker or podman) is running by running `./.github/tsql/install/is-container-runtime-running.ps1`
8484
- If a container runtime is not running, ensure the user does not proceed until a container runtime is installed and running.
8585
- Ensure `sqlcmd` is installed by running `./.github/tsql/install/ensure-sqlcmd-installed.ps1`
86-
- Ensure `Build.Sql.Templates` is installed by running `./.github/tsql/install/ensure-build-sql-templates-installed.ps1`
86+
- Ensure `Build.Sql.Templates` is installed by running `./.github/tsql/install/ensure-build-sql-templates-installed.ps1`
8787
- Ensure `SqlPackage` is installed by running `./.github/tsql/install/ensure-sqlpackage-installed.ps1`
8888
- NOTE: If the following message is returned after installing `SqlPackage`: `Since you just installed the .NET SDK, you will need to reopen the Command Prompt window before running the tool you installed.`, run `exit` in the terminal window, so another terminal window will be created for the next command.
8989

AgentMode/.github/tsql/inner-loop/Publish.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ if (!(Test-Path $sourceFile)) {
2020

2121
# Print the source file path
2222
Write-Host "Source file: $sourceFile"
23+
2324
# Run SqlPackage.exe /Action:Publish /SourceFile:$SourceFile /TargetConnectionString:$targetConnectionString /p:IncludeCompositeObjects=true
2425
# Note $targetConnectionString can have $ in it
25-
$publishCommand = "SqlPackage.exe /Action:Publish /SourceFile:$sourceFile /TargetConnectionString:$quotedConnectionString /p:IncludeCompositeObjects=true"
26+
$publishCommand = "$env:USERPROFILE\.dotnet\tools\SqlPackage.exe /Action:Publish /SourceFile:$sourceFile /TargetConnectionString:$quotedConnectionString /p:IncludeCompositeObjects=true"
2627
$publishCommand = $publishCommand -replace '\$', '`$' # Escape $ in the connection string
2728
Write-Host "Running command: $publishCommand"
2829
Invoke-Expression $publishCommand

0 commit comments

Comments
 (0)