forked from webpwnized/mutillidae
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.28 KB
/
scan-with-owasp-dependency-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Name of the GitHub Actions workflow
name: Scan with OWASP Dependency Check
# Define environment variables
env:
PROJECT_NAME: Mutillidae
OUTPUT_DIR: .
# Define when the workflow should be triggered
on:
push:
branches:
- development
- main
# Define the job(s) to be executed within the workflow
jobs:
depchecktest:
name: Scan with OWASP Dependency Check
runs-on: ubuntu-latest
timeout-minutes: 30
# Define permissions for specific actions
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Scan with OWASP Dependency Check
id: owasp-dependency-check
uses: dependency-check/Dependency-Check_Action@main
with:
project: $PROJECT_NAME
path: ${{ env.OUTPUT_DIR }}
format: SARIF
out: ${{ env.OUTPUT_DIR }}
args: >
--enableRetired
continue-on-error: true
- name: Upload results from OWASP Dependency Check to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@main
with:
sarif_file: ${{ env.OUTPUT_DIR }}/dependency-check-report.sarif
category: "Scan-dependencies-code-with-OWASP-Dependency-Check"