-
Notifications
You must be signed in to change notification settings - Fork 57
41 lines (32 loc) · 920 Bytes
/
owasp.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
name: "OWASP Security Scans"
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- env:
NVD_API_KEY:
${{ secrets.NVD_API_KEY }}
run: |
mvn -DskipTests install -P OWASP_CHECK
- env:
NVD_API_KEY:
${{ secrets.NVD_API_KEY }}
run: |
mvn -DskipTests dependency-check:aggregate -P OWASP_CHECK
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
# Path to SARIF file relative to the root of the repository
sarif_file: target/dependency-check-report.sarif
# Optional category for the results
# Used to differentiate multiple results for one commit
category: OWASP-dependency-check