forked from springwolf/springwolf-core
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1.09 KB
/
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
name: owasp scanning
on:
schedule:
- cron: "48 9 * * 4"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Get date for daily cache
id: get-date
run: echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
shell: bash
- name: Cache Dependency Check DB
uses: actions/cache@v3
with:
path: ~/.gradle/dependency-check-data
key: ${{ runner.os }}-gradle-owasp-${{ steps.get-date.outputs.date }}
restore-keys: ${{ runner.os }}-gradle-owasp-${{ steps.get-date.outputs.date }}
- name: Generate DependencyCheck report
run: ./gradlew dependencyCheckAggregate
- name: upload-sarif-4
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ./build/reports/owasp-dependency-check/dependency-check-report.sarif