Skip to content

Commit dfe5b08

Browse files
Update publish script to mask API key in output for security
1 parent c4adf94 commit dfe5b08

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/publish.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ LogGroup 'Publish-ToPSGallery' {
8989
$publishPSVersion = "$($newVersion.Major).$($newVersion.Minor).$($newVersion.Patch)"
9090
}
9191
$psGalleryReleaseLink = "https://www.powershellgallery.com/packages/$name/$publishPSVersion"
92-
Write-Output "Publish module to PowerShell Gallery using [$apiKey]"
92+
Write-Output "Publish module to PowerShell Gallery using API key from environment."
9393
if ($whatIf) {
94-
Write-Output "Publish-PSResource -Path $modulePath -Repository PSGallery -ApiKey $apiKey"
94+
Write-Output "Publish-PSResource -Path $modulePath -Repository PSGallery -ApiKey ***"
9595
} else {
9696
try {
9797
Publish-PSResource -Path $modulePath -Repository PSGallery -ApiKey $apiKey

0 commit comments

Comments
 (0)