mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix scan hits (#16788)
This commit is contained in:
@@ -16,6 +16,10 @@
|
|||||||
{
|
{
|
||||||
"file": ".devcontainer\\devcontainer.json",
|
"file": ".devcontainer\\devcontainer.json",
|
||||||
"_justification": "Local development environment - not used in production"
|
"_justification": "Local development environment - not used in production"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "extensions\\asde-deployment\\notebooks\\edge\\deploy-sql-edge-remote.ipynb",
|
||||||
|
"_justification": "Deployment Notebook - usernames/passwords are entered by user"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ export class CmsUtils {
|
|||||||
private _cmsService: mssql.ICmsService;
|
private _cmsService: mssql.ICmsService;
|
||||||
private _registeredCmsServers: ICmsResourceNodeInfo[] = [];
|
private _registeredCmsServers: ICmsResourceNodeInfo[] = [];
|
||||||
|
|
||||||
|
// [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Used for unit testing, not actual valid credential")]
|
||||||
public async savePassword(username: string, password: string): Promise<boolean> {
|
public async savePassword(username: string, password: string): Promise<boolean> {
|
||||||
let provider = await this.credentialProvider();
|
let provider = await this.credentialProvider();
|
||||||
let result = await provider.saveCredential(username, password);
|
let result = await provider.saveCredential(username, password);
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ suite('ConnectionStore', () => {
|
|||||||
serverName: 'namedServer',
|
serverName: 'namedServer',
|
||||||
databaseName: 'bcd',
|
databaseName: 'bcd',
|
||||||
authenticationType: 'SqlLogin',
|
authenticationType: 'SqlLogin',
|
||||||
userName: 'cde',
|
userName: 'cde', // [SuppressMessage("Microsoft.Security", "CS001:SecretInline", Justification="Mock value, never actually used to connect")]
|
||||||
password: generateUuid(),
|
password: generateUuid(),
|
||||||
savePassword: true,
|
savePassword: true,
|
||||||
groupId: '',
|
groupId: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user