v6.2.0 #213
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Scan Nginx 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 Nginx | |
| run: | | |
| sudo apt-get install nginx -y | |
| sudo cp ./tests/web_servers/nginx/default /etc/nginx/sites-available/default | |
| - name: Start Nginx | |
| # Start nginx and display the status if it starting it failed | |
| run: sudo /etc/init.d/nginx restart || systemctl status nginx.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 nginx |