ZAP DAST #5
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: deploy | |
on: | |
push: | |
branches: ["main"] | |
jobs: | |
build: | |
name: SAST Test | |
runs-on: ubuntu-latest | |
permissions: | |
#Actions pueda escribir lo que ocupe | |
security-events: write | |
packages: read | |
actions: read | |
contents: read | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout code | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: 'javascript' | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
dast: | |
name: ZAP - DAST test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout code | |
- name: run api | |
run: | | |
npm install | |
npm run dev& | |
- name: ZAP Scan | |
uses: zaproxy/action-api-scan@v0.7.0 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
target: 'http://localhost:3000/search?q=123' |