Merge pull request #157 from sfuhrm/dependabot/maven/org.apache.maven… #500
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
name: Dependency Check | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: '45 13 * * 0' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: 21 | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
key: dependencycheck | |
- name: Maven install | |
run: mvn install | |
- name: Run Maven dependency check | |
run: mvn org.owasp:dependency-check-maven:check | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: dependency-check | |
path: ./target/dependency-check-report.html |