From ded1f4d1e8890800da90fcacd21e1ae5e710fc2d Mon Sep 17 00:00:00 2001 From: James Garriss <52328727+james-garriss@users.noreply.github.com> Date: Wed, 19 Feb 2025 10:30:36 -0500 Subject: [PATCH] change location of suppress --- utils/workflow/Invoke-SmokeTests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/workflow/Invoke-SmokeTests.ps1 b/utils/workflow/Invoke-SmokeTests.ps1 index 35c6e041b..ae5bf543b 100644 --- a/utils/workflow/Invoke-SmokeTests.ps1 +++ b/utils/workflow/Invoke-SmokeTests.ps1 @@ -6,6 +6,7 @@ function Invoke-SmokeTests { Info about the tenants against which the smoke tests are conducted. #> [CmdletBinding()] + [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')] param( [Parameter(Mandatory = $true)] [array] @@ -38,7 +39,6 @@ function Invoke-SmokeTests { $AppId = $TestTenant.AppId $PlainTextPassword = $TestTenant.CertificatePassword # This is not high risk because this code is only running on an ephemeral runner. - [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")] $CertPwd = ConvertTo-SecureString -String $PlainTextPassword -Force -AsPlainText $M365Env = $TestTenant.M365Env try {