We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8389997 + 0e35a8a commit c7e9e5cCopy full SHA for c7e9e5c
Tests/Rules/AvoidConvertToSecureStringWithPlainText.ps1
@@ -1,5 +1,6 @@
1
+#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Test/NotASecret.")]
2
$supersecure = convertto-securestring "sdfdsfd" -asplaintext -force
3
4
New-Object System.Management.Automation.PSCredential -ArgumentList "username", (ConvertTo-SecureString "really secure" -AsPlainText -Force)
5
-$sneaky = ctss "sneaky convert" -asplainText -force
6
+$sneaky = ctss "sneaky convert" -asplainText -force
0 commit comments