Skip to content

Commit

Permalink
Merge pull request #1205 from JamesWTruher/suppressWarning001
Browse files Browse the repository at this point in the history
Add suppression of warning for MS policy
  • Loading branch information
JamesWTruher authored Apr 2, 2019
2 parents 8389997 + 0e35a8a commit c7e9e5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/Rules/AvoidConvertToSecureStringWithPlainText.ps1
Original file line number Diff line number Diff line change
@@ -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
$sneaky = ctss "sneaky convert" -asplainText -force

0 comments on commit c7e9e5c

Please sign in to comment.