Skip to content

Commit 0e35a8a

Browse files
committed
Add suppression of warning for MS policy
Because we are using a direct invocation of ConvertTo-SecureString it triggers a warning by MS tools that secrets are not allowed to be checked in to our repository. This suppresses this warning.
1 parent 8389997 commit 0e35a8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Test/NotASecret.")]
12
$supersecure = convertto-securestring "sdfdsfd" -asplaintext -force
23

34
New-Object System.Management.Automation.PSCredential -ArgumentList "username", (ConvertTo-SecureString "really secure" -AsPlainText -Force)
45

5-
$sneaky = ctss "sneaky convert" -asplainText -force
6+
$sneaky = ctss "sneaky convert" -asplainText -force

0 commit comments

Comments
 (0)