-
Notifications
You must be signed in to change notification settings - Fork 29
45 lines (43 loc) · 1.33 KB
/
dependency-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Suppressions
on:
schedule:
# At 12 midnight and every 3rd hour from 10am through 11pm
- cron: "0 0,10-23/3 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.HMCTS_GITHUB_CCD_APP_ID }}
private_key: ${{ secrets.HMCTS_GITHUB_CCD_PRIVATE_KEY }}
- uses: actions/checkout@v3
with:
token: ${{ steps.generate-token.outputs.token }}
ref: master
- name: Set up Cache
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
- name: Run dependencyCheck
run: ./gradlew dependencyCheckAggregate
continue-on-error: true
- name: Run suppressCves
run: ./gradlew suppressCves
- name: Run cleanSuppressions
run: ./gradlew cleanSuppressions
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
skip_dirty_check: false
commit_message: "Suppressing CVE - Actions"
branch: master