-
Notifications
You must be signed in to change notification settings - Fork 16
50 lines (47 loc) · 1.97 KB
/
zaproxy.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
43
44
45
46
47
48
49
50
name: Run ZAP Baseline Scan ⚙️
on: [ push ]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build and start containers using tests/test.env ⚙️
run: |
cp tests/test.env wis2box.env
python3 wis2box-ctl.py build
python3 wis2box-ctl.py start
python3 wis2box-ctl.py status -a
sleep 30
python3 wis2box-ctl.py status -a
- name: populate stations from CSV 📡
run: |
python3 wis2box-ctl.py execute wis2box metadata station publish-collection
- name: add Malawi synop data to the system 🇲🇼
env:
TOPIC_HIERARCHY: mw-mw_met_centre.data.core.weather.surface-based-observations.synop
CHANNEL: origin/a/wis2/mw-mw_met_centre/data/core/weather/surface-based-observations/synop
TERRITORY: MWI
DISCOVERY_METADATA: /data/wis2box/metadata/discovery/mw-surface-weather-observations.yml
DISCOVERY_METADATA_ID: urn:wmo:md:mw-mw_met_centre:surface-weather-observations
run: |
python3 wis2box-ctl.py execute wis2box dataset publish $DISCOVERY_METADATA
python3 wis2box-ctl.py execute wis2box metadata station add-topic --territory-name $TERRITORY $CHANNEL
python3 wis2box-ctl.py execute wis2box data ingest -mdi $DISCOVERY_METADATA_ID -p $TEST_DATA
sleep 10
- name: ZAP baseline Scan on UI 🕵️♂️
uses: zaproxy/action-baseline@v0.12.0
with:
target: 'http://localhost'
rules_file_name: '.zap/rules.tsv'
allow_issue_writing: 'false'
fail_action: 'true'
- name: ZAP baseline Scan on wis2box-webapp 🕵️♂️
uses: zaproxy/action-baseline@v0.12.0
env:
ZAP_AUTH_HEADER_VALUE: "Basic d2lzMmJveC11c2VyOndpczJib3h0ZXN0MTIz"
ZAP_AUTH_HEADER: "Authorization"
with:
target: 'http://localhost/wis2box-webapp'
rules_file_name: '.zap/rules.tsv'
allow_issue_writing: 'false'
fail_action: 'true'