ci(lint): update PSScriptAnalyzer settings and suppress warnings for plain-text passwords in templates

This commit is contained in:
Simone
2026-05-13 18:54:22 +02:00
committed by Simone
parent 366ff0ce46
commit 7e6b65db18
6 changed files with 23 additions and 5 deletions
+4 -2
View File
@@ -113,6 +113,8 @@
-VMXPath 'F:\CI\Templates\WinBuild\WinBuild.vmx' -VMIPAddress 192.168.79.130 `
-BuildPassword 'StrongCIPass!2026' -StoreCredential
#>
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '',
Justification = 'Template setup script: plain-text password from CI credential store converted to SecureString for WinRM PSCredential. Intentional by design.')]
[CmdletBinding()]
param(
# Path to the VM .vmx — enables auto power-on + IP detection + auto snapshot.
@@ -721,5 +723,5 @@ finally {
}
Write-Host "[Prepare] Host TrustedHosts restored."
}