Skip to content

Commit

Permalink
Added error handeling for pentest and threatmodeling
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanbokvad committed Sep 7, 2023
1 parent 622729c commit db1d109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Pentest/PentestService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class PentestService {
}): Promise<void> {
console.log('Running Pentest Controls');

if(!pentestDate.date){
if(!pentestDate.date || pentestDate.date != "date-of-pentest"){
core.warning("Pentest Date is not set!");
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/threatmodelingdate/ThreatModelingDate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class ThreatModelingDate{
}): Promise<void> {
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;
}
Expand Down

0 comments on commit db1d109

Please sign in to comment.