diff --git a/Tests/Rules/AvoidConvertToSecureStringWithPlainText.ps1 b/Tests/Rules/AvoidConvertToSecureStringWithPlainText.ps1 index c599f44de..e904c4569 100644 --- a/Tests/Rules/AvoidConvertToSecureStringWithPlainText.ps1 +++ b/Tests/Rules/AvoidConvertToSecureStringWithPlainText.ps1 @@ -1,5 +1,6 @@ +#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Test/NotASecret.")] $supersecure = convertto-securestring "sdfdsfd" -asplaintext -force New-Object System.Management.Automation.PSCredential -ArgumentList "username", (ConvertTo-SecureString "really secure" -AsPlainText -Force) -$sneaky = ctss "sneaky convert" -asplainText -force \ No newline at end of file +$sneaky = ctss "sneaky convert" -asplainText -force