-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (48 loc) · 1.23 KB
/
tests.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
46
47
48
49
50
51
52
53
54
55
name: Tests
on: push
jobs:
# <---------------- TEST BASIC CONFIG ------------------>
basic:
name: Basic
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Basic Test
uses: ./
with:
image: alpine:latest
accept-extensions: pem
- name: Upload Reports
uses: actions/upload-artifact@v3
if: always()
with:
name: Basic Report
path: dockle-report.json
# <--------------- TEST ADVANCED CONFIG ---------------->
advanced:
name: Advanced
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Advanced Test
uses: ./
with:
image: alpine:latest
report-format: sarif
report-name: dockle
failure-threshold: fatal
exit-code: 1
dockle-version: 0.4.11
accept-extensions: pem
- name: Upload Reports
uses: actions/upload-artifact@v3
if: always()
with:
name: SARIF Report
path: dockle.sarif
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: dockle.sarif