Skip to content

Add Nuclei DAST scanning to pipeline #2

Add Nuclei DAST scanning to pipeline

Add Nuclei DAST scanning to pipeline #2

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
DAST:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: remakingeden
PGDATA: /data/remakingeden
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install npm packages
run: npm ci
- name: Start server
run: npm run start:ci
- name: Run Nuclei
uses: projectdiscovery/nuclei-action@main
with:
target: http://localhost:3000/api/
github-report: true
github-token: ${{ secrets.GITHUB_TOKEN }}