Skip to content

Commit

Permalink
change location of suppress
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garriss committed Feb 19, 2025
1 parent 5d652b8 commit ded1f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/workflow/Invoke-SmokeTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ded1f4d

Please sign in to comment.