We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6d96ef commit c35cfbeCopy full SHA for c35cfbe
1 file changed
build/Build-Module.ps1
@@ -8,7 +8,7 @@ param(
8
9
[string]$Repository = 'PSGallery',
10
11
- [string]$ApiKey
+ [SecureString]$ApiKey
12
)
13
14
# Clean output directory
@@ -95,7 +95,8 @@ function Invoke-Publish {
95
Write-Host "Publishing EntraExporter module to $Repository..." -ForegroundColor Cyan
96
97
try {
98
- Publish-Module -Path $OutputPath -Repository $Repository -NuGetApiKey $ApiKey
+ $plainKey = ConvertFrom-SecureString $ApiKey -AsPlainText
99
+ Publish-Module -Path $OutputPath -Repository $Repository -NuGetApiKey $plainKey
100
Write-Host "✅ Module published successfully!" -ForegroundColor Green
101
}
102
catch {
0 commit comments