-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12e35c2
commit 18057f0
Showing
2 changed files
with
25 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
import * as core from '@actions/core'; | ||
import * as github from '@actions/github'; | ||
export class ThreatModelingService{ | ||
|
||
public static async getStateOfThreatModeling(threatModelingDate: { | ||
date: string; | ||
boardsTag: string; | ||
}): Promise<void> { | ||
console.log('Running Threat Modeling Controls'); | ||
|
||
if(!threatModelingDate.date || threatModelingDate.date === "date-of-threat-modeling"){ | ||
core.warning("Threat Modeling Date is not set!"); | ||
return; | ||
} | ||
core.setOutput("threatModelingDate", threatModelingDate.date); | ||
|
||
console.log("threatModelingDate is set", threatModelingDate.date); | ||
export class ThreatModelingService { | ||
public static async getStateOfThreatModeling(threatModelingDate: { date: string; boardsTag: string }): Promise<void> { | ||
console.log('Running Threat Modeling Controls'); | ||
|
||
if (!threatModelingDate.date || threatModelingDate.date === 'date-of-threat-modeling') { | ||
core.warning('Threat Modeling Date is not set!'); | ||
return; | ||
} | ||
} | ||
core.setOutput('threatModelingDate', threatModelingDate.date); | ||
|
||
console.log('threatModelingDate is set', threatModelingDate.date); | ||
} | ||
} |