diff --git a/src/Pentest/PentestService.ts b/src/Pentest/PentestService.ts index c17df521..4e63b7df 100644 --- a/src/Pentest/PentestService.ts +++ b/src/Pentest/PentestService.ts @@ -8,7 +8,7 @@ export class PentestService { }): Promise { console.log('Running Pentest Controls'); - if(!pentestDate.date){ + if(!pentestDate.date || pentestDate.date != "date-of-pentest"){ core.warning("Pentest Date is not set!"); return; } diff --git a/src/threatmodelingdate/ThreatModelingDate.ts b/src/threatmodelingdate/ThreatModelingDate.ts index 1849efb0..49f08c11 100644 --- a/src/threatmodelingdate/ThreatModelingDate.ts +++ b/src/threatmodelingdate/ThreatModelingDate.ts @@ -8,7 +8,7 @@ export class ThreatModelingDate{ }): Promise { console.log('Running Threat Modeling Controls'); - if(!threatModelingDate.date){ + if(!threatModelingDate.date || threatModelingDate.date != "date-of-threat-modeling"){ core.warning("Threat Modeling Date is not set!"); return; }