diff --git a/src/lib/BodyBuilder.ts b/src/lib/BodyBuilder.ts index 4dc215f9..4c6c0c0a 100644 --- a/src/lib/BodyBuilder.ts +++ b/src/lib/BodyBuilder.ts @@ -38,7 +38,7 @@ export class BodyBuilder { const cqNumberOfSeverity5: string | undefined = process.env?.CQnumberOfSeverity5; const sastNumberOfSeverity1: string | undefined = process.env?.SASTnumberOfSeverity1; - const sastNumberOfSeverity2: string | undefined = process.env.SASTnumberOfSeverity2; + const sastNumberOfSeverity2: string | undefined = process.env?.SASTnumberOfSeverity2; const sastNumberOfSeverity3: string | undefined = process.env?.SASTnumberOfSeverity3; const tmNumberOfActiveTickets: string | undefined = process.env?.tmNumberOfActiveTickets @@ -47,9 +47,9 @@ export class BodyBuilder { const ptNumberOfActiveTickets: string | undefined = process.env?.ptNumberOfActiveTickets; const ptNumberOfClosedTickets: string | undefined = process.env?.ptNumberOfClosedTickets; - const numUserInProdSeverity1: string | undefined = process.env.numUserInProdSeverity1; - const numUserInProdSeverity2: string | undefined = process.env.numUserInProdSeverity2; - const numUserInProdSeverity3: string | undefined = process.env.numUserInProdSeverity3; + const numUserInProdSeverity1: string | undefined = process.env?.numUserInProdSeverity1; + const numUserInProdSeverity2: string | undefined = process.env?.numUserInProdSeverity2; + const numUserInProdSeverity3: string | undefined = process.env?.numUserInProdSeverity3; //For printing urls in the pipeline const urlBody: UrlBody = new UrlBodyBuilder() diff --git a/src/lib/types/CyDigConfig.ts b/src/lib/types/CyDigConfig.ts index 10897246..d10c8451 100644 --- a/src/lib/types/CyDigConfig.ts +++ b/src/lib/types/CyDigConfig.ts @@ -10,14 +10,20 @@ export type CyDigConfig = { boardsTag: string; }; azureDevOps: { - usingBoards: boolean + usingBoards: boolean; boards: { organizationName: string; projectName: string; nameOfBoard: string; - } + }; + }; + scaTool: { + nameOfTool: string; + }, + sastTool: { + nameOfTool: string; + }, + codeQualityTool: { + nameOfTool: string; } - scaTool: string; - sastTool: string; - codeQualityTool: string; };