-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (42 loc) · 1.18 KB
/
test_external_rock.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
41
42
43
44
45
46
47
48
name: Test External Rock
on:
push:
workflow_dispatch:
env:
VULNERABILITY_REPORT_SUFFIX: '.vulnerability-report.json'
SKOPEO_IMAGE: 'quay.io/skopeo/stable:v1.15.1'
TEST_IMAGE: 'bkimminich/juice-shop'
TEST_IMAGE_FILENAME: 'juice-shop'
jobs:
setup:
runs-on: ubuntu-22.04
steps:
- run: |
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD:/workdir -w /workdir \
${{ env.SKOPEO_IMAGE }} \
copy docker://${{ env.TEST_IMAGE }} \
oci-archive:test_image
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: test_image
path: test_image
retention-days: 1
test:
uses: canonical/oci-factory/.github/workflows/Test-Rock.yaml@main
needs: [setup]
with:
oci-archive-name: test_image
test-efficiency: true
test-malware: true
test-oci-compliance: true
test-vulnerabilities: true
end:
# we expect vulnerabilities scan to fail, so we add a final job so PR checks pass.
if: ${{ !cancelled() }}
needs: [test]
runs-on: ubuntu-22.04
steps:
- run: |
echo Workflow complete!