From 70fda9978639f335d7bca868bc9bcd2e18f302ab Mon Sep 17 00:00:00 2001 From: Anastasiia Sergienko Date: Wed, 21 Oct 2020 12:59:07 +0200 Subject: [PATCH] Updated a nightly dependency check workflow --- .../{maven.yml => dependencies_check.yml} | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) rename .github/workflows/{maven.yml => dependencies_check.yml} (57%) diff --git a/.github/workflows/maven.yml b/.github/workflows/dependencies_check.yml similarity index 57% rename from .github/workflows/maven.yml rename to .github/workflows/dependencies_check.yml index 11c1b0982..a757a6590 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/dependencies_check.yml @@ -1,21 +1,25 @@ -# This workflow will build a Java project with Maven -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven - name: Dependencies Check on: schedule: - - cron: "0 2 * * *" + - cron: "0 2 * * *" jobs: build: runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v2 - name: Set up JDK 11 uses: actions/setup-java@v1 with: java-version: 11 + - name: Cache local Maven repository + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- - name: Checking dependencies for vulnerabilities run: mvn org.sonatype.ossindex.maven:ossindex-maven-plugin:audit -f pom.xml