-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated a nightly dependency check workflow
- Loading branch information
1 parent
fb03038
commit 70fda99
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
14 changes: 9 additions & 5 deletions
14
.github/workflows/maven.yml → .github/workflows/dependencies_check.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |