Maven Dependency Check #26
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: Maven Dependency Check | |
on: | |
schedule: | |
- cron: '0 0 * * 0' | |
workflow_dispatch: | |
permissions: {} | |
env: | |
MAVEN_OPTS: > | |
-Dhttps.protocols=TLSv1.2 | |
-Dmaven.repo.local=.m2/repository | |
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN | |
-Dorg.slf4j.simpleLogger.showDateTime=true | |
-Djava.awt.headless=true | |
MAVEN_CLI_OPTS: > | |
--batch-mode | |
--errors | |
--fail-at-end | |
--show-version | |
-DinstallAtEnd=true | |
-DdeployAtEnd=true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Set up JDK | |
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- name: Dependency Check with Maven | |
working-directory: xml | |
run: | | |
# shellcheck disable=SC2086 | |
./mvnw ${MAVEN_CLI_OPTS} dependency-check:aggregate | |
- name: Upload artifacts | |
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 | |
with: | |
name: ${{ github.workflow }} | |
path: xml/target/ | |
- name: Clean up | |
working-directory: xml | |
run: rm "${HOME}/.m2/settings.xml" |