OWASP dependency check (daily) #796
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the benefit of this over dependabot is that this also analyzes transitive dependencies | |
# while dependabot (at least currently) only analyzes top-level dependencies | |
name: OWASP dependency check (daily) | |
on: | |
schedule: | |
- cron: '30 1 * * *' | |
workflow_dispatch: | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- uses: gradle/gradle-build-action@v3 | |
with: | |
arguments: ":agent:agent:dependencyCheckAnalyze" | |
- name: Upload report | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
path: agent/agent/build/reports | |
scheduled-job-notification: | |
permissions: write-all | |
needs: | |
- analyze | |
if: always() | |
uses: ./.github/workflows/reusable-scheduled-job-notification.yml | |
with: | |
success: ${{ needs.analyze.result == 'success' }} |