Skip to content

Commit

Permalink
Ignore as keys/pwd are only used in tests (#15459)
Browse files Browse the repository at this point in the history
* Ignore as keys/pwd are only used in tests

* Copy to root
  • Loading branch information
DonJayamanne authored Apr 1, 2024
1 parent 16bab35 commit 49902c9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions CredScanSuppressions.json
Original file line number Diff line number Diff line change
@@ -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."
}
]
}
1 change: 1 addition & 0 deletions src/test/datascience/serverConfigFiles/jkey.key
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="[Used for Testing]")]
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCqRHBDELz8EsN1
5eHKrdo8GpMwwW0QeXcVvklVIRp8j3OiJnuB4qD9XId/jqo1Z7LZ3tlipN2w56U0
Expand Down
2 changes: 1 addition & 1 deletion src/test/datascience/serverConfigFiles/remotePassword.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 49902c9

Please sign in to comment.