-
Notifications
You must be signed in to change notification settings - Fork 118
40 lines (39 loc) · 1.22 KB
/
cve.yaml
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
name: CVE checks monthly
on:
workflow_dispatch:
schedule:
- cron: '0 8 15 * *' # at 8 AM 15th day of a month
jobs:
images:
runs-on: ubuntu-latest
env:
REGISTRY: 436866023604.dkr.ecr.eu-central-1.amazonaws.com
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Cache local Gradle dependencies
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-shared-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build the image without tests
env:
GENERATE_SOURCEMAP: false
CI: false
run: ./gradlew jibDockerBuild -x test --no-daemon --image opendatadiscovery/${{ github.event.repository.name }} --scan -Pversion=cve
- uses: aquasecurity/[email protected]
with:
image-ref: "opendatadiscovery/odd-platform:cve"
format: "table"
exit-code: "1"