OWASP dependency check (daily) #788
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: | |
# daily at 1:30 UTC | |
- cron: "30 1 * * *" | |
workflow_dispatch: | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Free disk space | |
run: .github/scripts/gha-free-disk-space.sh | |
- name: Set up JDK for running Gradle | |
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 | |
with: | |
distribution: temurin | |
java-version-file: .java-version | |
- name: Increase gradle daemon heap size | |
run: | | |
sed -i "s/org.gradle.jvmargs=/org.gradle.jvmargs=-Xmx3g /" gradle.properties | |
- uses: gradle/actions/setup-gradle@473878a77f1b98e2b5ac4af93489d1656a80a5ed # v4.2.0 | |
- run: ./gradlew :javaagent:dependencyCheckAnalyze | |
env: | |
NVD_API_KEY: ${{ secrets.NVD_API_KEY }} | |
- name: Upload report | |
if: always() | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
path: javaagent/build/reports | |
workflow-notification: | |
needs: | |
- analyze | |
if: always() | |
uses: ./.github/workflows/reusable-workflow-notification.yml | |
with: | |
success: ${{ needs.analyze.result == 'success' }} |