diff --git a/CredScanSuppressions.json b/CredScanSuppressions.json new file mode 100644 index 00000000000..a3e8d541856 --- /dev/null +++ b/CredScanSuppressions.json @@ -0,0 +1,13 @@ +{ + "tool": "Credential Scanner", + "suppressions": [ + { + "file": "src\\test\\datascience\\serverConfigFiles\\jkey.key", + "_justification": "Key file used for testing purposes, it is not a key relating to anything real" + }, + { + "file": "src\\test\\datascience\\serverConfigFiles\\remotePassword.py", + "_justification": "The secret in this file used here for testing." + } + ] +} diff --git a/src/test/datascience/serverConfigFiles/jkey.key b/src/test/datascience/serverConfigFiles/jkey.key index 370a3c5da27..e5241ca1838 100644 --- a/src/test/datascience/serverConfigFiles/jkey.key +++ b/src/test/datascience/serverConfigFiles/jkey.key @@ -1,3 +1,4 @@ +[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="[Used for Testing]")] -----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCqRHBDELz8EsN1 5eHKrdo8GpMwwW0QeXcVvklVIRp8j3OiJnuB4qD9XId/jqo1Z7LZ3tlipN2w56U0 diff --git a/src/test/datascience/serverConfigFiles/remotePassword.py b/src/test/datascience/serverConfigFiles/remotePassword.py index a79b7d19256..2a217d0b73f 100644 --- a/src/test/datascience/serverConfigFiles/remotePassword.py +++ b/src/test/datascience/serverConfigFiles/remotePassword.py @@ -2,5 +2,5 @@ c.NotebookApp.port = 9799 c.NotebookApp.open_browser = False # Python +#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="[Used for testing]")] c.NotebookApp.password = "sha1:74182e119a7b:e1b98bbba98f9ada3fd714eda9652437e80082e2" -