forked from TIC4302/2024-app
-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (61 loc) · 1.81 KB
/
Copy pathmain.yml
File metadata and controls
79 lines (61 loc) · 1.81 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: CI
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build docker-compose
run: docker-compose -f ./environment/app/docker-compose.yml up --build -d
sca:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
mkdir -p logs/
- name: Safety
run: |
pip install safety
safety check -r environment/app/web/requirements.txt > logs/result-safety.txt
- uses: actions/upload-artifact@v2
with:
name: logs
path: logs/result-safety.txt
- name: Pyraider
run: |
pip install pyraider
pyraider check -f environment/app/web/requirements.txt > logs/result-pyraider.txt
- uses: actions/upload-artifact@v2
with:
name: logs
path: logs/result-pyraider.txt
sast:
needs: [build, sca]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
mkdir -p logs/
- uses: jpetrucciani/bandit-check@master
with:
path: './environment/app/web/chaimtube.py'
bandit_flags: '-lll -o logs/output.json -f json'
- uses: actions/upload-artifact@v2
with:
name: logs
path: logs/output.json
dast:
needs: [build, sca]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build Image for testing
run: docker-compose -f ./environment/app/docker-compose.yml up --build -d
- name: ZAP Scan
uses: zaproxy/action-baseline@v0.6.1
with:
target: 'http://localhost:5000'
cmd_options: '-a -w report_md'