Skip to content

owasp scanning

owasp scanning #75

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@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- 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@v4
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
env:
ORG_GRADLE_PROJECT_OWASP_API_KEY: ${{ secrets.ORG_GRADLE_PROJECT_OWASP_API_KEY }}
- name: upload-sarif-4
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ./build/reports/owasp-dependency-check/dependency-check-report.sarif