forked from AErmie/DevSecOps
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (35 loc) · 1.44 KB
/
threagile-workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: "Threat Model - Threagile"
on:
workflow_dispatch: # allows to manually trigger the workflow from the Actions tab
push:
paths:
- 'ThreatModeling/threagile/threagile.yaml' # useful to filter this job to execute only when the threat model changes
jobs:
threagile_job:
runs-on: ubuntu-latest
name: Threat Model Analysis
steps:
# Checkout the repo
- name: Checkout Workspace
uses: actions/checkout@v2
# Run Threagile
- name: Run Threagile
id: threagile
uses: threagile/run-threagile-action@v1
with:
model-file: 'ThreatModeling/threagile/threagile.yaml'
# Archive resulting files as artifacts
- name: Archive Results
uses: actions/upload-artifact@v2
with:
name: threagile-report
path: threagile/output
# Optional step to link from repo's README.md if you want. This can also be committed to a separate branch if desired.
# - name: Commit & Push Report and DFD Diagram
# run: |
# git config --local user.email "[email protected]" # customize as desired
# git config --local user.name "Threagile" # customize as desired
# git add threagile/output/report.pdf
# git add threagile/output/data-flow-diagram.png
# git commit -m "Update threat model report and data-flow diagram by Threagile" # customize as desired
# git push