chore: bump org.owasp:dependency-check-maven from 10.0.4 to 11.1.0 in the production-major group #614
Workflow file for this run
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: Java CI with Maven | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
# keep the below two variables in sync with the ones in .github/workflows/update-vulnerability-database.yaml | |
CVE_CACHE_KEY: cve-db | |
CVE_CACHE_DIR: ~/.m2/repository/org/owasp/dependency-check-data | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: [ 17, 21 ] | |
name: Build with Java ${{ matrix.java-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: ${{ matrix.java-version }} | |
- name: Restore CVE Database | |
uses: actions/cache/restore@v4 | |
with: | |
path: ${{ env.CVE_CACHE_DIR }} | |
key: ${{ env.CVE_CACHE_KEY }} | |
fail-on-cache-miss: true | |
- name: Build with Maven | |
run: mvn clean install -Dgpg.skip --no-transfer-progress | |
- name: Check for source code changes | |
run: | | |
if [[ `git status --porcelain` ]]; then | |
echo -e "Following files need to be formatted: \n$(git diff --name-only)" | |
exit 1 | |
fi |