-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.25 KB
/
update-threat-model.yaml
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
43
44
45
46
47
48
name: Update Threat Model Outputs
permissions:
actions: read
contents: read
on:
push:
branches:
- 'main'
- 'test-new-action'
paths:
- 'example-models/threagile-SSPHP-model.yaml'
- '.github/workflows/update-threat-model.yaml'
workflow_dispatch:
jobs:
UpdateTM:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run threagile
id: threagile-test-optional-args
uses: pritchyspritch/run-threagile-action@dfe-threagile
with:
optional-args: '--help'
- name: Run threagile
id: threagile
uses: pritchyspritch/run-threagile-action@dfe-threagile
with:
model-file: 'example-models/threagile-SSPHP-model.yaml'
output-dir: 'test/location'
# will fail as Azure data ingestion hasn't been automated yet
- name: Run threagile
id: dfe-threagile
uses: pritchyspritch/run-threagile-action@dfe-threagile
with:
dfe_threagile: 'true'
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: threat-model-output
path: test/location