46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
# 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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
|
|
- name: Free disk space
|
|
run: .github/scripts/gha-free-disk-space.sh
|
|
|
|
- name: Set up JDK for running Gradle
|
|
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
|
|
with:
|
|
distribution: temurin
|
|
java-version: 17.0.6
|
|
|
|
- uses: gradle/gradle-build-action@982da8e78c05368c70dac0351bb82647a9e9a5d2 # v2.11.1
|
|
with:
|
|
arguments: ":javaagent:dependencyCheckAnalyze"
|
|
env:
|
|
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
|
|
|
|
- name: Upload report
|
|
if: always()
|
|
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
|
|
with:
|
|
path: javaagent/build/reports
|
|
|
|
workflow-notification:
|
|
needs:
|
|
- analyze
|
|
if: always()
|
|
uses: ./.github/workflows/reusable-workflow-notification.yml
|
|
with:
|
|
success: ${{ needs.analyze.result == 'success' }}
|