Skip to content

Commit 6c2b281

Browse files
authored
Merge pull request #45 from CheckmarxDev/AST-8622-sast-description
AST 8622 SAST description
2 parents 0c306ca + 804866c commit 6c2b281

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

src/main/wrapper/CxConfig.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
export class CxConfig {
22
baseUri: string = "";
3+
baseAuthUri: string = "";
34
pathToExecutable: string = "";
45
clientId: string = "";
56
clientSecret: string = "";
67
apiKey: string = "";
7-
tenant:string ="";
8-
}
8+
tenant: string = "";
9+
}

src/main/wrapper/CxWrapper.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ export class CxWrapper {
4141
if (cxScanConfig.baseUri) {
4242
this.config.baseUri = cxScanConfig.baseUri;
4343
}
44+
if (cxScanConfig.baseAuthUri) {
45+
this.config.baseAuthUri = cxScanConfig.baseAuthUri;
46+
}
4447
if (cxScanConfig.tenant) {
4548
this.config.tenant = cxScanConfig.tenant;
4649
}
@@ -64,6 +67,10 @@ export class CxWrapper {
6467
list.push(CxConstants.BASE_URI);
6568
list.push(this.config.baseUri);
6669
}
70+
if (this.config.baseAuthUri) {
71+
list.push(CxConstants.BASE_AUTH_URI);
72+
list.push(this.config.baseAuthUri);
73+
}
6774
if (this.config.tenant) {
6875
list.push(CxConstants.TENANT);
6976
list.push(this.config.tenant);

src/tests/BaseTest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export class BaseTest {
22
baseUri: string = "";
3+
baseAuthUri: string = "";
34
clientId: string = "";
45
clientSecret: string = "";
56
apiKey: string = "";
@@ -8,6 +9,7 @@ export class BaseTest {
89

910
constructor() {
1011
this.baseUri = process.env["CX_BASE_URI"];
12+
this.baseAuthUri = process.env["CX_BASE_AUTH_URI"];
1113
this.clientId = process.env["CX_CLIENT_ID"];
1214
this.clientSecret = process.env["CX_CLIENT_SECRET"];
1315
this.tenant = process.env["CX_TENANT"];

0 commit comments

Comments
 (0)