Skip to content

Commit

Permalink
Merge pull request #44 from Omegapoint/feature/ReadmeFixin
Browse files Browse the repository at this point in the history
Feature/readme fixin
  • Loading branch information
johannaahlskog authored Oct 5, 2023
2 parents d0f23a8 + 3146e9e commit bd06b09
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/Pentest/PentestService.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as core from '@actions/core';

export class PentestService {
public static async getStateOfPentest(pentest: { date: string; boardsTag: string }): Promise<void> {
public static async getStateOfPentest(pentest: { date: string; boardsTag?: string }): Promise<void> {
if (process.env.pentestDate) {
core.exportVariable('pentestDate', process.env.pentestDate);
} else {
Expand Down
46 changes: 23 additions & 23 deletions src/helpfunctions/JsonService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,41 +20,41 @@ export function getContentOfFile(jsonPath: string): CyDigConfig {
export function validateConfig(config: unknown): void {
const schema: Joi.ObjectSchema<CyDigConfig> = Joi.object({
teamName: Joi.string().required(),
usingAzure: Joi.boolean().required(),
usingAzure: Joi.boolean(),
threatModeling: Joi.object({
date: Joi.string().required(),
boardsTag: Joi.string().required(),
}).required(),
date: Joi.string(),
boardsTag: Joi.string(),
}),
pentest: Joi.object({
date: Joi.string().required(),
boardsTag: Joi.string().required(),
}).required(),
date: Joi.string(),
boardsTag: Joi.string(),
}),
github: Joi.object({
usingRepos: Joi.boolean().required(),
usingRepos: Joi.boolean(),
repos: Joi.object({
username: Joi.string().required(),
}).required(),
usingBoards: Joi.boolean().required(),
username: Joi.string(),
}),
usingBoards: Joi.boolean(),
boards: Joi.object({
nameOfBoard: Joi.string().required(),
}).required(),
}).required(),
nameOfBoard: Joi.string(),
}),
}),
scaTool: Joi.object({
nameOfTool: Joi.string().required(),
nameOfTool: Joi.string(),
owaspDependencyCheck: Joi.object({
reportPath: Joi.string().required(),
reportPath: Joi.string(),
csvPath: Joi.string().optional(),
}),
}).required(),
}),
sastTool: Joi.object({
nameOfTool: Joi.string().required(),
nameOfTool: Joi.string(),
semgrep: Joi.object({
reportPath: Joi.string().required(),
}).required(),
}).required(),
reportPath: Joi.string(),
}),
}),
codeQualityTool: Joi.object({
nameOfTool: Joi.string().required(),
}).required(),
nameOfTool: Joi.string(),
}),
reposToExclude: Joi.object({
nameOfRepos: Joi.string().optional(),
}),
Expand Down
2 changes: 1 addition & 1 deletion src/threatmodeling/ThreatModelingService.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as core from '@actions/core';
export class ThreatModelingService {
public static async getStateOfThreatModeling(threatModeling: { date: string; boardsTag: string }): Promise<void> {
public static async getStateOfThreatModeling(threatModeling: { date: string; boardsTag?: string }): Promise<void> {
if (process.env.threatModelingDate) {
core.exportVariable('threatModelingDate', process.env.threatModelingDate);
} else {
Expand Down

0 comments on commit bd06b09

Please sign in to comment.