Scan L-CAS #9
This file contains 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 L-CAS | |
on: | |
schedule: | |
- cron: '0 2 * * 2' | |
# scheduled for 02:00 every Tuesday | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Docker Login LCAS | |
# You may pin to the exact commit or the version. | |
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | |
uses: docker/login-action@v2 | |
with: | |
# Server address of Docker registry. If not set then will default to Docker Hub | |
registry: lcas.lincoln.ac.uk | |
# Username used to log against the Docker registry | |
username: ${{ secrets.LCAS_REGISTRY_PUSHER }} | |
# Password or personal access token used to log against the Docker registry | |
password: ${{ secrets.LCAS_REGISTRY_TOKEN }} | |
- name: Docker Login dockerhub | |
uses: docker/login-action@v2 | |
with: | |
# Username used to log against the Docker registry | |
username: ${{ secrets.DOCKERHUB_USER }} | |
# Password or personal access token used to log against the Docker registry | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Scan lcas.lincoln.ac.uk.uk | |
run: docker run --rm -v /tmp:/tmp lcas.lincoln.ac.uk/lcas/nikto:master -h https://lcas.lincoln.ac.uk -o /tmp/lcas-report.html | |
- name: Archive report results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: lcas-report | |
path: /tmp/lcas-report.html | |