diff --git a/src/index.ts b/src/index.ts index 78ed3666..df9f66cb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,20 +3,20 @@ import * as github from '@actions/github'; import { BranchProtectionService } from './branchprotection/BranchProtectionService'; import { CyDigConfig } from './types/CyDigConfig'; import { getContentOfFile } from './helpfunctions/JsonService'; -import { PentestService } from './Pentest/PentestService'; -import { ThreatModelingDate } from './threatmodelingdate/ThreatModelingDate'; +import { PentestService } from './pentest/PentestService'; +import { ThreatModelingService } from './threatmodeling/ThreatModelingService'; /** * The main function for the action. * @returns {Promise} Resolves when the action is complete. */ export async function run(): Promise { try { - const cydigConfig: CyDigConfig = getContentOfFile("src/cydigconfig.json"); + const cydigConfig: CyDigConfig = getContentOfFile('src/cydigconfig.json'); await BranchProtectionService.getStateOfBranchProtection(); - await PentestService.getStateOfPentest(cydigConfig.pentest); - await ThreatModelingDate.getStateOfThreatModeling(cydigConfig.threatModeling); + await PentestService.getStateOfPentest(cydigConfig.pentest); + await ThreatModelingService.getStateOfThreatModeling(cydigConfig.threatModeling); - + // await ThreatModelingService.getStateOfThreatModeling(cydigConfig.threatModeling); } catch (error) { // Fail the workflow run if an error occurs if (error instanceof Error) core.setFailed(error.message); diff --git a/src/threatmodelingdate/ThreatModelingDate.ts b/src/threatmodeling/ThreatModelingService.ts similarity index 94% rename from src/threatmodelingdate/ThreatModelingDate.ts rename to src/threatmodeling/ThreatModelingService.ts index 7a735ab9..a01f1f4d 100644 --- a/src/threatmodelingdate/ThreatModelingDate.ts +++ b/src/threatmodeling/ThreatModelingService.ts @@ -1,6 +1,6 @@ import * as core from '@actions/core'; import * as github from '@actions/github'; -export class ThreatModelingDate{ +export class ThreatModelingService{ public static async getStateOfThreatModeling(threatModelingDate: { date: string;