-
Notifications
You must be signed in to change notification settings - Fork 456
40 lines (32 loc) · 1.15 KB
/
scan_apache2_server.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
name: Scan Apache2 Web Server
on:
push:
branches: [release]
pull_request:
branches: [release]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install Apache2
run: |
sudo apt-get install apache2
sudo cp ./tests/web_servers/apache2/000-default.conf /etc/apache2/sites-enabled/000-default.conf
sudo cp ./tests/web_servers/apache2/apache-selfsigned.crt /etc/ssl/certs/apache-selfsigned.crt
sudo cp ./tests/web_servers/apache2/apache-selfsigned.key /etc/ssl/private/apache-selfsigned.key
sudo a2enmod ssl
- name: Start Apache2
# Start apache2 and display the status if it starting it failed
run: sudo /etc/init.d/apache2 restart || systemctl status apache2.service
- name: Install pip
run: |
python -m pip install --upgrade pip setuptools
- name: Install SSLyze
run: python setup.py install
- name: Scan web server
run: python tests/web_servers/scan_localhost.py apache2