From d832a6b8fef468a8036e71a775214f77fcc8a10d Mon Sep 17 00:00:00 2001 From: vartaxe <11176349+vartaxe@users.noreply.github.com> Date: Sat, 10 Oct 2026 09:40:15 +0200 Subject: [PATCH] Document synthetic credential test exception Add a narrowly scoped analyzer justification for the fixed test-only PSCredential value. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- tests/Invoke-CMApplyDriverPackage.Tests.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Invoke-CMApplyDriverPackage.Tests.ps1 b/tests/Invoke-CMApplyDriverPackage.Tests.ps1 index b40c568..a90e38f 100644 --- a/tests/Invoke-CMApplyDriverPackage.Tests.ps1 +++ b/tests/Invoke-CMApplyDriverPackage.Tests.ps1 @@ -1,3 +1,6 @@ +[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "", Justification = "This standalone regression harness uses a fixed synthetic test password only to construct an in-memory PSCredential.")] +param () + $ErrorActionPreference = "Stop" $ScriptPath = Join-Path (Split-Path $PSScriptRoot -Parent) "Invoke-CMApplyDriverPackage.ps1" $ParseErrors = $null