Update dependency-check.yml #6
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: OWASP Dependency-Check | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
dependency-check: | |
name: OWASP Dependency-Check Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
- name: Cache Maven dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
${{ runner.os }}-maven-* | |
- name: Cache Dependency-Check Data | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository/org/owasp/dependency-check | |
key: ${{ runner.os }}-dependency-check-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-dependency-check- | |
- name: Dependency-Check for LambdaUrlCreator | |
run: | | |
cd LambdaUrlCreator | |
mvn org.owasp:dependency-check-maven:check -DdisableNVDUpdate=true | |
env: | |
MAVEN_OPTS: "-Xmx1024m" | |
- name: Upload Report for LambdaUrlCreator | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dependency-check-report-lambdaurlcreator | |
path: LambdaUrlCreator/target/dependency-check-report.html | |
- name: Dependency-Check for LambdaUrlRedirector | |
run: | | |
cd LambdaUrlRedirector | |
mvn org.owasp:dependency-check-maven:check -DdisableNVDUpdate=true | |
env: | |
MAVEN_OPTS: "-Xmx1024m" | |
- name: Upload Report for LambdaUrlRedirector | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dependency-check-report-lambdaurlredirector | |
path: LambdaUrlRedirector/target/dependency-check-report.html |