Skip to content

owasp scanning

owasp scanning #22

Workflow file for this run

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