forked from payatu/vuln-nodejs-app
-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (57 loc) · 1.52 KB
/
Copy pathmain.yml
File metadata and controls
76 lines (57 loc) · 1.52 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
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 ./docker-compose.yml up --build -d
sca:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
mkdir -p logs/
- name: Depcheck
uses: dependency-check/Dependency-Check_Action@main
id: Depcheck
with:
project: 'test'
path: '.'
format: 'HTML'
out: 'logs/reports'
- uses: actions/upload-artifact@v2
with:
name: logs
path: logs/reports
sast:
needs: [build, sca]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
mkdir -p logs/
- name: njsscan check
uses: ajinabraham/njsscan-action@master
with:
args: ./logs --sarif -o logs/output.sarif
- name: output
uses: actions/upload-artifact@v2
with:
name: logs
path: logs/output.sarif
dast:
needs: [build, sca]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build docker-compose for testing
run: docker-compose -f ./docker-compose.yml up --build -d
- name: ZAP Scan
uses: zaproxy/action-baseline@v0.6.1
with:
target: 'http://127.0.0.1:9000'
cmd_options: '-a -r report_html.html'