Skip to content

.github/workflows/scanner.yml #21

.github/workflows/scanner.yml

.github/workflows/scanner.yml #21

Workflow file for this run

on:
workflow_dispatch:
schedule:
- cron: '5 4 * * *'
jobs:
scan:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.50.0-noble
steps:
- uses: actions/checkout@v4
with:
ref: gh-pages
path: reports
sparse-checkout: json
- uses: actions/checkout@v4
with:
path: app
- name: Setup
working-directory: app
run: npm install
- name: Copy previous reports
run: cp -r reports/json app/reports
- name: Run scanner
working-directory: app
run: xvfb-run npm start
- name: Deploy results
uses: peaceiris/actions-gh-pages@v4
with:
publish_dir: ./app/reports
github_token: ${{ secrets.GITHUB_TOKEN }}