-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.49 KB
/
0-scan-containers.yaml
File metadata and controls
57 lines (48 loc) · 1.49 KB
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
56
57
# This workflow is never used by any external repository.
# It is created solely for testing purposes when developing new actions.
# Feel free to change it however you want.
name: "Scan containers"
on:
workflow_call:
push:
paths:
- '.github/workflows/0-scan-containers.yaml'
- 'actions/docker/scan-docker-repo/**'
branches: [ 'v4-beta' ]
jobs:
plan:
runs-on: ubuntu-latest
steps:
- uses: milaboratory/github-ci/actions/docker/scan-docker-repo@v4-beta
id: plan
with:
mode: plan
report-name: "skipped-images"
registry: containers.pl-open.science
repository: milaboratories/pl-containers
concurrency: 20
- uses: actions/upload-artifact@v4
with:
name: scanning-plan
path: ${{ steps.plan.outputs.plan-dir }}
outputs:
plan-dir: ${{ steps.plan.outputs.plan-dir }}
plan-matrix: ${{ steps.plan.outputs.plan-matrix }}
run-test:
runs-on: ubuntu-latest
needs: plan
strategy:
matrix:
include: ${{ fromJSON(needs.plan.outputs.plan-matrix) }}
steps:
- name: Download plan
uses: actions/download-artifact@v4
with:
name: scanning-plan
path: "scan-chunks"
- uses: milaboratory/github-ci/actions/docker/scan-docker-repo@v4-beta
with:
mode: scan
report-name: "trivy-report-${{ matrix.plan-file }}"
tag-file: scan-chunks/${{ matrix.plan-file }}
limit: 2