Skip to content

update owasp-scan workflow #1

update owasp-scan workflow

update owasp-scan workflow #1

Workflow file for this run

name: OWASP ZAP Scan
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
owasp-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Java 11
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- name: Install OWASP Dependency-Check
run: |
wget https://github.com/jeremylong/DependencyCheck/releases/download/v10.0.3/dependency-check-10.0.3-release.zip
unzip dependency-check-10.0.3-release.zip
- name: Run OWASP Dependency-Check
run: |
./dependency-check/bin/dependency-check.sh --project MyProject --out ./dependency-report --scan ./src
- name: Upload Dependency-Check Report
uses: actions/upload-artifact@v3
with:
name: dependency-check-report
path: ./dependency-report/dependency-check-report.html