Merge pull request #686 from jenkinsci/dependabot/maven/org.jenkins-c… #11
This file contains hidden or 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: | |
| - main | |
| pull_request_target: | |
| jobs: | |
| build: | |
| runs-on: [ubuntu-latest] | |
| name: Create report | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 25 | |
| check-latest: true | |
| cache: 'maven' | |
| - name: Set up Maven | |
| uses: stCarolas/setup-maven@v5 | |
| with: | |
| maven-version: 3.9.12 | |
| - name: Cache the NVD database | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.m2/repository/org/owasp/dependency-check-data | |
| key: dependency-check | |
| - name: Build with Maven | |
| env: | |
| NVD_API_KEY: ${{ secrets.NVD_API_KEY }} | |
| OSS_INDEX_TOKEN: ${{ secrets.OSS_INDEX_TOKEN }} | |
| run: | | |
| mvn -V --color always -ntp verify -Pci -Powasp | |
| if [ "${PIPESTATUS[0]}" != "0" ]; then | |
| exit 1; | |
| fi | |
| - name: Upload Dependency Report | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: dependency-report | |
| path: | | |
| **/target/dependency-check-report.json | |